From 2b2add05ae62dbb4880f2b0f746610e30d85a49c Mon Sep 17 00:00:00 2001 From: Lorenzo Rogai Date: Wed, 4 Dec 2024 23:15:28 +0100 Subject: [PATCH] Mark Alliance/Horde-only factions --- Icons/Alliance.tga | Bin 0 -> 4114 bytes Icons/Horde.tga | Bin 0 -> 4114 bytes RepHub.lua | 19 +++++++++++++++++-- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 Icons/Alliance.tga create mode 100644 Icons/Horde.tga diff --git a/Icons/Alliance.tga b/Icons/Alliance.tga new file mode 100644 index 0000000000000000000000000000000000000000..1f6925f2e2ce906ecb3a5cf7109328499289dfdd GIT binary patch literal 4114 zcmeHJdr(u^84n;LlIP76B!q|%AS4h7;i)1IlRzK|j}RX63_`+79t#Mf_&{`75X6Xr z@=!z(5Qmj&t*fKE>tpQBbf!Dg?zG)@r`_7^bh_hq+G-d1^=ikp)9H?>+yB~o=g#@= z{T{#XeBbY!dngoV%FD}_Lf&g$zWsl6yaJpZ<1Xx)abITTgp^S-5yIMbQsB7vce7;G z&p0uw&vRG}bD6A$`Ege5#R0-Lnan92q<*)^j(HPZ*Ik%Ri(9$2@kMcd+aqy7`_H)5 zr_VC2Q!>XQyqOiNWY~>i>{~;tTj21lBYl$8g5}sCKBDBl@HbZeiC;2kW0(f0>n8#j3yH&)hMaMOY^r0<`(R+$^CZMMOc84+U`{UI@@v+!NSFDtJv(>743u z;@cy=nTFA}l*MdcvU`>F|0q6GysXI~PeF8idtqAX-DqHa~n@y zkw!)QMHv(RdzsPlC@EI9k{-rETwF9ZMu)*5qhe#?rl)d4@y8KL>6d{CNq^)wogU&e zoC^|E+Jm{6{CWHQj-OK zksaOzhp~B66b$6Ij8MjkhU`V8Tm(^Z$B#KJbIshAX)CAsod2unub0;L-f^cMz8OyI zz0<+!T=+=7Wy@2|dM9K`C@=?+eOG#7L;fCcDyG1zoPykdfWL>h;L~u%MoN5JWw8{}i?F!;6CY;ZLF?gQ54MAS;jpQ?L^> zQT_m(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*K5yTCn2L(YCT#4XvZ~<3P5)bbBRaf^o1RbWka?A`ruV2-B|NpA`Rd>f? zWwGFwit(=wyb&912Q1-MfW=^JGzPOQbVpgj$%2#_Q?zVbbXKB$3^YY!Fw3%qi@v-7 z+Rd1vWwZZEzYmx6gu0qwzuA+b|P2K*l{%; zjj{AB?t2oQ>*#;>*S}X~GqxXel+F|_68*_w0a`23|AO_-9JU+uL}Lw~h1PuV9yF_L z>=tm7+G@kIh0pNyp3`qBm5slQ{TRSssC--G;yf3J?cK_ms%C9-Y>}nc+)3!&1Dv@` zrPg;E(Er5PX{AdYQ$Y_%s(I5NydB^z*sV0cYq(n!ua(Gg{@g0Y4p754>>+T8YxO+X zXs+$dhU=B)Q=I8v@UHi?g;PfzZTi}^8NX8yr(z#7Ki#ATI1hpcfOVzcVQ<4Jw5D8w z{}8|4_t$BCd7km@;6BKj>ARcYXKmhne+pklYq=A+zU=Gm)ML&p{11$u@cn7z?J&^~ za^a+o^jGY1%`LZTZSS7Eq(-Gx%RFoL-bMad$a*~*@PxJSHo>_M&H?Zff2r1YTJhfi z)o1jZlK|tnzUz-Y!(T;BHDNUil=NPHT~`=u z2;!(wy_dR}=bey`;oM}#1Tm%-y|r+2_VfHae`P1w0B#JKdqPd#nKac6^3h*}2K^W4 z7qjw~Y2O99fknTCb@H7jSA)KP)G^3-4)g%NN1V|??r>Q8s}|HLF4ktDafBMa>pG-5 nYb$KgO+R*(^G&Y4OO5-kSl#f~P{ST@4ehzbVn^owzXN{&THIBX literal 0 HcmV?d00001 diff --git a/RepHub.lua b/RepHub.lua index 4f30c0e..c85e464 100755 --- a/RepHub.lua +++ b/RepHub.lua @@ -321,17 +321,32 @@ function RepHub:GetRepHubTableData() highestStandingCharacterNameTextColor = classesColor[self.db.global.characterClasses[highestStandingCharacterNameText]] end + local factionAdditionalInfo = RepHub:GetFactionAdditionalInfo(factionData.name) + local factionNameText = factionData.name + if factionAdditionalInfo then + local sideIcon = "" + if factionAdditionalInfo.side == "Alliance" then + sideIcon = "Interface\\Addons\\RepHub\\Icons\\Alliance" + elseif factionAdditionalInfo.side == "Horde" then + sideIcon = "Interface\\Addons\\RepHub\\Icons\\Horde" + end + if sideIcon ~= "" then + sideIcon = string.format("\124T%s:%d\124t", sideIcon, 15) + factionNameText = sideIcon .. " " .. factionNameText + end + end + local currentGroupText = factionData.currentGroup local currentGroupIcon = groupsIcons[currentGroupText] or nil if currentGroupIcon then - local currentGroupIcon = string.format("\124T%s:%d\124t", currentGroupIcon, 25) + currentGroupIcon = string.format("\124T%s:%d\124t", currentGroupIcon, 25) currentGroupText = currentGroupIcon .. " " .. currentGroupText end table.insert(dataArr, { ["cols"] = { - { ["value"] = factionData.name }, + { ["value"] = factionNameText }, { ["value"] = currentGroupText }, { ["value"] = highestStandingText, ["color"] = highestStandingTextColor }, { ["value"] = highestStandingCharacterNameText, ["color"] = highestStandingCharacterNameTextColor },