On 23/04/2015 at 06:01, xxxxxxxx wrote:
Hi,
I've added my parameters inside the .res file, so it allready exists. Because of that, it has allready a name and is standard a slider.
I have changed the group ID to the correct group, but it still doesn't work.
Also saw a few mistakes I made, so I changed it to this:
Bool MyPluginData::GetDDescription(GeListNode* node, Description* description, DESCFLAGS_DESC& flags)
{
if (!description->LoadDescription(IDS_MYPLUGIN))
return false;
const DescID* singleid = description->GetSingleDescID();
DescID cid = DescLevel(10002, DTYPE_REAL, 10000);
if (!singleid || cid.IsPartOf(*singleid, nullptr))
{
BaseContainer bc = GetCustomDataTypeDefault(DTYPE_REAL);
bc.SetFloat(DESC_MIN, SLIDER2);
if (!description->SetParameter(cid, bc, DescLevel(10000)))
return false;
}
flags |= DESCFLAGS_DESC_LOADED;
return SUPER::GetDDescription(node, description, flags);
But this still doesn't work.
Does anybody have any idea what could be the problem here?
Thanks in advance for your help and time!
Greetings,
Casimir Smets