SC2Mapster Forums

Development > Triggers

How to use another skin for a Dialog Button?

  • 5 posts
    #1 Dec 20, 2012 at 15:27 UTC - 0 likes

    I want to use the battlenet buttons for my dialog, like this for instance;

    ui_battlenet_challenge_button_normaloverpressedover.dds

    How can I use that as a button? As you see it's the 3 states for the button; Normal, Clicked, Disabled.

    How can I use this for a normal dialog button? I tried fading the button, and using a dialog image, but I cant find type of image that makes it fit?

    #2 Dec 20, 2012 at 16:42 UTC - 1 like

    Use "Set Dialog Item Image" and "Set Dialog Item Hover Image" after you create the button to change what images it uses. If you want a button to look disabled, there's a way to gray out/desaturate dialog items, not sure what its called but it should be easy to find if you just scroll through the list of dialog related actions.

    Projects: Starmon - RuneCraft
    http://i.imgur.com/1jpXAne.png

    #3 Dec 21, 2012 at 10:57 UTC - 0 likes

    @TheAlmaity: Go

    Thanks a lot :) Do you also know how to use the images in the format as the one I linked? I've seen buttons like that used in custom maps, but I cant seem to find a border version that looks like it.

    Last edited Dec 21, 2012 by Demtrod
    #4 Dec 21, 2012 at 13:34 UTC - 1 like

    You cannot use those "three-state" textures for buttons. Instead, you should use one of these combinations which follows the same style:

    Assets\Textures\ui_battlenet_glue_navbuttons_blue_normalpressed.dds
    Assets\Textures\ui_battlenet_glue_navbuttons_blue_normaloverpressedover.dds

    Assets\Textures\ui_battlenet_glue_mediumbluebutton_normalpressed.dds
    Assets\Textures\ui_battlenet_glue_mediumbluebutton_normaloverpressedover.dds

    Assets\Textures\ui_battlenet_glue_dropdownbutton_normalpressed.dds
    Assets\Textures\ui_battlenet_glue_dropdownbutton_normaloverpressedover.dds

    The image type must be set to EndCap.

    #5 Dec 21, 2012 at 15:07 UTC - 0 likes

    @cgsource: Go

    Thanks a lot :D

    NOTE: I used the "Set Dialog Item Image Type" action to set the image type, which affects both the image and the hower image as far as I can see.

  • 5 posts

You must login to post a comment. Don't have an account? Register to get one!