Commit f80b14da authored by Azilroka's avatar Azilroka

Talents

parent 877e1bc1
......@@ -130,6 +130,8 @@ function AS:Blizzard_Talent(event, addon)
AS:SkinTexture(frame.icon)
frame.icon:SetSize(40, 40)
end
frame.subText:SetTextColor(1, 1, 0)
end
index = index + 1
......
......@@ -28,38 +28,25 @@ function AS:Blizzard_WorldMap()
AS:SkinFrame(QuestMapFrame.QuestsFrame.StoryTooltip)
AS:StripTextures(QuestMapFrame.DetailsFrame.CompleteQuestFrame)
for _, Button in pairs({ WorldMapFrameSizeDownButton, WorldMapFrameSizeUpButton }) do
AS:SkinButton(Button, true)
Button:SetSize(16, 16)
Button.Text = Button:CreateFontString(nil, 'OVERLAY')
Button.Text:SetFont('Interface\\AddOns\\AddOnSkins\\Media\\Fonts\\Arial.ttf', 12)
Button.Text:SetPoint('CENTER', Button)
end
local rewardFrames = {
['MoneyFrame'] = true,
['HonorFrame'] = true,
['XPFrame'] = true,
['SpellFrame'] = true,
['SkillPointFrame'] = true,
}
local function HandleReward(frame)
if (not frame or frame.isSkinned) then return end
frame.NameFrame:SetAlpha(0)
AS:SkinTexture(frame.Icon)
if (not frame or frame.Backdrop) then return end
AS:CreateBackdrop(frame)
frame.Backdrop:SetOutside(frame.Icon)
AS:SkinTexture(frame.Icon)
frame.Count:ClearAllPoints()
frame.Count:SetPoint("BOTTOMRIGHT", frame.Icon, "BOTTOMRIGHT", 2, 0)
frame.NameFrame:SetAlpha(0)
if (frame.CircleBackground) then
frame.CircleBackground:SetAlpha(0)
frame.CircleBackgroundGlow:SetAlpha(0)
end
frame.isSkinned = true
end
for frame, _ in pairs(rewardFrames) do
for frame, _ in pairs({ 'MoneyFrame', 'HonorFrame', 'XPFrame', 'SpellFrame', 'SkillPointFrame' }) do
HandleReward(MapQuestInfoRewardsFrame[frame])
end
......@@ -79,4 +66,4 @@ function AS:Blizzard_WorldMap()
end
end
AS:RegisterSkin('Blizzard_WorldMap', AS.Blizzard_WorldMap)
\ No newline at end of file
AS:RegisterSkin('Blizzard_WorldMap', AS.Blizzard_WorldMap)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment