Thread Tools Display Modes
02-26-20, 03:25 AM   #1
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
How to prevent automated HideUIPanel()?

While at a vendor, clicking a profession in the SpellBookFrame (thus opening TradeSkillFrame) automatically closes the SpellBookFrame with a call of HideUIPanel().

I would like to suppress this automatic closing. So I tried to find the responsible code in BlizzardInterfaceCode, but to no avail.

All I know is that when I use MoveAnything on the SpellBookFrame, it stays open. But I was not able to identify which part of MoveAnything is the cause for this.

Does anybody have an idea?
I do not want to taint HideUIPanel()!

Thanks!
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote
02-26-20, 01:01 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
Most of these are registered as UIPanelWindows and are handled in UIParent.lua. If you remove a frame's entry in this table, it will no longer have this special handling.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
03-04-20, 02:47 PM   #3
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
Thanks a lot! Exactly what I was looking for!
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote
03-05-20, 02:02 PM   #4
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
A follow-up question, if I may:

When I do
Code:
UIPanelWindows["SpellBookFrame"] = nil
I cannot toggle the SpellBook any more pressing "P" during combat.

Any idea how to achieve this?
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote
03-05-20, 02:19 PM   #5
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
I just discovered by accident that
Code:
collectgarbage("collect")
at PLAYER_ENTERING_WORLD resolves the issue of my previous post.

Can anybody explain to me why this is so?
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote
03-06-20, 01:54 AM   #6
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
My first guess would be something to do with taint. Still not 100% on the specifics though.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to prevent automated HideUIPanel()?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off