Skip to content

Revisit the ActionButtonUseKeyDown cvar #85

@mooreatv

Description

@mooreatv

Goal would be to have /click work in macros without

https://github.com/mooreatv/DynamicBoxer/blob/v3.11.04/DynamicBoxer/DBoxInit.lua#L28-L29

Stanzilla/WoWUIBugs#317 (comment)

The idea in the Github comment does let you do an action on button up 
local button = CreateFrame("Button", "PMDemoButton", UIParent, "UIPanelDynamicResizeButtonTemplate,SecureActionButtonTemplate")
button:SetPoint("CENTER")
button:SetText("Demo")
DynamicResizeButton_Resize(button)
button:RegisterForClicks("AnyUp");
button:SetAttribute("type", "macro")
button:SetAttribute("macrotext", "/run print(\"hey\")");

button:SetAttribute("pressAndHoldAction", true);
button:SetAttribute("typerelease", "macro");

Though we don't want stuff to require more arguments/changes to macros

ie /click FooButton should just work (as in trigger in mama) without having users having to rewrite all the places they put it to add a 1
we don't need it to be on up, down is fine/faster and I don't hack 2 actions in 1 key either (ie diff on down and up)
oh and work the same for a addon keybind right now I have plain <Binding ...> in the bindings.xml

https://discord.com/channels/525590038608740363/610205215475499092/1151275158389137449

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions