[Feature Request] Hook to synchronize DodgeBar alpha with Player Frame and optional extended Enemy Frame width
ChechoChapar opened this issue · 0 comments
Feature description:
I recently customized GW2UI and noticed that when the Player Frame is hidden (for example, when using a custom UI layout), the DodgeBar remains visible.
This creates a small visual inconsistency, especially for users who design minimalist or cinematic HUDs.
To address this, I implemented a small hook directly in 'playerFrame.lua' that synchronizes the DodgeBar alpha with the Player Frame visibility state.
This ensures the DodgeBar fades or hides consistently with the Player Frame.
It could be added as an optional feature or controlled through the UI settings.
lua:
-- Hook to synchronize dodgebar alpha with Player Frame
hooksecurefunc(frame, "SetAlpha", function(self, alpha)
if self.dodgebar then
self.dodgebar:SetAlpha(alpha)
if self.dodgebar.skyrindingBar then
self.dodgebar.skyrindingBar:SetAlpha(alpha)
end
end
end)
This hook was placed inside playerFrame.lua, right after the frame setup logic, and works seamlessly.
Additional suggestion:
I also modified the Enemy Frame to achieve a more “soulslike boss bar” look.
This was done by editing unitframes.xml (line 452), increasing the bar width from 213 to 550:
Thank you for considering this!
GW2UI is already one of the most beautiful UI overhauls in WoW —these small refinements could make it even more polished and flexible for creative setups.