• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

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 64
Joined
Aug 10, 2018
Messages
6,583
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