Clicks description example for macro

This commit is contained in:
Sumsebrum 2021-06-16 02:08:00 +02:00
parent 505154e699
commit bc1a617b6e
2 changed files with 13 additions and 2 deletions

View File

@ -311,12 +311,14 @@ function Gladdy:CreateButton(i)
secure:SetAttribute("*type*", "macro") secure:SetAttribute("*type*", "macro")
--secure:SetAttribute("*type1", "target") --secure:SetAttribute("*type1", "target")
--secure:SetAttribute("*type2", "focus") --secure:SetAttribute("*type2", "focus")
--secure:SetAttribute("unit", "target")
secure:SetAttribute("unit", "arena" .. i) secure:SetAttribute("unit", "arena" .. i)
--secure.texture = secure:CreateTexture(nil, "OVERLAY") --secure.texture = secure:CreateTexture(nil, "OVERLAY")
--secure.texture:SetAllPoints(secure) --secure.texture:SetAllPoints(secure)
--secure.texture:SetTexture("Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp") --secure.texture:SetTexture("Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp")
button.id = i button.id = i
--button.unit = "target"
button.unit = "arena" .. i button.unit = "arena" .. i
button.secure = secure button.secure = secure

View File

@ -190,8 +190,17 @@ local function SetupAttributeOption(i)
}, },
spell = { spell = {
type = "input", type = "input",
name = L["Spell name / Macro text"], name = L["Cast Spell / Macro"],
desc = L["Use *arena* as placeholder. Like a '/rofl *arena*'"], desc = L["\n|cff1ac742Cast Spell:|r\n" ..
"Type in the spell name.\n" ..
"For example:\n" ..
"|cff17d1c8Polymorph|r\n" ..
"\n" ..
"|cff1ac742Macro:|r\n" ..
"Use *arena* as placeholder.\n" ..
"For example:\n" ..
"|cff17d1c8/cast [@*arena*] Blind\n" ..
"/run SendChatMessage(\"Blinding \" .. UnitName(\"*arena*\"), \"PARTY\")|r"],
order = 5, order = 5,
width = "full", width = "full",
multiline = 10, multiline = 10,