git
/
wowui.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fac8827
)
a5089ab - add mage action bar setup
author
Aleksi Blinnikka <aleksi.blinnikka@iki.fi>
Fri, 14 Jan 2022 00:07:57 +0000
committer
Aleksi Blinnikka <aleksi.blinnikka@iki.fi>
Fri, 14 Jan 2022 00:07:57 +0000
OmaAB/ActionBars.lua
patch
|
blob
|
history
diff --git
a/OmaAB/ActionBars.lua
b/OmaAB/ActionBars.lua
index
c18e23d
..
04f51d6
100644
(file)
--- a/
OmaAB/ActionBars.lua
+++ b/
OmaAB/ActionBars.lua
@@
-314,7
+314,7
@@
local function updateButton(button, slot)
updateState(button, slot);
updateCount(button, slot);
updateGlow(button, slot);
updateState(button, slot);
updateCount(button, slot);
updateGlow(button, slot);
- if not IsConsumableAction(slot) and not IsStackableAction(slot) then
+ if not
button.notext and not
IsConsumableAction(slot) and not IsStackableAction(slot) then
button.text:SetText(ssub(GetActionText(slot) or "", 1, 4));
button.text:Show();
end
button.text:SetText(ssub(GetActionText(slot) or "", 1, 4));
button.text:Show();
end
@@
-522,6
+522,7
@@
local function createActionBar(parent, config)
secure.text = secure:CreateFontString(nil, "OVERLAY", "NumberFontNormal");
secure.text:SetPoint("BOTTOMLEFT", secure, "BOTTOMLEFT", 2, -1);
secure.text:Hide();
secure.text = secure:CreateFontString(nil, "OVERLAY", "NumberFontNormal");
secure.text:SetPoint("BOTTOMLEFT", secure, "BOTTOMLEFT", 2, -1);
secure.text:Hide();
+ secure.notext = config.notext;
secure.cd = CreateFrame("Cooldown", "OmaBTCD"..slot, secure, "CooldownFrameTemplate");
secure.cd:SetAllPoints();
secure:SetAttribute("type", "action");
secure.cd = CreateFrame("Cooldown", "OmaBTCD"..slot, secure, "CooldownFrameTemplate");
secure.cd:SetAllPoints();
secure:SetAttribute("type", "action");
@@
-549,6
+550,15
@@
end
local function initialize()
local _, class = UnitClass("player");
local name, realm = UnitFullName("player");
local function initialize()
local _, class = UnitClass("player");
local name, realm = UnitFullName("player");
+ if class == "MAGE" then
+ settings.Oma1.x = 750;
+ settings.Oma1.y = 386;
+ settings.Oma1.columns = 12;
+ settings.Oma1.size = 34;
+ settings.Oma1.notext = true;
+ settings.Oma2.x = 580;
+ settings.Oma2.y = 300;
+ end
ActionBars:SetFrameStrata("LOW");
ActionBars:SetPoint("BOTTOMLEFT");
ActionBars:SetWidth(1);
ActionBars:SetFrameStrata("LOW");
ActionBars:SetPoint("BOTTOMLEFT");
ActionBars:SetWidth(1);