Hi all,
I'm working on a new addon and I got some trouble with a texture control.
You can grab the source over here:
FCO StarveStop - with texture bug
Problem
1. The icon texture should show as I open the LAM settings panel and the alert icon is enabled -> It will only do this once for each character. If I disable the alert icon and enable it again the texture won't be shown anymore
2. The icon should be shown if your buff food runs out. You can test this if you enable the alert icon in the settings and use the global debug function with /script or /zgoo or torchbug (etc. addons).
Lua Code:
FCOStarveStop.debugEvent(<buffFoodName>)
<buffFoodName> should be one entry from the 2 lists
FCOStarveStop.buffNames.food
FCOStarveStop.buffNames.drink
e.g.
Code:
increase max health
If you currently do not have this kind of buff food active the alert text/icon messages will show up (at leats the text will be shown, but the icon won't
)
3. The icon should be hidden if you right click the icon -> Works but it won't be shown again?
I guess it's a simple silly bug but I can't find it
The icon just shows once for each character and afterwards it is gone. ZGOO is telling me that IsHidden() is False. The same for the parent TopLevel control FCOStarveStopContainer.
So why is this damn icon always hidden
Thanks for your help.