EQ2Interface.com
Search Downloads


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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 02-07-2005, 12:20 AM
Quib Quib is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Posts: 720
Default

I'm pretty sure the spaces are a flaw in the [CODE} tag, every X number of characters on one line, it adds a space.

I haven't found EQ2 to use parenthesis in any rational or logical way. Half the time I can leave them out and they won't matter, and using them doesn't seem to change the order math calculations occur; an example:
value=((2+3)*4)
results in value being 14 (3 times 4 plus 2) instead of 20 (5 times 4).

At least this is what I encountered when I was making my Relative DPS Calculator.

Quib
Reply With Quote
  #2  
Unread 02-07-2005, 01:16 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

I've only found parenthesis useful for letting the game know you mean a "variable" instead of the text that represents it.

Example: The text of the object Foo is "Your Mom"

parent.label.text=parent.Foo.text makes the label say "parent.Foo.text"

parent.label.text=(parent.Foo.text) makes the label say "Your Mom"

Or at least that's how I think it goes. I've always used the parenthesis after something didn't work without them, and I forget what.
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #3  
Unread 02-07-2005, 01:23 AM
Quib Quib is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Posts: 720
Default

I use (basically) parent.label.text=parent.Foo.text and my label text would always read Your Mom. If I wanted the label to show "parent.label.text=parent.Foo.text" I'd have to do parent.label.text='parent.Foo.text'

This is assuming this code is used in an OnEvent.

Quib
Reply With Quote
  #4  
Unread 02-07-2005, 10:22 AM
Selae Selae is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Server: Blackburrow
Posts: 102
Default

ok pardon my lack of knowledge, I try to pull what I can read and what I can see from examples to get the jist of things... lets see if I kinda get this...

If I wanted a button on a page that hides that page's parent and opens another page and its parent, would the following be on the right track?

OnPress="parent.playerstats.visible=false 'parent.Personatwo.visible=true'"

where the structure is like:
root>MainHUD>Persona>playerstats/Personatwo

and the button (and its reversed counterpart) is on the playerstats and Personatwo pages trying to hide playerstats and reveal Personatwo.

-Selae
Reply With Quote
  #5  
Unread 02-07-2005, 10:35 AM
Quib Quib is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Posts: 720
Default

Quote:
Originally Posted by Selae
OnPress="parent.playerstats.visible=false 'parent.Personatwo.visible=true'"

where the structure is like:
root>MainHUD>Persona>playerstats/Personatwo

and the button (and its reversed counterpart) is on the playerstats and Personatwo pages trying to hide playerstats and reveal Personatwo.
Dump the apostrophes; you only need those if declaring a new value that contains spaces (like value='value with spaces'). Other than that, looks good to me.

Quib
Reply With Quote
  #6  
Unread 02-07-2005, 01:07 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

So besides the whole parenthasis thing, did anyone try what I suggested?
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
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 12:07 PM.


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