• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

UI question

Status
Not open for further replies.
Level 10
Joined
Nov 28, 2008
Messages
655
A lot of kewl looking ones have gone up..


How do you guys do buttons?

There is the draw-button and add it as an item to a dialog, but i can't seem to get that one to do anything.

Then there is the screen buttons, but those don't have images.


grrrr


How did you guys do functional image filled buttons?
 
Level 8
Joined
Nov 20, 2008
Messages
445
Create a Dialog -> Set Dialog Background Image to blank.dds -> Create a Dialog Button for last created Dialog -> Set it to type Button -> Set Last Created Dialog Item Image to "ur texture"(warning: Buttons have a different kind of textures overlay. You can check the default UIs buttons to see how the layout on the texture is placed. Buttons use 2 textures. Hover Image and Image. Both need to be changed to a proper button texture to get it working.) -> Same for Hover Image -> Set last created Dialog Item to a var.

To trigger the button:
Event - A dialog item is clicked(or smt like that it was)
Condition - Clicked dialog item == ur button variable
Actions - W/e you want.
 
Status
Not open for further replies.
Top