• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

How to make a ability button?

Status
Not open for further replies.
Level 2
Joined
Jul 14, 2022
Messages
4
i want make a ability button with FDF, custom UI like WOW(single hero)
but i donno how to control CD mask layer
can anyone teach me? thanks verymuch :psmile::psmile::psmile:

version 1.27
 
Level 2
Joined
Jul 14, 2022
Messages
4
this‘s my FDF,
the "ActionButtonCDMask" is invisible,:pcry::pcry:

i confuse how to made CDMask of ability button


JASS:
Frame "FRAME" "ActionButton" 
{
    Width 0.0224,
    Height 0.0224,
    Frame "BACKDROP" "ActionButtonIcon" 
    {
        Width 0.03,
        Height 0.03,
        SetAllPoints,
        UseActiveContext,
        BackdropBackground "ReplaceableTextures\CommandButtons\BTNPolymorph.blp",
    }
    Frame "SPRITE" "ActionButtonCDMask"
    {
        Width 0.001,
        Height 0.001,
        SetPoint CENTER, "ActionButtonIcon", CENTER ,0,0,
        BackgroundArt "UI\Feedback\Cooldown\UI-Cooldown-Indicator.mdl",
    }
    Frame "BACKDROP" "ActionButtonBorder" 
    {
        Width 0.05,
        Height 0.05,
        UseActiveContext,
        SetPoint CENTER, "ActionButton", CENTER ,0,0,
        BackdropBackground "texture\actionbutton-border.blp",
        BackdropBlendAll,
    }
}
 

Uncle

Warcraft Moderator
Level 67
Joined
Aug 10, 2018
Messages
6,953
i want make a ability button with FDF, custom UI like WOW(single hero)
but i donno how to control CD mask layer
can anyone teach me? thanks verymuch :psmile::psmile::psmile:

version 1.27
You can't do that on version 1.27. Custom UI was added in 1.31.

Maybe you can use one of the older methods. Search around Hive for older threads on UI.

Edit:
Here's everything you need to know about custom UI:
 
Last edited:
Status
Not open for further replies.
Top