manage default Blizzard UI
Hi all,
a friend of mine which plays with plain Blizzard UI have asked me if I can arrange it better without too many addons. So I started working on it mainly removing elements and using some custom textures. Everyting is almost done but I have some iussue I am not able to solve. I starting creating a frame: Lua Code:
1) I am trying to remove the PVPIcon from the Player, Target (and optionally party) but it seems to me that this icon as an "immutable" flag and don't want to disappears :) I have used: Lua Code:
Also used from the chat with something like: /run PlayerPVPIcon:SetAlpha(0) Seems to not work. (I have tried also with :Hide() ) The icon remain there :( The frame name is right (I got it with /fstack). (only the PlayerPVPTimerText:SetAlpha(0) seems to work) 2) Second iussue is: I am not able to: Lua Code:
... even if this works nicely from console: /run MultiBarLeft:SetScale(0.7) But this works ONLY IF the bar is visible and enable / disable it from ESC --> Interface --> ActionBars make the scale back to default of 1. If I use something found on this forum: https://www.wowinterface.com/forums/...ad.php?t=56469 Lua Code:
The bars are properly scaled but they produce errors in doing this: Lua Code:
In the forum thread Seerah pointed out the problem could be better analyzed here: https://www.wowinterface.com/forums/...ad.php?t=56445 But unfortunately I was unable to understand the solution :( Can someone please explain it simpler :) Thanks all. |
You shouldn't need to create a frame and wait for an event as these frames are created/placed before addons are loaded.
Something like: Lua Code:
|
Hi Fizzlemizz,
thanks so much for your reply. The problem 2) was solved using your code. The MultiBarRight and MultiBarLeft are now ok :) But the damn icon of the problem 1) don't want to go away :) Also by console it doesn't work. Any ideas ? Thanks so much. |
Code:
PlayerPrestigePortrait:SetAlpha(0) I'm not sure which party frame icon(s) you mean. |
Hi Fizzlemizz,
At the end the problem was easier than I thought and thanks to your input I succeded in remove the very ugly PVP Icons and others goodies :) Probably when I used /fstack I missed some frames, because now a "simple": Lua Code:
Seems to work :) P.s. But it is better for this kind of skinning use Hide() or SetAlpha(0) ? Thanks again for the help. It is much appreciated. |
The game tends to show/hide these elements as required so using SetAlpha means you don't have to worry about doing anything when this happens. That and they aren't clickable frames. If the game resets their alpha at any stage, then you might have to re-think the approach.
|
Hi again,
I need help again trying to understand an error that I got because I am unable to find why it happens. I got this when I am in combat and something changes in the ObjectiveTracker: Lua Code:
But I don't use: VerticalMultiBarsContainer:SetSize() in any place. I use only: Lua Code:
as Fizzlemizz suggests and it works great. I think the error is related to the anchor and combat ... but I was unable to fix it. Any Help ? Thanks |
It's not that you're tainting the :SetSize, it's that you're tainting SetScale()
The following code is found within MultiActionBar_Update() Lua Code:
The game tries to MultiBarRight:SetScale(), but you've set it to nil. So the game knows something is tainted. The very next function it calls is VerticalMultiBarsContainer:SetSize() which throws the taint error. Try Lua Code:
You might want to try and print debug that hookscript, GetScale may not return exactly 0.8, it may return like 0.799999999999 or something stupid. You might want to do if MultiBarRight:GetScale() > 0.81 then MultiBarRight:SetScale(0.8) end |
Hi,
Thanks very much for your answer ... I have used : Lua Code:
but unfortunately I got: Lua Code:
I miss something ? Thanks :) |
try:
Lua Code:
|
All times are GMT -6. The time now is 05:36 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI