Thread Tools Display Modes
04-26-13, 01:09 AM   #1
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
Help with loot frames

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
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	294
Size:	88.3 KB
ID:	7690  
__________________
Tweets YouTube Website

Last edited by 10leej : 04-26-13 at 01:12 AM.
  Reply With Quote
04-26-13, 04:14 AM   #2
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
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"
while true do
  local r = select(i, _G["LootFrame"]:GetRegions())
  if not r then break end
  if r.GetText and r:GetText() == ITEMS then
    r:ClearAllPoints()
    r:SetPoint("TOP", -12, -19.5)
  elseif r.GetTexture and r:GetTexture() == t then
    r:Hide()
  end
  i = i + 1
end
As opposed to:

Code:
local text = select(19, LootFrame:GetRegions())
text:ClearAllPoints()
text:SetPoint("TOP", -12, -19.5)
Along with finding out which region the texture is.

Last edited by Haleth : 04-26-13 at 04:18 AM.
  Reply With Quote
04-26-13, 03:04 PM   #3
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
You know what, that could explain why I wasn't finding it... Now just to figure out how to go about hiding it...
__________________
Tweets YouTube Website

Last edited by 10leej : 04-26-13 at 04:01 PM.
  Reply With Quote
04-26-13, 06:43 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Haste's loot addon Butsu has no issues hiding the Blizzard loot frame, if you want a working example to look at.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
04-26-13, 07:29 PM   #5
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
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.
LootFrame:UnregisterAllEvents()
So that leaves me with the only other loot frame addo I can think of being LovelyLoot, but that uses Ace libraries (which I've honestly avoided) so not sure how Seerah even goes about hiding the default frame art there.
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.
__________________
Tweets YouTube Website

Last edited by 10leej : 04-26-13 at 08:03 PM.
  Reply With Quote
04-26-13, 07:58 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
It only uses AceConfig.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
04-26-13, 08:30 PM   #7
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
Originally Posted by Seerah View Post
It only uses AceConfig.
Ah didn't realize that. (honestly never looked at an ace library before)
__________________
Tweets YouTube Website
  Reply With Quote
04-26-13, 10:05 PM   #8
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Even if it used the whole Ace suite, that still wouldn't change what the frames are called and how you hide them.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
04-27-13, 03:25 AM   #9
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
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().
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Help with loot frames


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off