Mercurial > wow > oocdo
comparison OOCDo.lua @ 6:0a7fd4d73d30
newer commands use more types, so reset type in posthook when emptying button
author | rowaasr13 |
---|---|
date | Tue, 10 Jan 2017 19:38:52 +0300 |
parents | 56099742e29b |
children | e41de98f6b33 |
comparison
equal
deleted
inserted
replaced
5:8cabe988fd6c | 6:0a7fd4d73d30 |
---|---|
12 button:SetAttribute("macrotext", "") | 12 button:SetAttribute("macrotext", "") |
13 SecureHandlerWrapScript( | 13 SecureHandlerWrapScript( |
14 button, -- frame | 14 button, -- frame |
15 "OnClick", -- script | 15 "OnClick", -- script |
16 button, -- header | 16 button, -- header |
17 'return nil, "reset"', -- pre | 17 'return nil, "reset"', -- pre |
18 'self:SetAttribute("macrotext", "")' -- post | 18 'self:SetAttribute("type", "macro") self:SetAttribute("macrotext", "")' -- post |
19 ) | 19 ) |
20 | 20 |
21 function button.MacroText(command, command2) | 21 function button.MacroText(command, command2) |
22 if command == button then command = command2 end | 22 if command == button then command = command2 end |
23 if InCombatLockdown() then return end | 23 if InCombatLockdown() then return end |