You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
standing=BAR_REP_DATA[standingID].l--convert numerical standingID to text i.e "Exalted" instead of 8
@@ -480,17 +482,16 @@ function STATUSBTN:repstrings_Update(repGainedString)
480
482
end
481
483
else--is a "Friendship" faction
482
484
ifstring.find(name, "Brawl'gar Arena") orstring.find(name, "Bizmo's Brawlpub") then
483
-
colors.r, colors.g, colors.b=BAR_REP_DATA[standingID].r, BAR_REP_DATA[standingID].g, BAR_REP_DATA[standingID].b--offset by two, because friendships don't have "hated" or "hostile" ranks
colors.r, colors.g, colors.b=BAR_REP_DATA[standingID+2].r, BAR_REP_DATA[standingID+2].g, BAR_REP_DATA[standingID+2].b--offset by two, because friendships don't have "hated" or "hostile" ranks
--repGainedString is a phrase that reads like "Reputation with Zandalari Empire increased by 75.", except on login it's type boolean for some reason
496
497
ifrepGainedStringandtype(repGainedString) ~="boolean" andrepGainedString:find(name) orself.data.autoWatch==ithen--this line automatically assigns the most recently updated repData to RepWatch[0], and the "auto" option assigns RepWatch[0] to be shown
@@ -545,20 +546,10 @@ function STATUSBTN:repDropDown_Initialize() --Initialize the dropdown menu for c
545
546
546
547
fork,vinpairs(RepWatch) do--insert all factions and percentages into "data"
547
548
ifk>0then--skip the "0" entry which is our autowatch
548
-
localheader
549
-
ifv.headerOverridethen
550
-
header=v.headerOverride
551
-
else
552
-
header=v.header
553
-
ifv.header=="Guild" then--the "Guild" category is kinda stupid to just have alone, so we should override it with "Other"
@@ -637,7 +628,19 @@ function STATUSBTN:repDropDown_Initialize() --Initialize the dropdown menu for c
637
628
end--create a comparison table for our custom sort routine
638
629
639
630
--these are the English Strings. It would be good to get these translated
640
-
localSORT_TABLE= {["Battle for Azeroth"]=1, ["Legion"]=2, ["Warlords of Draenor"]=3, ["Mists of Pandaria"]=4, ["Cataclysm"]=5, ["Wrath of the Lich King"]=6, ["The Burning Crusade"]=7, ["Classic"]=8, ["Guild"]=9, ["Other"]=10}
631
+
localSORT_TABLE= {
632
+
["Shadowlands"] =1,
633
+
["Battle for Azeroth"]=2,
634
+
["Legion"]=3,
635
+
["Warlords of Draenor"]=4,
636
+
["Mists of Pandaria"]=5,
637
+
["Cataclysm"]=6,
638
+
["Wrath of the Lich King"]=7,
639
+
["The Burning Crusade"]=8,
640
+
["Classic"]=9,
641
+
["Guild"]=10,
642
+
["Other"]=11
643
+
}
641
644
--sort the list of our reputation brackets according the priority table above
0 commit comments