Skip to content

Commit

Permalink
actionbar: give the stance bars proper names
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Mar 31, 2019
1 parent dd2fe57 commit 7495516
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 60 deletions.
100 changes: 50 additions & 50 deletions Bindings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,59 +14,59 @@
<Binding name="PFPAGING11" runOnUp="true">pfActionButton(23)</Binding>
<Binding name="PFPAGING12" runOnUp="true">pfActionButton(24)</Binding>

<!-- Special Bar -->
<Binding name="PFSPECIAL1" runOnUp="true" header="PFBARSPECIAL">pfActionButton(73)</Binding>
<Binding name="PFSPECIAL2" runOnUp="true">pfActionButton(74)</Binding>
<Binding name="PFSPECIAL3" runOnUp="true">pfActionButton(75)</Binding>
<Binding name="PFSPECIAL4" runOnUp="true">pfActionButton(76)</Binding>
<Binding name="PFSPECIAL5" runOnUp="true">pfActionButton(77)</Binding>
<Binding name="PFSPECIAL6" runOnUp="true">pfActionButton(78)</Binding>
<Binding name="PFSPECIAL7" runOnUp="true">pfActionButton(79)</Binding>
<Binding name="PFSPECIAL8" runOnUp="true">pfActionButton(80)</Binding>
<Binding name="PFSPECIAL9" runOnUp="true">pfActionButton(81)</Binding>
<Binding name="PFSPECIAL10" runOnUp="true">pfActionButton(82)</Binding>
<Binding name="PFSPECIAL11" runOnUp="true">pfActionButton(83)</Binding>
<Binding name="PFSPECIAL12" runOnUp="true">pfActionButton(84)</Binding>

<!-- Stance Bar 1 -->
<Binding name="PFSTANCEONE1" runOnUp="true" header="PFBARSTANCEONE">pfActionButton(85)</Binding>
<Binding name="PFSTANCEONE2" runOnUp="true">pfActionButton(86)</Binding>
<Binding name="PFSTANCEONE3" runOnUp="true">pfActionButton(87)</Binding>
<Binding name="PFSTANCEONE4" runOnUp="true">pfActionButton(88)</Binding>
<Binding name="PFSTANCEONE5" runOnUp="true">pfActionButton(89)</Binding>
<Binding name="PFSTANCEONE6" runOnUp="true">pfActionButton(90)</Binding>
<Binding name="PFSTANCEONE7" runOnUp="true">pfActionButton(91)</Binding>
<Binding name="PFSTANCEONE8" runOnUp="true">pfActionButton(92)</Binding>
<Binding name="PFSTANCEONE9" runOnUp="true">pfActionButton(93)</Binding>
<Binding name="PFSTANCEONE10" runOnUp="true">pfActionButton(94)</Binding>
<Binding name="PFSTANCEONE11" runOnUp="true">pfActionButton(95)</Binding>
<Binding name="PFSTANCEONE12" runOnUp="true">pfActionButton(96)</Binding>
<Binding name="PFSTANCEONE1" runOnUp="true" header="PFBARSTANCEONE">pfActionButton(73)</Binding>
<Binding name="PFSTANCEONE2" runOnUp="true">pfActionButton(74)</Binding>
<Binding name="PFSTANCEONE3" runOnUp="true">pfActionButton(75)</Binding>
<Binding name="PFSTANCEONE4" runOnUp="true">pfActionButton(76)</Binding>
<Binding name="PFSTANCEONE5" runOnUp="true">pfActionButton(77)</Binding>
<Binding name="PFSTANCEONE6" runOnUp="true">pfActionButton(78)</Binding>
<Binding name="PFSTANCEONE7" runOnUp="true">pfActionButton(79)</Binding>
<Binding name="PFSTANCEONE8" runOnUp="true">pfActionButton(80)</Binding>
<Binding name="PFSTANCEONE9" runOnUp="true">pfActionButton(81)</Binding>
<Binding name="PFSTANCEONE10" runOnUp="true">pfActionButton(82)</Binding>
<Binding name="PFSTANCEONE11" runOnUp="true">pfActionButton(83)</Binding>
<Binding name="PFSTANCEONE12" runOnUp="true">pfActionButton(84)</Binding>

