WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   How to prevent automated HideUIPanel()? (https://www.wowinterface.com/forums/showthread.php?t=57840)

LudiusMaximus 02-26-20 03:25 AM

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!

SDPhantom 02-26-20 01:01 PM

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.

LudiusMaximus 03-04-20 02:47 PM

Thanks a lot! Exactly what I was looking for!:)

LudiusMaximus 03-05-20 02:02 PM

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?

LudiusMaximus 03-05-20 02:19 PM

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?

SDPhantom 03-06-20 01:54 AM

My first guess would be something to do with taint. Still not 100% on the specifics though.


All times are GMT -6. The time now is 07:01 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI