How do I add a modifier to a secure actionbutton macrotext?
what I want to do is make my mount macro into a addon, but I cant get the [mod] command to read
mount macro code
Code:
#showtooltip
/cancelform
/leavevehicle
/stopcasting
/cast [mod:shift] Traveler's Tundra Mammoth ; [mod:ctrl] Azure Water Strider ; [mod:alt] Obsidian Nightwing
/run if SecureCmdOptionParse"[nomod]"then C_MountJournal.Summon(0)end
my testcode to see that [mod] is not working
yes, I know that I should post the entire code, but it is such a horrible mess right now so I made this one instead to describe my problem
Lua Code:
local HSframe = CreateFrame("BUTTON","homeButton", UIParent, "SecureActionButtonTemplate")
HSframe:SetPoint("CENTER")
HSframe:SetSize(42, 16)
HSframe:EnableMouse(true)
HSframe:RegisterForClicks("AnyUp")
HSframe:SetAttribute("type1", "macro")
HSframe:SetAttribute("macrotext", "/use [mod] item:128353; item:6948")
HSframe.icon = HSframe:CreateTexture(nil,"OVERLAY",nil,7)
HSframe.icon:SetSize(16, 16)
HSframe.icon:SetPoint("LEFT")
HSframe.icon:SetTexture(1,1,0)
HSframe.text = HSframe:CreateFontString(nil, "OVERLAY")
HSframe.text:SetFont(STANDARD_TEXT_FONT, 16, "THINOUTLINE")
HSframe.text:SetPoint("RIGHT")
HSframe.text:SetText("HS")