View Single Post
  #2  
Unread 05-23-2007, 12:01 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

The commands you put into UI elements work mostly like you would type them into the chat window in game, except that you do not need the "/". So
OnPress="say Hello World!"
should work. Another format is this:

Code:
OnPress="say=('Hello World!') say=('Hello World!')"
The code above is always how it looks in the XML of course.

Your question #2 has many answers, most of all depending on wether you want the user to change the function in game or out of game. The easiest out-of-game solution is to tell the user how to edit your xml of course. Or you can make a separate file with only the text you want to say, <include> it into the window and reference it via the OnPress function. Best look through some existing UIs to see how it works (all .txt files in ProfitUI are <includes> for example).
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.

Last edited by gm9 : 05-23-2007 at 03:00 PM. Reason: smilies in my code :)
Reply With Quote