THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/03/2003 at 15:44, xxxxxxxx wrote:
Other than some fixes to your code, it does something unexpected. First, there is no GeData.GetBool(). Doesn't that suck. So, I got the GeData from GetPriorityValue() and check the GeData() type. It says that it's a LONG value and it printed as '0'. So, taking a guess, tried this:
// - Getting
targetTag->GetParameter(DescID(EXPRESSION_PRIORITY), priority, 0);
PriorityData* prioritydata = (PriorityData* )priority.GetCustomDataType(CUSTOMGUI_PRIORITY_DATA);
GeData camdepdata = prioritydata->GetPriorityValue(PRIORITYVALUE_CAMERADEPENDANT);
//Bool camdep = camdepdata.GetBool();
// - Setting (must get first, to keep mode and priority value)
targetTag->SetParameter(DescID(EXPRESSION_PRIORITY), GeData(CUSTOMGUI_PRIORITY_DATA, (CustomDataType)*prioritydata), 0);
But, guess what, it ends up setting the Priority (from normal '10') to 256. Now I'm really confused. Could the PRIORITY_FLAG_NOCAMERA have any bearing in this?
I'll keep playing with it, but this appears to be very difficult for a single bool setting...