mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-28 16:55:29 +00:00
Turns out mod is a function, whoops
This commit is contained in:
@@ -5,7 +5,7 @@ local AB = E:GetModule("ActionBars");
|
|||||||
--Lua functions
|
--Lua functions
|
||||||
local _G = _G
|
local _G = _G
|
||||||
local select, tonumber, pairs, getn = select, tonumber, pairs, getn
|
local select, tonumber, pairs, getn = select, tonumber, pairs, getn
|
||||||
local floor = math.floor
|
local floor, mod = math.floor, math.mod
|
||||||
local find, format = string.find, string.format
|
local find, format = string.find, string.format
|
||||||
--WoW API / Variables
|
--WoW API / Variables
|
||||||
local hooksecurefunc = hooksecurefunc
|
local hooksecurefunc = hooksecurefunc
|
||||||
@@ -174,8 +174,7 @@ function AB:BindUpdate(button, spellmacro)
|
|||||||
elseif bind.button.keyBoundTarget then
|
elseif bind.button.keyBoundTarget then
|
||||||
bind.button.bindstring = bind.button.keyBoundTarget
|
bind.button.bindstring = bind.button.keyBoundTarget
|
||||||
else
|
else
|
||||||
local modact = 1+(bind.button.action-1)
|
local modact = mod(1+(bind.button.action-1),12)
|
||||||
modact = modact - floor(modact/12)*12
|
|
||||||
if bind.button.action < 25 or bind.button.action > 72 then
|
if bind.button.action < 25 or bind.button.action > 72 then
|
||||||
bind.button.bindstring = "ACTIONBUTTON"..modact
|
bind.button.bindstring = "ACTIONBUTTON"..modact
|
||||||
elseif bind.button.action < 73 and bind.button.action > 60 then
|
elseif bind.button.action < 73 and bind.button.action > 60 then
|
||||||
|
|||||||
Reference in New Issue
Block a user