LunaUnitFrames icon indicating copy to clipboard operation
LunaUnitFrames copied to clipboard

Enabling combat text requires reloading the UI

Open stijnherreman opened this issue 3 years ago • 0 comments

When enabling the combat text on a unit frame (e.g. Player or Target), a reload of the UI is required to make it work.

I did some debugging and this may be a bug in FrameXML code, so perhaps best course of action is to add a note in the config UI of LUF?

https://github.com/Aviana/LunaUnitFrames/blob/1c034243d261c636e3ea5e121e63130e85c5354c/libs/oUF_Plugins/oUF_CombatText/oUF_CombatText.lua#L65

After the line above is executed, element.feedbackText:IsVisible() is supposed to be true because the last line of CombatFeedback_OnCombatEvent is feedbackText:Show();. However, element.feedbackText:IsVisible() is consistently false until you perform a reload of the UI.

stijnherreman avatar May 06 '21 11:05 stijnherreman