On 28/05/2016 at 15:33, xxxxxxxx wrote:
Yes, my descriptions are already loaded.
I should have been a bit more precise, I guess.
Now I just need to get these elements as shown in the first post. Using "LoadDescription()" twice seems to be wrong.
The description already exists, so the only thing needed here is to access these DescLevel elements.
Let me clearify what I want to do: I have a BaseList2D object with a description. A couple of checkboxes insinde a simple group. Now there's a LONG cycle that should yield the currently checked items and display their Description names. (DESC_NAME)
Checking against the group whilst browsing through the description led to weird results. The string entries were visible, but not selectable.
I will post some code if this helps to help me. :)
Here's some code from my actual GetDDescription method:
// Update available mat slot assignments
BaseContainer* slotBc = description->GetParameterI(DescLevel(XNB_PASS_BASE_MATERIAL_SLOT_DIFFUSE), nullptr);
void* handle = description->BrowseInit();
const BaseContainer* bc = nullptr;
DescID id, groupid;
while (description->GetNext(handle, &bc;, id, groupid))
if (groupid == XNB_PASS_BASE_ENABLE_GROUP)
pass->GetParameter(id, data, DESCFLAGS_GET_0);