EQ2Interface.com
Search Downloads


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

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 12-13-2006, 09:58 AM
Nitefang Nitefang is offline
A Griffon
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 124
Default Dropdown Help

hello all - started a new project and I'm having a bit of trouble getting it to work - hoping one of you coding experts can help me make sense of things.

I read an excellent tutorial on dropdowns and tried to use the Fetish Market window as a guide, but I'm needing it simplified a bit.

I've done the following using the UIBuilder

I created a simple dropdown with 3 items - each one intended to change the verticle size of the parent window by different amounts.

1. added the 3 menu items to the list with the names Data1, Data2, Data3 - then inserted a "command" property for each of the 3 data items that changes the size of the parent with a simple script - easy enough...

2. Created a dummy button named "RunCommands" but I'm unclear what to do next.

a little hand holding thru the next step or two is greatly appreciated !
Reply With Quote
  #2  
Unread 12-13-2006, 10:41 AM
mother9987's Avatar
mother9987 mother9987 is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 204
Default

Ok, I don't have a UI open in front of me this exact second, but I'll try to give you a direction...

Your dropdown has an event which I think is called "OnSelect". If it's not, it's something close to that.

Your OnSelect event will Copy the command code to the OnPress event of your button and then press the button.

"parent.RunCommands.OnPress=SelectedItem.Command
parent.RunCommands.Press=true"

Viola... just remember that the commands will be executed relative to the RunCommands element and not your dropdown or yours data source when you figure out your paths.
__________________
'Tetht the printhiple, tetht the printhiple,' muttered Igor. 'Thorry, thur, but Igorth do not "tetht the printhiple". Thtrap it to the bench and put a good thick bolt of lightning through it, thatth our motto. Thatth how you tetht thomething.'
Reply With Quote
  #3  
Unread 12-13-2006, 10:49 AM
Nitefang Nitefang is offline
A Griffon
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 124
Default Thank You

thanks for the fast reply - makes much more sense to me now

oh the trouble I can get into when the servers are down lol....
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 02:00 AM.


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