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:
local frame = CreateFrame("Frame")
frame:RegisterEvent("ADDON_LOADED")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:SetScript("OnEvent", function(self, event, arg1)
-- [...]
if event == "PLAYER_ENTERING_WORLD" then
-- here I begin to remove / hide or setalpha(0) various part of UI ...
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:
PartyMemberFrame1PVPIcon:SetAlpha(0)
PartyMemberFrame2PVPIcon:SetAlpha(0)
PartyMemberFrame3PVPIcon:SetAlpha(0)
PartyMemberFrame4PVPIcon:SetAlpha(0)
FocusFrameTextureFramePVPIcon:SetAlpha(0)
TargetFrameTextureFramePVPIcon:SetAlpha(0)
PlayerPVPIcon:SetAlpha(0)
PlayerPVPTimerText:SetAlpha(0)
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:
MultiBarRight:SetScale(0.7)
MultiBarLeft:SetScale(0.7)
... 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:
hooksecurefunc(MultiBarRight, "SetScale", function(self, scale)
self:SetScale(0.7)
end)
hooksecurefunc(MultiBarLeft, "SetScale", function(self, scale)
self:SetScale(0.7)
end)
The bars are properly scaled but they produce errors in doing this:
Lua Code:
5x C stack overflow
[C]: in function `SetScale'
gmTweaks\core.lua:499: in function <gmTweaks\core.lua:498>
[C]: in function `SetScale'
gmTweaks\core.lua:499: in function <gmTweaks\core.lua:498>
[C]: in function `SetScale'
gmTweaks\core.lua:499: in function <gmTweaks\core.lua:498>
[C]: in function `SetScale'
gmTweaks\core.lua:499: in function <gmTweaks\core.lua:498>
[C]: in function `SetScale'
gmTweaks\core.lua:499: in function <gmTweaks\core.lua:498>
[C]: in function `SetScale'
gmTweaks\core.lua:499: in function <gmTweaks\core.lua:498>
...
gmTweaks\core.lua:499: in function <gmTweaks\core.lua:498>
[C]: in function `SetScale'
gmTweaks\core.lua:499: in function <gmTweaks\core.lua:498>
[C]: in function `SetScale'
gmTweaks\core.lua:499: in function <gmTweaks\core.lua:498>
[C]: in function `SetScale'
FrameXML\MultiActionBars.lua:85: in function `MultiActionBar_Update'
FrameXML\InterfaceOptionsPanels.lua:1184: in function `InterfaceOptions_UpdateMultiActionBars'
[string "*:OnLoad"]:4: in function `setFunc'
FrameXML\InterfaceOptionsPanels.lua:1154: in function <FrameXML\InterfaceOptionsPanels.lua:1147>
Locals:
(*temporary) = MultiBarRight {
0 = <userdata>
SetScale = <function> defined =[C]:-1
slideOut = <unnamed> {
}
}
(*temporary) = 0.700000
(*temporary) = <function> defined =[C]:-1
(*temporary) = MultiBarRight {
0 = <userdata>
SetScale = <function> defined =[C]:-1
slideOut = <unnamed> {
}
}
(*temporary) = 0.700000
= <function> defined =[C]:-1
= <function> defined @gmTweaks\core.lua:498
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.