Originally Posted by glupikreten
1.
Im trying to do some basic modifications to some default blizz frames... and while some of the frames i have no problem with for some others im getting error that frames are not found.
|
Some parts of the UI are contained in Load-on-Demand code. These are loaded like any other addon with their names prefixed with "Blizzard_". You can either force-load these using
LoadAddOn() or listen for
ADDON_LOADED to fire with their name.
For example:
Code:
LoadAddOn("Blizzard_CraftUI");
LoadAddOn("Blizzard_MacroUI");
LoadAddOn("Blizzard_TalentUI");
LoadAddOn("Blizzard_TradeSkillUI");
- or -
Lua Code:
local LoDMap={-- Maps Blizzard addon names to frame list
Blizzard_CraftUI={"CraftFrame"};
Blizzard_MacroUI={"MacroFrame"};
Blizzard_TalentUI={"TalentFrame"};
Blizzard_TradeSkillUI={"TradeSkillFrame"};
};
local EventFrame=CreateFrame("Frame");-- Event Listener Frame
EventFrame:RegisterEvent("ADDON_LOADED");
EventFrame:SetScript("OnEvent",function(self,event,...)-- OnEvent Script
if event=="ADDON_LOADED" then
local framelist=LoDMap[(...)]-- Loads list from map using addon name
if framelist then-- Check if one of the LoD addons in our list
for _,name in ipairs(framelist) do
local frame=_G[name];-- Get our frame from the global table
-- Do stuff
frame:SetScale(1);-- Set scale of the frame
end
end
end
end);
Originally Posted by glupikreten
2.
Is there easy way to remove default border (red, green, blue... ) from targets buffs/debuffs?
|
Probably the easiest way would be to overwrite entries in the
DebuffTypeColor table.
Code:
DebuffTypeColor.Magic=DebuffTypeColor.none;
DebuffTypeColor.Curse=DebuffTypeColor.none;
DebuffTypeColor.Disease=DebuffTypeColor.none;
DebuffTypeColor.Poison=DebuffTypeColor.none;
Originally Posted by glupikreten
3.
Id like to be able to see in my buffs/debuffs the source of that buff... is that possible in classic? i have this script that worked perfectly before... for the love of god i dont remember in what version of wow tho
|
Aura sources weren't available in Vanilla and as such, were removed from Classic.