<!-- Stance Bar 2 -->
<Binding name="PFSTANCETWO1" runOnUp="true" header="PFBARSTANCETWO">pfActionButton(97)</Binding>
<Binding name="PFSTANCETWO2" runOnUp="true">pfActionButton(98)</Binding>
<Binding name="PFSTANCETWO3" runOnUp="true">pfActionButton(99)</Binding>
<Binding name="PFSTANCETWO4" runOnUp="true">pfActionButton(100)</Binding>
<Binding name="PFSTANCETWO5" runOnUp="true">pfActionButton(101)</Binding>
<Binding name="PFSTANCETWO6" runOnUp="true">pfActionButton(102)</Binding>
<Binding name="PFSTANCETWO7" runOnUp="true">pfActionButton(103)</Binding>
<Binding name="PFSTANCETWO8" runOnUp="true">pfActionButton(104)</Binding>
<Binding name="PFSTANCETWO9" runOnUp="true">pfActionButton(105)</Binding>
<Binding name="PFSTANCETWO10" runOnUp="true">pfActionButton(106)</Binding>
<Binding name="PFSTANCETWO11" runOnUp="true">pfActionButton(107)</Binding>
<Binding name="PFSTANCETWO12" runOnUp="true">pfActionButton(108)</Binding>
<Binding name="PFSTANCETWO1" runOnUp="true" header="PFBARSTANCETWO">pfActionButton(85)</Binding>
<Binding name="PFSTANCETWO2" runOnUp="true">pfActionButton(86)</Binding>
<Binding name="PFSTANCETWO3" runOnUp="true">pfActionButton(87)</Binding>
<Binding name="PFSTANCETWO4" runOnUp="true">pfActionButton(88)</Binding>
<Binding name="PFSTANCETWO5" runOnUp="true">pfActionButton(89)</Binding>
<Binding name="PFSTANCETWO6" runOnUp="true">pfActionButton(90)</Binding>
<Binding name="PFSTANCETWO7" runOnUp="true">pfActionButton(91)</Binding>
<Binding name="PFSTANCETWO8" runOnUp="true">pfActionButton(92)</Binding>
<Binding name="PFSTANCETWO9" runOnUp="true">pfActionButton(93)</Binding>
<Binding name="PFSTANCETWO10" runOnUp="true">pfActionButton(94)</Binding>
<Binding name="PFSTANCETWO11" runOnUp="true">pfActionButton(95)</Binding>
<Binding name="PFSTANCETWO12" runOnUp="true">pfActionButton(96)</Binding>

<!-- Stance Bar 3 -->
<Binding name="PFSTANCETHREE1" runOnUp="true" header="PFBARSTANCETHREE">pfActionButton(109)</Binding>
<Binding name="PFSTANCETHREE2" runOnUp="true">pfActionButton(110)</Binding>
<Binding name="PFSTANCETHREE3" runOnUp="true">pfActionButton(111)</Binding>
<Binding name="PFSTANCETHREE4" runOnUp="true">pfActionButton(112)</Binding>
<Binding name="PFSTANCETHREE5" runOnUp="true">pfActionButton(113)</Binding>
<Binding name="PFSTANCETHREE6" runOnUp="true">pfActionButton(114)</Binding>
<Binding name="PFSTANCETHREE7" runOnUp="true">pfActionButton(115)</Binding>
<Binding name="PFSTANCETHREE8" runOnUp="true">pfActionButton(116)</Binding>
<Binding name="PFSTANCETHREE9" runOnUp="true">pfActionButton(117)</Binding>
<Binding name="PFSTANCETHREE10" runOnUp="true">pfActionButton(118)</Binding>
<Binding name="PFSTANCETHREE11" runOnUp="true">pfActionButton(119)</Binding>
<Binding name="PFSTANCETHREE12" runOnUp="true">pfActionButton(120)</Binding>
<Binding name="PFSTANCETHREE1" runOnUp="true" header="PFBARSTANCETHREE">pfActionButton(97)</Binding>
<Binding name="PFSTANCETHREE2" runOnUp="true">pfActionButton(98)</Binding>
<Binding name="PFSTANCETHREE3" runOnUp="true">pfActionButton(99)</Binding>
<Binding name="PFSTANCETHREE4" runOnUp="true">pfActionButton(100)</Binding>
<Binding name="PFSTANCETHREE5" runOnUp="true">pfActionButton(101)</Binding>
<Binding name="PFSTANCETHREE6" runOnUp="true">pfActionButton(102)</Binding>
<Binding name="PFSTANCETHREE7" runOnUp="true">pfActionButton(103)</Binding>
<Binding name="PFSTANCETHREE8" runOnUp="true">pfActionButton(104)</Binding>
<Binding name="PFSTANCETHREE9" runOnUp="true">pfActionButton(105)</Binding>
<Binding name="PFSTANCETHREE10" runOnUp="true">pfActionButton(106)</Binding>
<Binding name="PFSTANCETHREE11" runOnUp="true">pfActionButton(107)</Binding>
<Binding name="PFSTANCETHREE12" runOnUp="true">pfActionButton(108)</Binding>

