29c5661 - Add stance bar, remove azerite bar
authorAleksi Blinnikka <aleksi.blinnikka@iki.fi>
Tue, 25 Aug 2020 20:52:35 +0000
committerAleksi Blinnikka <aleksi.blinnikka@iki.fi>
Tue, 13 Oct 2020 12:12:34 +0000
OmaAB/AzeriteBar.lua [deleted file]
OmaAB/Bindings.xml
OmaAB/HideBlizzard.lua
OmaAB/OmaAB.toc
OmaAB/StanceBar.lua [new file with mode: 0644]

diff --git a/OmaAB/AzeriteBar.lua b/OmaAB/AzeriteBar.lua
deleted file mode 100644 (file)
index 4989652..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
--- AzeriteBar.lua
-local _;
-local width = 300;
-local running = false;
-local frame = CreateFrame("Frame", "OmaAzeriteBar", UIParent);
-
-frame:SetScript("OnEvent", function()
-    frame:SetPoint("BOTTOM");
-    frame:SetWidth(width);
-    frame:SetHeight(8);
-    frame.base = frame:CreateTexture(nil, "BACKGROUND");
-    frame.base:SetAllPoints();
-    frame.base:SetColorTexture(0, 0, 0, 0.5);
-    frame.bar = frame:CreateTexture(nil, "BORDER");
-    frame.bar:SetPoint("TOPLEFT", frame.base, "TOPLEFT");
-    frame.bar:SetPoint("BOTTOMLEFT", frame.base, "BOTTOMLEFT");
-    frame.bar:SetColorTexture(ARTIFACT_BAR_COLOR:GetRGB());
-    frame.text = frame:CreateFontString(nil, "ARTWORK", "GameFontHighlight");
-    frame.text:SetPoint("BOTTOM");
-    frame.text:Hide();
-
-    frame:SetScript("OnEvent", function()
-        -- from FrameXML/AzeriteBar.lua
-        local azeriteItem = C_AzeriteItem.FindActiveAzeriteItem();
-        if not azeriteItem then return end
-
-        local xp, totalxp = C_AzeriteItem.GetAzeriteItemXPInfo(azeriteItem);
-        frame.bar:SetWidth(xp/totalxp*width);
-        frame.text:SetFormattedText("%d / %d", xp, totalxp);
-    end);
-    frame:UnregisterAllEvents();
-    frame:RegisterEvent("PLAYER_ENTERING_WORLD");
-    frame:RegisterEvent("AZERITE_ITEM_EXPERIENCE_CHANGED");
-    -- from FrameXML/MainMenuBar.lua
-    frame:SetScript("OnEnter", function(frame) frame.text:Show(); end);
-    frame:SetScript("OnLeave", function(frame) frame.text:Hide(); end);
-end);
-frame:RegisterEvent("PLAYER_LOGIN");
index 7ae37aa..5c15425 100644 (file)
-<Bindings>\r
-       <Binding name="CLICK OmaBT1:LeftButton" header="OMAABBLANK1" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT2:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT3:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT4:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT5:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT6:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT7:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT8:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT9:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT10:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT11:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT12:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT13:LeftButton" header="OMAABBLANK2" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT14:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT15:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT16:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT17:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT18:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT19:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT20:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT21:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT22:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT23:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT24:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT25:LeftButton" header="OMAABBLANK3" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT26:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT27:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT28:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT29:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT30:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT31:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT32:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT33:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT34:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT35:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT36:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT37:LeftButton" header="OMAABBLANK4" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT38:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT39:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT40:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT41:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT42:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT43:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT44:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT45:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT46:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT47:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT48:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT49:LeftButton" header="OMAABBLANK5" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT50:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT51:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT52:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT53:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT54:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT55:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT56:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT57:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT58:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT59:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT60:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT61:LeftButton" header="OMAABBLANK6" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT62:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT63:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT64:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT65:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT66:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT67:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT68:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT69:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT70:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT71:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT72:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT73:LeftButton" header="OMAABBLANK7" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT74:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT75:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT76:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT77:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT78:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT79:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT80:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT81:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT82:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT83:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT84:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT85:LeftButton" header="OMAABBLANK8" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT86:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT87:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT88:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT89:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT90:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT91:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT92:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT93:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT94:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT95:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT96:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT97:LeftButton" header="OMAABBLANK9" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT98:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT99:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT100:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT101:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT102:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT103:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT104:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT105:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT106:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT107:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT108:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT109:LeftButton" header="OMAABBLANK10" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT110:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT111:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT112:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT113:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT114:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT115:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT116:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT117:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT118:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT119:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK OmaBT120:LeftButton" category="OmaAB "/>\r
-    <!--<Binding name="CLICK BT4PetButton1:LeftButton" header="OMAABPET" category="OmaAB "/>\r
-       <Binding name="CLICK BT4PetButton2:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4PetButton3:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4PetButton4:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4PetButton5:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4PetButton6:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4PetButton7:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4PetButton8:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4PetButton9:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4PetButton10:LeftButton" category="OmaAB "/>\r
-    <Binding name="CLICK BT4StanceButton1:LeftButton" header="OMAABSTANCE" category="OmaAB "/>\r
-       <Binding name="CLICK BT4StanceButton2:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4StanceButton3:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4StanceButton4:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4StanceButton5:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4StanceButton6:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4StanceButton7:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4StanceButton8:LeftButton" category="OmaAB "/>\r
-       <Binding name="CLICK BT4StanceButton9:LeftButton" category="OmaAB "/>\r
-    <Binding name="CLICK BT4StanceButton10:LeftButton" category="OmaAB "/>-->\r
-</Bindings>\r
+<Bindings>
+       <Binding name="CLICK OmaBT1:LeftButton" header="OMAABBLANK1" category="OmaAB "/>
+       <Binding name="CLICK OmaBT2:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT3:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT4:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT5:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT6:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT7:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT8:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT9:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT10:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT11:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT12:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT13:LeftButton" header="OMAABBLANK2" category="OmaAB "/>
+       <Binding name="CLICK OmaBT14:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT15:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT16:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT17:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT18:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT19:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT20:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT21:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT22:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT23:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT24:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT25:LeftButton" header="OMAABBLANK3" category="OmaAB "/>
+       <Binding name="CLICK OmaBT26:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT27:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT28:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT29:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT30:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT31:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT32:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT33:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT34:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT35:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT36:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT37:LeftButton" header="OMAABBLANK4" category="OmaAB "/>
+       <Binding name="CLICK OmaBT38:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT39:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT40:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT41:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT42:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT43:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT44:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT45:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT46:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT47:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT48:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT49:LeftButton" header="OMAABBLANK5" category="OmaAB "/>
+       <Binding name="CLICK OmaBT50:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT51:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT52:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT53:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT54:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT55:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT56:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT57:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT58:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT59:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT60:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT61:LeftButton" header="OMAABBLANK6" category="OmaAB "/>
+       <Binding name="CLICK OmaBT62:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT63:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT64:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT65:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT66:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT67:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT68:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT69:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT70:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT71:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT72:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT73:LeftButton" header="OMAABBLANK7" category="OmaAB "/>
+       <Binding name="CLICK OmaBT74:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT75:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT76:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT77:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT78:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT79:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT80:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT81:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT82:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT83:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT84:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT85:LeftButton" header="OMAABBLANK8" category="OmaAB "/>
+       <Binding name="CLICK OmaBT86:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT87:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT88:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT89:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT90:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT91:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT92:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT93:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT94:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT95:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT96:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT97:LeftButton" header="OMAABBLANK9" category="OmaAB "/>
+       <Binding name="CLICK OmaBT98:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT99:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT100:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT101:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT102:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT103:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT104:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT105:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT106:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT107:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT108:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT109:LeftButton" header="OMAABBLANK10" category="OmaAB "/>
+       <Binding name="CLICK OmaBT110:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT111:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT112:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT113:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT114:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT115:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT116:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT117:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT118:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT119:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBT120:LeftButton" category="OmaAB "/>
+    <Binding name="CLICK OmaBTStance1:LeftButton" header="OMAABSTANCE" category="OmaAB "/>
+       <Binding name="CLICK OmaBTStance2:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK OmaBTStance3:LeftButton" category="OmaAB "/>
+    <!--<Binding name="CLICK BT4PetButton1:LeftButton" header="OMAABPET" category="OmaAB "/>
+       <Binding name="CLICK BT4PetButton2:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4PetButton3:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4PetButton4:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4PetButton5:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4PetButton6:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4PetButton7:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4PetButton8:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4PetButton9:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4PetButton10:LeftButton" category="OmaAB "/>
+    <Binding name="CLICK BT4StanceButton1:LeftButton" header="OMAABSTANCE" category="OmaAB "/>
+       <Binding name="CLICK BT4StanceButton2:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4StanceButton3:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4StanceButton4:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4StanceButton5:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4StanceButton6:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4StanceButton7:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4StanceButton8:LeftButton" category="OmaAB "/>
+       <Binding name="CLICK BT4StanceButton9:LeftButton" category="OmaAB "/>
+    <Binding name="CLICK BT4StanceButton10:LeftButton" category="OmaAB "/>-->
+</Bindings>
index 99eb825..d2524ce 100644 (file)
@@ -93,11 +93,11 @@ local function hide()
     ZoneAbilityFrame:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", -450, 150);
     ExtraActionBarFrame:ClearAllPoints();
     ExtraActionBarFrame:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", -450, 120);
     ZoneAbilityFrame:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", -450, 150);
     ExtraActionBarFrame:ClearAllPoints();
     ExtraActionBarFrame:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", -450, 120);
