ctrlEnable – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Possible Inconsistencies with uiNamespace requirements)
 
m (Text replacement - " ArmA2 " to " Arma 2 ")
 
Line 9: Line 9:
<pre>findDisplay 100 displayCtrl 101 ctrlEnable false;</pre>
<pre>findDisplay 100 displayCtrl 101 ctrlEnable false;</pre>


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

Latest revision as of 06:06, 2 January 2021

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)