EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Button Scripting Help (https://www.eq2interface.com/forums/showthread.php?t=3561)

Nitefang 07-06-2005 03:03 AM

Button Scripting Help
 
Hey all - I'm back with another coding question - been all over the site looking at examples of syntax for button scripts - should be easy (and probably is lol) but so far I cant get it to work - I've put a button in my start button mod that opens my socials page, that much works great - but I want it to close again when I press the button a second time - no luck making it work so far...

any help is appreciated

Landiin 07-06-2005 05:31 AM

You need to make two buttons and have them turn each other on and off as needed. Or do like I did and use a checkbox. I hate doing things twice. Then u can do OnCheck=show_window and OnUncheck=Hinde_window. Then if the window you are opening is in the same set of windows u can make that window uncheck the button if closed by other means then the button.

If you dealing with pages inside the same window just have the page assigned the proper values to the button via the OnShow and OnHide handles.

Deathbane27 07-06-2005 05:36 AM

Or, how I prefer to do it:

OnPress="(show) OnPress=Press2"
Press1="(show) OnPress=Press2"
Press2="(hide) OnPress=Press1"

Nitefang 07-06-2005 08:04 AM

Thanks Guys :)
 
Many thanks to you both for responding - works like I know what I'm doing lol -

/salute

Landiin 07-06-2005 08:04 AM

Quote:

Originally Posted by Deathbane27
Or, how I prefer to do it:

OnPress="(show) OnPress=Press2"
Press1="(show) OnPress=Press2"
Press2="(hide) OnPress=Press1"

Good idea there Daeth.. Quick and to the point:)


All times are GMT -5. The time now is 06:55 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI