EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   checkbox hide cloaks ? (https://www.eq2interface.com/forums/showthread.php?t=12499)

saroiel 03-09-2009 12:15 PM

[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

gm9 03-09-2009 12:28 PM

Why so complicated when you can simply copy the show/hide cloak checkbox from the persona window or check what command it uses: /showcloak

keezyrick 03-09-2009 12:37 PM

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"

saroiel 03-09-2009 12:43 PM

Showcloak is for mine .. no ?

I want to hide cloaks of all peoples =)

saroiel 03-09-2009 01:12 PM

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 =)

@ ++

gm9 03-09-2009 06:11 PM

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