Update world marker code for DF
This commit is contained in:
parent
1e03a13d39
commit
f2c6935c06
1 changed files with 13 additions and 2 deletions
|
@ -97,8 +97,19 @@ function events:MERCHANT_SHOW(...)
|
||||||
end
|
end
|
||||||
|
|
||||||
function events:PLAYER_LOGIN(...)
|
function events:PLAYER_LOGIN(...)
|
||||||
-- found from some forums
|
-- Updated for DF from
|
||||||
local b=ActionButton8 _MH=_MH or(b:SetAttribute("*type5","macro")or SecureHandlerWrapScript(b,"PreClick",b,'Z=IsAltKeyDown()and 0 or(Z or 0)%8+1 self:SetAttribute("macrotext5","/wm [nomod]"..Z)'))or 1
|
-- https://www.reddit.com/r/CompetitiveWoW/comments/yy4ldr/one_button_world_marker_circle_marco_df_prepatch/
|
||||||
|
local button = ActionButton8
|
||||||
|
_MH = _MH
|
||||||
|
or (
|
||||||
|
button:SetAttribute("*type5","macro")
|
||||||
|
or SecureHandlerWrapScript(
|
||||||
|
button, "PreClick", button,
|
||||||
|
'marker = (marker or 0) % 8 + 1\n'..
|
||||||
|
'self:SetAttribute("macrotext5", "/wm "..marker)'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
or 1
|
||||||
end
|
end
|
||||||
|
|
||||||
function events:PLAYER_REGEN_DISABLED(...)
|
function events:PLAYER_REGEN_DISABLED(...)
|
||||||
|
|
Loading…
Reference in a new issue