EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 07-06-2005, 03:03 AM
Nitefang Nitefang is offline
A Griffon
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 124
Default 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
Reply With Quote
  #2  
Unread 07-06-2005, 05:31 AM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

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.
__________________
Landiin's EQ2MAP Updater Discussion Download

Last edited by Landiin : 07-06-2005 at 05:35 AM.
Reply With Quote
  #3  
Unread 07-06-2005, 05:36 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Or, how I prefer to do it:

OnPress="(show) OnPress=Press2"
Press1="(show) OnPress=Press2"
Press2="(hide) OnPress=Press1"
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #4  
Unread 07-06-2005, 08:04 AM
Nitefang Nitefang is offline
A Griffon
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 124
Default Thanks Guys :)

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

/salute
Reply With Quote
  #5  
Unread 07-06-2005, 08:04 AM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

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
__________________
Landiin's EQ2MAP Updater Discussion Download
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 06:06 AM.


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