-
Posted by Zax on Thu, 15 Jan 2009 07:02:46
Hello,
Since wow secure environment, I'm unable to hide or show UIParent frame while in combat.
Does anybody can tell me how to do that?
I tried to set alpha to 0 (works in combat mode) but some parts of the UI are still visible.
Thanks in advance.
-
Posted by Zax on Thu, 15 Jan 2009 07:02:46
Hello,
Since wow secure environment, I'm unable to hide or show UIParent frame while in combat.
Does anybody can tell me how to do that?
I tried to set alpha to 0 (works in combat mode) but some parts of the UI are still visible.
Thanks in advance.
-
Posted by jnwhiteh on Thu, 15 Jan 2009 08:53:26
The short answer is alpha is all you can do, but even then all of the interface elements will still be able to interact with the mouse. Every frame displayed should be a child of
UIParent
(otherwise it will have issues with scaling, and that's just the way things are organized).The only exceptions I can find in the default user interface are the tracking arrows on the minimap (question marks, etc). Everything else disappears when I
UIParent:SetAlpha(0)
. What are you trying to accomplish with this, perhaps there is a better way? -
Posted by Zax on Fri, 16 Jan 2009 01:48:22
The short answer is alpha is all you can do, but even then all of the interface elements will still be able to interact with the mouse. Every frame displayed should be a child of
UIParent
(otherwise it will have issues with scaling, and that's just the way things are organized).The only exceptions I can find in the default user interface
[HTML tag <script> removed: not allowed]
[HTML tag <script> removed: not allowed]
are the tracking arrows on the minimap (question marks, etc). Everything else disappears when IUIParent:SetAlpha(0)
. What are you trying to accomplish with this, perhaps there is a better way?It's for 2 of my addons: ScreenPlus and CameraPlus. I realised that these addons no longer works in combat since Blizzard introduces secure things.
First, I thought SetAlpha(0) was the solution but I saw party members spots are still visible on the minimap.
-
Posted by jnwhiteh on Fri, 16 Jan 2009 05:56:10
Honestly I can't really think of a way around that when in combat.
-
Posted by Zax on Fri, 16 Jan 2009 08:35:29
Ok, thanks anyway.
I thought there was a way with "hooksecurethings" but I don't understand anything in secure mode :(
-
Posted by jnwhiteh on Fri, 16 Jan 2009 18:47:45
Well, even hooking things there is no way to call UIParent:Hide() while in combat, it's expliclty disallowed and there's really no way around that that I am aware of. Hooking secure functions and scripts don't REPLACE the original behavior, it just simply calls your code after the original code has run.
-
Posted by Zax on Sat, 17 Jan 2009 02:31:22
Ok, I better understand now.