I'm kinda new to map making and just trying UI stuff. But for my mod I need a button that can be toggled on and off (not a checkbox, but the button variant seen in many other programming languages). I don't see any dialog item type that matches, so I tried to change the button image after a click, but i'm not having much luck.
When using the trigger Dialog - Create a button for dialog with the extra parameters for text location and size i can change the image later on. But if I use the version only a dialog as parameter changing the image seems to add the new image. Is that version using a template or something?
Currently all I have as an alternative is to set a color for the buttons in the click callback, but I would rather use some premade textures from the game.
Hi,
I'm kinda new to map making and just trying UI stuff. But for my mod I need a button that can be toggled on and off (not a checkbox, but the button variant seen in many other programming languages). I don't see any dialog item type that matches, so I tried to change the button image after a click, but i'm not having much luck.
When using the trigger Dialog - Create a button for dialog with the extra parameters for text location and size i can change the image later on. But if I use the version only a dialog as parameter changing the image seems to add the new image. Is that version using a template or something?
Currently all I have as an alternative is to set a color for the buttons in the click callback, but I would rather use some premade textures from the game.
Would could I do to accomplish this?
Thanks in advance,
Mox
So I guess I missed the most obvious solution:
I will try to look harder next time ;)