-    --[[StanceBarFrame:UnregisterAllEvents()
+    StanceBarFrame:UnregisterAllEvents()
     StanceBarFrame:Hide()
     StanceBarFrame:SetParent(UIHider)
 
     StanceBarFrame:Hide()
     StanceBarFrame:SetParent(UIHider)
 
-    --BonusActionBarFrame:UnregisterAllEvents()
+    --[[--BonusActionBarFrame:UnregisterAllEvents()
     --BonusActionBarFrame:Hide()
     --BonusActionBarFrame:SetParent(UIHider)
 
     --BonusActionBarFrame:Hide()
     --BonusActionBarFrame:SetParent(UIHider)
 
index ac0a169..0190f10 100644 (file)
@@ -7,5 +7,5 @@
 HideBlizzard.lua
 Bindings.xml
 ExpBar.lua
 HideBlizzard.lua
 Bindings.xml
 ExpBar.lua
-AzeriteBar.lua
 ActionBars.lua
 ActionBars.lua
+StanceBar.lua
diff --git a/OmaAB/StanceBar.lua b/OmaAB/StanceBar.lua
new file mode 100644 (file)
index 0000000..afb5cc6
--- /dev/null
@@ -0,0 +1,78 @@
+local _;
+local format = string.format;
+local stancebar = CreateFrame("Frame", "OmaStanceBar", UIParent);
+
+function create(slot, bar, prev)
+    local frame = CreateFrame("CheckButton", "OmaBTStance"..slot, bar, "StanceButtonTemplate");
+    bar[slot] = frame;
+    frame:SetID(slot);
+    frame:SetWidth(32);
+    frame:SetHeight(32);
+    frame:GetNormalTexture():SetTexture("");
+    frame.cooldown = { SetSwipeColor = function() end, };
+    frame.base = frame:CreateTexture(nil, "BACKGROUND");
+    frame.base:SetAllPoints();
+    frame.base:SetColorTexture(0, 0, 0, 0.5);
+    frame.icon = frame:CreateTexture(nil, "ARTWORK");
+    frame.icon:SetPoint("TOPLEFT", frame.base, "TOPLEFT", 1, -1);
+    frame.icon:SetPoint("BOTTOMRIGHT", frame.base, "BOTTOMRIGHT", -1, 1);
+    frame.icon:SetTexCoord(0.07, 0.93, 0.07, 0.93);
+
+    if slot == 1 then
+        frame:SetPoint("TOPLEFT");
+    else
+        frame:SetPoint("TOPLEFT", prev, "TOPRIGHT");
+    end
+    frame:RegisterForClicks("AnyUp");
+end
+
+-- FIXME if more stances necessary use NUM_STANCE_SLOTS for the max, paladins have 3
+function update(bar)
+    local n = GetNumShapeshiftForms();
+    --for i=1,NUM_STANCE_SLOTS do
+    for i=1,3 do
+        local button = bar[i];
+        if i <= n then
+            local tex, active, castable = GetShapeshiftFormInfo(i);
+            local icon = button.icon;
+            icon:SetTexture(tex);
+            if active then
+                button:SetChecked(true);
+            else
+                button:SetChecked(false);
+            end
+            if castable then
+                icon:SetVertexColor(1, 1, 1);
+            else
+                icon:SetVertexColor(0.4, 0.4, 0.4);
+            end
+            button:Show();
+        else
+            button:Hide();
+        end
+    end
+end
+
+stancebar:SetScript("OnEvent", function(self, event)
+    if event == "UPDATE_SHAPESHIFT_COOLDOWN" then
+        update(self);
+    elseif event == "PLAYER_LOGIN" then
+        -- TODO do class detection and only create necessary buttons
+        stancebar:UnregisterAllEvents();
+        for i=1,3 do
+            create(i, self, self[i-1]);
+        end
+        update(self);
+        _G["BINDING_HEADER_OMAABSTANCE"] = "Stance Bar";
+        for i = 1,3 do
+            _G[format("BINDING_NAME_CLICK OmaBTStance%d:LeftButton", i)] = format("Stance Bar Button %d", i);
+        end
+        stancebar:RegisterEvent("UPDATE_SHAPESHIFT_COOLDOWN");
+    end
+end);
+stancebar:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 580, 40);
+stancebar:SetFrameStrata("LOW");
+stancebar:SetWidth(1);
+stancebar:SetHeight(1);
+stancebar:RegisterEvent("PLAYER_LOGIN");
+stancebar:Show();