• 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.

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 73
Joined
Aug 10, 2018
Messages
7,866
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