EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 10-13-2005, 11:00 AM
Valdacil Valdacil is offline
A Mist Grinnin
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 75
Default Conditional Statements?

Since I haven't located any information on this in a search and nobody has given a clear answer on my post regarding Market Presets Revisited I thought I'd ask here:

Is there any way to do conditional statements in the xml we have for EQ2 interface mods?

I'd like to setup a Market Preset button which will fill in the current character's class and level when the button is pressed. I know how to force the level fill in, however since the class is a drop down the class name would need to be resolved to a number. In order to do that I'd have to setup a series of conditionals (if class=fighter then classlist=1 elseif class=brawler classlist=2 elseif ...). Unless someone can come up with a different way of retrieving the character's class from GameData and parsing that to the appropriate number on the class list drop down in the market window.
Reply With Quote
  #2  
Unread 10-13-2005, 01:04 PM
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

PlayerClass is a text object with the class dynamic data.

MainButton is the button you press

<Button Name="MainButton" OnPress="Parent.Button1.Activated=(Parent.PlayerClass.LocalText=='Fighter') Parent.Button2.Activated=(Parent.PlayerClass.LocalText=='Scout') ..." ...>

<Button Name="Button1" OnActivate="Parent.WhateverTheClassPulldownThingNameIs.SelectedItem=1 Activated=false" ...>

That should give you a general idea. If you need more examples, scroll down to Similar Threads and click on "Working IF statements!"
__________________
If it ain't broke, it needs more features!
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 04:04 PM.


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