just use
showcloak
Each time you call this from your UI it will toggle the state of cl_show_cloaks
You can use the DynamicData of GameData.Self.HideCloak to set initial appearance of your Checkbox state and live changes from other method calls.
Since it is a toggle, you might prefer to use OnPress=showcloak for the command and use OnSet and OnUnset for Tooltip changes and appearance (i.e. color, etc.). I use
OnPress = showcloak
OnSet = LocalTooltip="Show My Cloak"
OnUnSet = LocalTooltip="Hide My Cloak"
__________________
GUK Server
<Legion of the White Rose>
Mezzes 90 Coercer
|