Hello,
I have a resource file where I define the UI of materials attributes.
GROUP COATING_LAYER
{
GROUP THICKNESS_GROUP
{
COLUMNS 2;
REAL COATING_LAYER_THICKNESS{SCALE_H; MIN 0; MAX 1; MINSLIDER 0;
MAXSLIDER 1; STEP 0.001; CUSTOMGUI REALSLIDER;}
SHADERLINK COATING_LAYER_THICKNESS_SHADER{ANIM ON; SCALE_H; HIDDEN;}
}
GROUP COLOR_GROUP
{
COLUMNS 2;
COLOR COATING_LAYER_COLOR{SCALE_H;}
SHADERLINK COATING_LAYER_COLOR_SHADER{ANIM ON; HIDDEN;}
}
//...Continues with other groups
}
One parameter of the group I specify on the res file as above (The hidden one is not used at all in the UI) and the second parameter I specify using Description object as below.
const DescID* singleid = dc->GetSingleDescID();
if (!singleid || ((DescID)id).IsPartOf(*singleid, NULL))
{
BaseContainer bc = GetCustomDataTypeDefault(DTYPE_POPUP);
// Set CycleButton properties
bc.SetBool(DESC_ANIMATE, false);
bc.SetInt32(DESC_CUSTOMGUI, CUSTOMGUI_POPUP);
bc.SetBool(DESC_GROUPSCALEV, TRUE);
// Create CycleButton
return dc->SetParameter(DescLevel(id, DTYPE_POPUP, 0), bc, groupid);
}
return TRUE;
The view that I get is the picture below but as you can see the paramters (Thickness, Color, Roughness etc) are not aligned as they normally do when using description resource.
How would the code or res file look like so I can have them aligned.