···1515 F.InitDB()
1616 F.State.session.startTime = time()
1717 F.State.session.lastXP = UnitXP("player")
1818+ -- Hide Blizzard XP / Reputation bars if configured
1919+ if F.UI and F.UI.HideBlizzardBars then
2020+ F.UI.HideBlizzardBars()
2121+ end
1822 end
19232024 if event == "PLAYER_ENTERING_WORLD" then
2125 F.State:UpdatePlayerXP()
2226 F.State:UpdateQuestXP()
2727+ -- Ensure Blizzard bars stay hidden after entering world (in case something re-enabled them)
2828+ if F.UI and F.UI.HideBlizzardBars then
2929+ F.UI.HideBlizzardBars()
3030+ end
23312432 elseif event == "PLAYER_XP_UPDATE" then
2533 local currentXP = UnitXP("player")
+33
UI.lua
···198198199199 -- Perform an initial update to set values
200200 F.UI.Update()
201201+202202+ -- Hide default Blizzard bars if the option is enabled (guarded in the function)
203203+ F.UI.HideBlizzardBars()
204204+end
205205+206206+-- Utility: Hide Blizzard's default experience and reputation bars (if configured)
207207+-- This is safe even if the global Blizzard frames don't exist (we check for them).
208208+function F.UI.HideBlizzardBars()
209209+ if not (F and F.DB and F.DB.hideBlizzardXPBar) then return end
210210+211211+ -- Hide the main experience bar if present
212212+ if MainMenuExpBar then
213213+ MainMenuExpBar:UnregisterAllEvents()
214214+ MainMenuExpBar:Hide()
215215+ end
216216+217217+ -- Hide the reputation watch bar (classic name)
218218+ if ReputationWatchBar then
219219+ ReputationWatchBar:UnregisterAllEvents()
220220+ ReputationWatchBar:Hide()
221221+ end
222222+223223+ -- Hide the status-tracking manager (modern clients)
224224+ if StatusTrackingBarManager then
225225+ StatusTrackingBarManager:UnregisterAllEvents()
226226+ StatusTrackingBarManager:Hide()
227227+ end
228228+229229+ -- Some clients expose a performance/progress bar container; hide if present
230230+ if MainMenuBarPerformanceBar then
231231+ MainMenuBarPerformanceBar:UnregisterAllEvents()
232232+ MainMenuBarPerformanceBar:Hide()
233233+ end
201234end
202235203236--- The Main Draw Function (Called from Core.lua)