So I made some buttons, yeah, I know, I'm pretty pro and all, but I got a question! :(
So, say I wanted, for some reason... to make these buttons do stuff when clicked.
I have made 3 buttons thus far.
Menu
Log
Help
You see I'm trying to completely replace the in game UI with my own, and for now, I'd like to know how I can get these buttons to do their titled commands when I click them. Menu would open menu, and log would open... you get the picture.
I've already made the buttons, I just need them to work now.
You can use the event trigger "dialog item is used" to detect when a player clicks a button. Then you just add a conditional to test for which button is clicked (or even a switch statement), and use event player to run actions for the respective player only. I'm just getting into UI development myself so I'm not sure the most efficient way of setting up the trigger, but that is the basic premise.
Edit - I now see this is a few months old, but simple questions with simple answers like this are insanely useful for anyway getting started.
I too am interested in this issue, nowhere can I find the information I want to make a new interface, in the end the only thing that happens is the move the mini map. I want a new spells panel, etc.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So I made some buttons, yeah, I know, I'm pretty pro and all, but I got a question! :(
So, say I wanted, for some reason... to make these buttons do stuff when clicked.
I have made 3 buttons thus far.
Menu
Log
Help
You see I'm trying to completely replace the in game UI with my own, and for now, I'd like to know how I can get these buttons to do their titled commands when I click them. Menu would open menu, and log would open... you get the picture.
I've already made the buttons, I just need them to work now.
Thanks!
:P
You can use the event trigger "dialog item is used" to detect when a player clicks a button. Then you just add a conditional to test for which button is clicked (or even a switch statement), and use event player to run actions for the respective player only. I'm just getting into UI development myself so I'm not sure the most efficient way of setting up the trigger, but that is the basic premise.
Edit - I now see this is a few months old, but simple questions with simple answers like this are insanely useful for anyway getting started.
I too am interested in this issue, nowhere can I find the information I want to make a new interface, in the end the only thing that happens is the move the mini map. I want a new spells panel, etc.