<!-- Stance Bar 4 -->
<Binding name="PFSTANCEFOUR1" runOnUp="true" header="PFBARSTANCEFOUR">pfActionButton(109)</Binding>
<Binding name="PFSTANCEFOUR2" runOnUp="true">pfActionButton(110)</Binding>
<Binding name="PFSTANCEFOUR3" runOnUp="true">pfActionButton(111)</Binding>
<Binding name="PFSTANCEFOUR4" runOnUp="true">pfActionButton(112)</Binding>
<Binding name="PFSTANCEFOUR5" runOnUp="true">pfActionButton(113)</Binding>
<Binding name="PFSTANCEFOUR6" runOnUp="true">pfActionButton(114)</Binding>
<Binding name="PFSTANCEFOUR7" runOnUp="true">pfActionButton(115)</Binding>
<Binding name="PFSTANCEFOUR8" runOnUp="true">pfActionButton(116)</Binding>
<Binding name="PFSTANCEFOUR9" runOnUp="true">pfActionButton(117)</Binding>
<Binding name="PFSTANCEFOUR10" runOnUp="true">pfActionButton(118)</Binding>
<Binding name="PFSTANCEFOUR11" runOnUp="true">pfActionButton(119)</Binding>
<Binding name="PFSTANCEFOUR12" runOnUp="true">pfActionButton(120)</Binding>
</Bindings>
18 changes: 9 additions & 9 deletions modules/actionbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ pfUI:RegisterModule("actionbar", function ()
[12] = "BONUSACTIONBUTTON",
-- additional keybinds
[2] = "PFPAGING",
[7] = "PFSPECIAL",
[8] = "PFSTANCEONE",
[9] = "PFSTANCETWO",
[10] = "PFSTANCETHREE",
[7] = "PFSTANCEONE",
[8] = "PFSTANCETWO",
[9] = "PFSTANCETHREE",
[10] = "PFSTANCEFOUR",
}

local blizzbarmapping = {
Expand All @@ -54,10 +54,10 @@ pfUI:RegisterModule("actionbar", function ()
[4] = "Vertical",
[5] = "Left",
[6] = "Top",
[7] = "Special",
[8] = "StancePaging1",
[9] = "StancePaging2",
[10] = "StancePaging3",
[7] = "StanceBar1",
[8] = "StanceBar2",
[9] = "StanceBar3",
[10] = "StanceBar4",
[11] = "Stances",
[12] = "Pet",
}
Expand Down Expand Up @@ -863,10 +863,10 @@ pfUI:RegisterModule("actionbar", function ()
-- Localize custom keybinds for additional actionbars (see Bindings.xml)
local names = {
["PAGING"] = "Paging",
["SPECIAL"] = "Special",
["STANCEONE"] = "Stance 1",
["STANCETWO"] = "Stance 2",
["STANCETHREE"] = "Stance 3",
["STANCEFOUR"] = "Stance 4",
}

for name, loc in pairs(names) do
Expand Down
2 changes: 1 addition & 1 deletion modules/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ pfUI:RegisterModule("gui", function ()

local barnames = { {11, "Stance/Shapeshift Bar"}, {12, "Pet Actionbar"}, {1, "Main Actionbar"},
{6, "Top Actionbar"}, {5, "Left Actionbar"}, {3, "Right Actionbar"}, {4, "Vertical Actionbar"},
{2, "Paging Actionbar"}, {7, "Special Actionbar"}, {8, "Stance Bar 1"}, {9, "Stance Bar 2"}, {10, "Stance Bar 3"} }
{2, "Paging Actionbar"}, {7, "Stance Bar 1"}, {8, "Stance Bar 2"}, {9, "Stance Bar 3"}, {10, "Stance Bar 4"} }

-- >> General
pfUI.gui.tabs.actionbar.tabs.general = pfUI.gui.tabs.actionbar.tabs:CreateTabChild(T["General"], true)
Expand Down

0 comments on commit 7495516

Please sign in to comment.