I recently started to redo my UI and decided to use kgPanels aswell. I looked around here and there for idees and found this compilation that is called LUI and he had done a sidebar that apears as you hover over a panel and disapears when you exit, i checked his code and basically replicated what he had done but i am not entierly satisfied with the result.
Here is the code i use for when the actionbar3 is "hidden". UIParent as parentframe aswell.
OnEnter local sps = kgPanels:FetchFrame("spshown") self:Hide() sps:Show() BT4Bar3:SetAlpha(1)
And here is the code i use for when the actionbar3 is "visiable". UIParent as parentframe aswell.
OnLeave local sph = kgPanels:FetchFrame("sphidden") self:Hide() sph:Show() BT4Bar3:SetAlpha(0)
The problem comes when i leave the actionbar3 and move of the edge to quick it doesnt seem to register that i have left the panel and the panel is left open untill i nudge it and move out. I've tried to change the level on the panel so it is above the ActionBar but ofc then i cannot click on the buttons.
Is there any way to work around this or do i need to rethink?
I started out with having the actionbar fade out, parent a frame to it and hide/show the bars with OnShow and OnHide but it didnt work at all for some reason. To me this seemed the best solution but maybe OnShow and OnHide doesnt trigger from a panel fading in and out with its parent.
Another problem i encounterd was when i implemented a panel that expanded over FortExorcist's cooldownbar so that when there was cooldowns a panel coverd that aswell as some actionbars and a castbar. Problem became that when this bar vanish it fades out and therefor the bar also fades out making the transition become unbarable. Is there any way of getting a panel to not fade with its parent or i need to look at this with a different aproach aswell?
Thanks for the hints/tips in advance. \o.