View Single Post
  #3  
Unread 03-09-2009, 12:37 PM
keezyrick keezyrick is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2006
Server: Guk
Posts: 194
Default

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
Reply With Quote