EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 03-09-2009, 12:15 PM
saroiel saroiel is offline
A Darkpaw Brute
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Server: Storms
Posts: 44
Smile [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

Last edited by saroiel : 03-09-2009 at 01:13 PM.
Reply With Quote
  #2  
Unread 03-09-2009, 12:28 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Why so complicated when you can simply copy the show/hide cloak checkbox from the persona window or check what command it uses: /showcloak
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #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
  #4  
Unread 03-09-2009, 12:43 PM
saroiel saroiel is offline
A Darkpaw Brute
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Server: Storms
Posts: 44
Default

Showcloak is for mine .. no ?

I want to hide cloaks of all peoples =)
__________________

Final Heroes of Pegasus on STORMS Server (Fr)
Reply With Quote
  #5  
Unread 03-09-2009, 01:12 PM
saroiel saroiel is offline
A Darkpaw Brute
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Server: Storms
Posts: 44
Default

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

@ ++
__________________

Final Heroes of Pegasus on STORMS Server (Fr)
Reply With Quote
  #6  
Unread 03-09-2009, 06:11 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

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.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:24 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI