• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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?
 
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.
Back
Top