Skip to content

Commit

Permalink
improve custom_class_colors handling
Browse files Browse the repository at this point in the history
update embeds
  • Loading branch information
Road-block committed Jan 8, 2025
1 parent b2d3f68 commit a920ee7
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion BastionLoot.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Author: Roadblock
## Title: BastionLoot
## Notes: In-game EPGP loot helper, supports standby, main/alt shared pool, minEP, offpecGP. Pluggable price list. Alternative +wincount mode.
## Version: 4.3.3
## Version: 4.3.4
## X-Alpha:
## X-Website: https://github.com/Road-block/BastionLoot/releases/latest
## OptionalDeps: Ace3, MizusRaidTracker
Expand Down
2 changes: 1 addition & 1 deletion BastionLoot_Cata.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Author: Roadblock
## Title: BastionLoot
## Notes: In-game EPGP loot helper, supports standby, main/alt shared pool, minEP, offpecGP. Pluggable price list. Alternative +wincount mode.
## Version: 4.3.3
## Version: 4.3.4
## X-Alpha:
## X-Website: https://github.com/Road-block/BastionLoot/releases/latest
## OptionalDeps: Ace3, MizusRaidTracker
Expand Down
2 changes: 1 addition & 1 deletion BastionLoot_Vanilla.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Author: Roadblock
## Title: BastionLoot
## Notes: In-game EPGP loot helper, supports standby, main/alt shared pool, minEP, offpecGP. Pluggable price list. Alternative +wincount mode.
## Version: 2.9.2
## Version: 2.9.3
## X-Alpha:
## X-Website: https://github.com/Road-block/BastionLoot/releases/latest
## OptionalDeps: Ace3, MizusRaidTracker
Expand Down
10 changes: 5 additions & 5 deletions Libs/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
TreeGroup Container
Container that uses a tree control to switch between groups.
-------------------------------------------------------------------------------]]
local Type, Version = "TreeGroup", 47
local Type, Version = "TreeGroup", 48
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end

Expand Down Expand Up @@ -387,10 +387,6 @@ local methods = {
["RefreshTree"] = function(self,scrollToSelection,fromOnUpdate)
local buttons = self.buttons
local lines = self.lines

for i, v in ipairs(buttons) do
v:Hide()
end
while lines[1] do
local t = tremove(lines)
for k in pairs(t) do
Expand Down Expand Up @@ -499,6 +495,10 @@ local methods = {
buttonnum = buttonnum + 1
end

-- We hide the remaining buttons after updating others to avoid a blizzard bug that keeps them interactable even if hidden when hidden before updating the buttons.
for i = buttonnum, #buttons do
buttons[i]:Hide()
end
end,

["SetSelected"] = function(self, value)
Expand Down
1 change: 1 addition & 0 deletions Modules/bids.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ function bepgp_bids:OnEnable()
self.qtip:SetClampRectInsets(-100,100,50,-50)
self.qtip:SetPoint("TOP",UIParent,"TOP",0,-50)
LD:Register(addonName.."DialogMemberBid", bepgp:templateCache("DialogMemberBid"))
RAID_CLASS_COLORS = (_G.CUSTOM_CLASS_COLORS or _G.RAID_CLASS_COLORS)
end

function bepgp_bids:announceWinner(data)
Expand Down
1 change: 1 addition & 0 deletions Modules/roster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function bepgp_roster:OnEnable()
end)
container:AddChild(export)
bepgp:make_escable(container,"add")
RAID_CLASS_COLORS = (_G.CUSTOM_CLASS_COLORS or _G.RAID_CLASS_COLORS)
end

function bepgp_roster:Toggle()
Expand Down
1 change: 1 addition & 0 deletions Modules/standby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function bepgp_standby:OnEnable()
LD:Register(addonName.."DialogStandbyCheck", bepgp:templateCache("DialogStandbyCheck"))
self._channelTimer = self:ScheduleTimer("injectOptions",10)
end
RAID_CLASS_COLORS = (_G.CUSTOM_CLASS_COLORS or _G.RAID_CLASS_COLORS)
end

function bepgp_standby:injectOptions()
Expand Down
1 change: 1 addition & 0 deletions Modules/standings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ function bepgp_standings:OnEnable()

bepgp:make_escable(container,"add")
self:RegisterMessage(addonName.."_EPGPCACHE","CacheUpdate")
RAID_CLASS_COLORS = (_G.CUSTOM_CLASS_COLORS or _G.RAID_CLASS_COLORS)
end

function bepgp_standings:Toggle()
Expand Down
1 change: 1 addition & 0 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3242,6 +3242,7 @@ function bepgp:OnEnable(reset) -- 2. PLAYER_LOGIN
bepgp.VARS.minlevel = GetMaxPlayerLevel()
end
if reset then self._initdone = nil end
RAID_CLASS_COLORS = (_G.CUSTOM_CLASS_COLORS or _G.RAID_CLASS_COLORS)
if IsInGuild() then
local guildname = GetGuildInfo("player")
if not guildname then
Expand Down

0 comments on commit a920ee7

Please sign in to comment.