![]() |
[Resolved] checkbox hide cloaks ?
Hello,
I try to make a window with a checkbox for hide/show cloaks I put this in my checkbox properties : OnSet : cl_show_cloaks true OnunSet : cl_show_cloaks false and .. don't work ( i've try with : OnSet : /cl_show_cloaks 1 OnunSet : /cl_show_cloaks 0 OnSet : cl_show_cloaks=1 OnunSet : cl_show_cloaks=0 and nothing work. Is it possible to show/hide cloaks with a checkbox ? Tanks |
Why so complicated when you can simply copy the show/hide cloak checkbox from the persona window or check what command it uses: /showcloak
|
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" |
Showcloak is for mine .. no ?
I want to hide cloaks of all peoples =) |
I'ts all right !!
Just need to paste 2X cl_show_cloaks OnSet : cl_show_cloaks=true cl_show_cloaks=true OnUnSet : cl_show_cloaks=false cl_show_cloaks=false thanks a lot for your help =) @ ++ |
Ah sorry, I had misunderstood you. You will find that all the cl_*, r_*, etc. are not commands but only game state variables, hence you always need to set them via the = mark and you need to do that twice.
|
| All times are GMT -5. The time now is 01:02 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI