Quote from eilendaAfter reading the numerous pages, and getting some example I adapted a script to simply hide Recount_MainWindow when I am not fighting, and showing when I start the fight.
Thats a beginning to learn scripting with KGpanels.
self:RegisterEvent("PLAYER_REGEN_DISABLED") self:RegisterEvent("PLAYER_REGEN_ENABLED") self:Hide()On Event
if (event == "PLAYER_REGEN_ENABLED") then Recount_MainWindow:Hide() elseif event == "PLAYER_REGEN_DISABLED" then Recount_MainWindow:Show() endSo far the window shows when I start fighting and hide when I stop.
But if I take a portal, or simply log in game, then Recount shows.
So if I could get a little help to finalise my script I would appreciate.
Also I was curious to understand and sorry if my question is silly but I thought that with the patch our Regen stopped at rest and start at fight.
If so that would mean that PLAYER_REGEN_ENABLED is now the beginning of the fight no ?
I can help witht his one. Hehe. I was having the same problem until I had read a DK post who was having this issue and copied the code he was told to replace and simply replaced "DEATHKNIGHT" with "HUNTER". I've asked as well, if this is the proper way to do it (post above this one). It works 100% so I'll paste it for you.
if select(2, UnitClass("player")) == "HUNTER" then
Just replace "HUNTER" with your player's class. I'm sure there is a better way seeing as doing this we would have to duplicate the panels for every otehr class we want using the pannel(s) we are trying to hide ooc. At least for now, this works.
As for the REGEN question. I assume it's the same as always otherwise these panels would show ooc and hide ic. *shrug*