Skip to content

Commit ebdd97f

Browse files
committed
Merge branch 'release/3.6.0'
2 parents 91dcb19 + 1f70370 commit ebdd97f

File tree

7 files changed

+72
-5
lines changed

7 files changed

+72
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Improved Blizzard UI Changelog
22

3+
3.6.0 - 9.1 Support.
4+
3.6.0 - Class Coloured Party Frames
5+
3.6.0 - Fix Zandalari Troll Loot String
6+
3.5.1 - Fix TBC Focus Frame Dragging
7+
3.5.0 - Full TBC Support.
8+
3.5.0 - Fix Party Frames
39
3.4.1 - Disabled Party Frames in TBC.
410
3.4.0 - The Burning Crusade Classic Support
511
3.3.1 - More Focus Frame Improvements.

ImprovedBlizzardUI.toc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## Interface: 90005
1+
## Interface: 90100
22
## Title: Improved Blizzard UI
33
## Notes: A variety of improvements to the default Blizzard UI
44
## Version: @project-version@
55
## Author: Kaytotes
6-
## SavedVariables: ImpUI_DB
6+
## SavedVariables: ImpBlizzardUI_DB
77
## OptionalDeps: Ace3, Blizzard_TalkingHeadUI, Blizzard_WeeklyRewards
88
## X-Embeds: Ace3
99
## X-Curse-Project-ID: 103336

config.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ ImpUI_Config.defaults = {
7575

7676
partyFrameScale = 1.4,
7777
partyFramePosition = Helpers.pack_position('CENTER', UIParent, 'CENTER', -550, 100),
78+
partyClassColours = true,
7879

7980
focusFrameScale = 0.9,
8081
focusFramePosition = Helpers.pack_position('CENTER', UIParent, 'CENTER', -500.0, -250.0),
@@ -319,6 +320,20 @@ ImpUI_Config.options = {
319320
hidden = false,
320321
},
321322

323+
partyClassColours = {
324+
type = 'toggle',
325+
name = L['Display Class Colours'],
326+
desc = '',
327+
get = function ()
328+
return ImpUI.db.profile.partyClassColours;
329+
end,
330+
set = function (info, newValue)
331+
ImpUI.db.profile.partyClassColours = newValue;
332+
ImpUI_Party:UpdateColours();
333+
end,
334+
order = 13,
335+
},
336+
322337
-- Focus Frames Section
323338
focusHeader = {
324339
type = 'header',

core.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,13 @@ local function GetDraggables()
3939
};
4040

4141
if (Helpers.IsRetail()) then
42-
table.insert(draggables, 'ImpUI_Focus');
4342
table.insert(draggables, 'ImpUI_TalkingHead');
4443
end
4544

45+
if (Helpers.IsRetail() or Helpers.IsTBC()) then
46+
table.insert(draggables, 'ImpUI_Focus');
47+
end
48+
4649
return draggables;
4750
end
4851

helpers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ end
5252
]]
5353
function Helpers.GetSupportedBuild()
5454
if (Helpers.IsRetail()) then
55-
return '9.0.5';
55+
return '9.1.0';
5656
end
5757

5858
if (Helpers.IsTBC()) then

modules/frames/party.lua

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ function ImpUI_Party:StyleFrames()
2222

2323
-- Fonts
2424
local font = Helpers.get_styled_font(ImpUI.db.profile.primaryInterfaceFont);
25+
local size = 10;
2526

2627
-- Style Each Party Frame
2728
for i = 1, 4 do
2829
-- Update Fonts
2930
_G["PartyMemberFrame"..i.."Name"]:SetTextColor(font.r, font.g, font.b, font.a);
30-
_G["PartyMemberFrame"..i.."Name"]:SetFont(font.font, 10, font.flags);
31+
_G["PartyMemberFrame"..i.."Name"]:SetFont(font.font, size, font.flags);
3132

3233
if (Helpers.IsRetail()) then
3334
_G["PartyMemberFrame"..i.."HealthBarText"]:SetFont(font.font, 8, font.flags);
@@ -39,6 +40,45 @@ function ImpUI_Party:StyleFrames()
3940
_G["PartyMemberFrame"..i.."ManaBarTextRight"]:SetFont(font.font, 8, font.flags);
4041
end
4142
end
43+
44+
ImpUI_Party:UpdateColours();
45+
end
46+
47+
--[[
48+
Simply updates the class colouring for all party members.
49+
50+
@ return void
51+
]]
52+
function ImpUI_Party:UpdateColours()
53+
if (IsInGroup() == false) then return end
54+
55+
local font = Helpers.get_styled_font(ImpUI.db.profile.primaryInterfaceFont);
56+
local enabled = ImpUI.db.profile.partyClassColours;
57+
58+
for i = 1, 4 do
59+
local unitName = "party"..i;
60+
if (UnitExists(unitName)) then
61+
if (UnitClass(unitName)) then
62+
local c = Helpers.GetClassColour(unitName);
63+
local nameFrame = _G["PartyMemberFrame"..i.."Name"];
64+
65+
if (enabled) then
66+
nameFrame:SetTextColor(c.r, c.g, c.b, 1);
67+
else
68+
nameFrame:SetTextColor(font.r, font.g, font.b, font.a);
69+
end
70+
end
71+
end
72+
end
73+
end
74+
75+
--[[
76+
Fires when the party a player is in changes / updates with new members.
77+
78+
@ return void
79+
]]
80+
function ImpUI_Party:GROUP_ROSTER_UPDATE()
81+
ImpUI_Party:UpdateColours();
4282
end
4383

4484
--[[
@@ -140,6 +180,8 @@ function ImpUI_Party:OnEnable()
140180

141181
ImpUI_Party:LoadPosition();
142182
ImpUI_Party:StyleFrames();
183+
184+
self:RegisterEvent('GROUP_ROSTER_UPDATE');
143185
end
144186

145187
--[[

modules/misc/chat.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ local strings = {
1717
CURRENCY_GAINED_MULTIPLE = '|cffFFFF00+ %s |cffFFFF00(%d)',
1818
CURRENCY_GAINED_MULTIPLE_BONUS = '|cffFFFF00+ %s |cffFFFF00(%d)',
1919
YOU_LOOT_MONEY = '|cffFFFF00+ %s',
20+
ERR_AUTOLOOT_MONEY_S = '|cffFFFF00+ %s',
2021
LOOT_ITEM_SELF = '|cffFFFF00+ %s',
2122
LOOT_ITEM_SELF_MULTIPLE = '|cffFFFF00+ %s |cffFFFF00(%d)',
2223
LOOT_ITEM_CREATED_SELF = '|cffFFFF00+ %s',

0 commit comments

Comments
 (0)