Help with loot frames
1 Attachment(s)
So I'm modifying Game92's loot frames to be standalone for UI/fan update stuffs and gotten the errors worked out (seems mostly cosmetic so I haven't done much at all with the source code) but now I'm stuck at this point where the blizzard frames aren't hiding properly....
my code image of issue |
That's because the code to hide it isn't there. It's probably outdated, the loot frame changed at some point.
Check here: https://github.com/Ketho/wow-ui-sour.../LootFrame.xml You can see that it inherits from ButtonFrameTemplate: https://github.com/Ketho/wow-ui-sour...lTemplates.xml (look for ButtonFrameTemplate) Most of the code in there is pretty outdated anyway, like the part that works around the taint. And I've no idea what this is supposed to be: Code:
local i, t = 1, "Interface\\LootFrame\\UI-LootPanel" Code:
local text = select(19, LootFrame:GetRegions()) |
You know what, that could explain why I wasn't finding it... Now just to figure out how to go about hiding it...
|
Haste's loot addon Butsu has no issues hiding the Blizzard loot frame, if you want a working example to look at.
|
A working example is always better than nothing :)
of course looks like haste actually makes his own frame as he kills the default frame with a simple Code:
-- Kill the default loot frame. So I might resign myself to making my own frame for it and killing off the default frame like haste did. Of which would mean I probably should scrap !BeautyLoot entirely is I do that. |
It only uses AceConfig.
|
Quote:
|
Even if it used the whole Ace suite, that still wouldn't change what the frames are called and how you hide them. :p
|
It's very simply to find out which textures to hide. Just look for the frame in the Blizzard FrameXML (like I linked before), find which frames it inherits from (if any) and just look at every Texture element. If the texture has a parentKey attribute then you can refer to it using frame.parentKey. If it has a name, you can use that, else you'll have to count which texture it is so you can hide it using select(i, GetRegions()):Hide().
|
All times are GMT -6. The time now is 07:39 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI