ctrlEnable – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search

There appears to be some inconsistencies with the two syntax variations and use of "with uiNamespace {}". If you use the variation with "[]" you do not appear to need to use "with uiNamespace" (nor do you get a diable serialization message), but you do with the other variation. Examples:

Ok:

ctrlEnable [101, false];

or

with uiNamespace do {(findDisplay 100 displayCtrl 101) ctrlEnable false;};

Not Ok (missing ";" or other error):

findDisplay 100 displayCtrl 101 ctrlEnable false;

This may apply to other commands as well but I have not tested it extensively. Test Arma 2 v1.05 -Loyalguard 22:45, 30 April 2010 (CEST)