Originally Posted by Ravenevar
However, I noticed that when two of the "trans" backdrops overlap, the alpha doubles and becomes darker. Is there anyway to avoid this? Let them blend smoothly?
|
I don't want to say it's impossible, but I haven't seen any of my addons do something like this either.
Originally Posted by Ravenevar
Lastly, a side question, is there an easy way to show frames that are normally not shown, say if I wanted to put the same background on my party frames and wanted to see what it looks like? I'm no longer at my computer atm, but would it just be a case of PartyFrame1:Show() kind of deal?
|
Yes. I recommend taking a look at:
http://wowprogramming.com/docs
http://wowprogramming.com/docs/widgets/VisibleRegion
Widgets are basically special tables Blizzard created with their own metatables, often inheriting methods from parent widgets, there is a graph on the site above to illustrate the relations. Note that stuff like "PlayerFrame" are defined in the FrameXML of the game, you can find the sources online here:
https://www.townlong-yak.com/framexml/beta
https://www.townlong-yak.com/framexm...yerFrame.xml#7
You either have the widgets defined/created in the XML files, or you can find lua calling CreateFrame and specifying a widget type to create.
http://wow.gamepedia.com/API_CreateFrame
When modifying the default interface, I recommend first looking the code up and see how it works, usually you want to modify it at certain times, like events or specific function calls, and you can hooksecurefunc/HookScript accordingly and do your own stuff right after Blizzards code does its own thing. It can get a bit tricky with secure frames, if you manage to taint it, secure functions will stop working, like targeting when it comes to unit frames.
Anyway that went far out of scope of the questions you asked. Sorry.