Help with OnPress
I have a button that you click to cure/cast etc etc.
I am trying to get it to say something in chat (ie guild chat or say or whatever) and cant get the "onpress" function (I think it is) to work properly. Question #1: What is the proper formatting for this function? Question #2: Is there a way to have a variable that is easily edited for the users of the UI to change what is said in the chat? Any help would be appreciated. Thanks. |
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:
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). |
Thanks for the help.. I will try this tonight. :)
|
Problem..
Code:
OnPress="say=('Hello World!') say=('Hello World!')" |
All times are GMT -5. The time now is 01:44 PM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI