Skip to content

Commit

Permalink
Better skin for MapQuestInfoRewardsFrame.RewardButtons.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Jan 31, 2016
1 parent c0a064d commit f6129f3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions ShestakUI/Modules/Skins/Blizzard/WorldMap.lua
Expand Up @@ -147,14 +147,16 @@ local function LoadSkin()
local button = frame.RewardButtons[index]
if not button.restyled then
SkinReward(button)
if button == frame.RewardButtons[3] and GetNumQuestLogChoices() > 2 then
button:ClearAllPoints()
button:SetPoint("TOPLEFT", frame.RewardButtons[1], "BOTTOMLEFT", 0, -5)
button.SetPoint = T.dummy
button:Hide()
end
button.restyled = true
end

local mapReward = MapQuestInfoRewardsFrame.RewardButtons[index]
if mapReward then
mapReward.Icon:SetSize(30, 30)
if GetNumQuestLogChoices() > 2 then
mapReward.Icon:SetSize(26, 26)
end
end
end)

local function SkinRewardSpell(button)
Expand All @@ -173,7 +175,6 @@ local function LoadSkin()
end

SkinReward(QuestInfoSkillPointFrame)
SkinReward(QuestInfoSpellObjectiveFrame)
SkinReward(MapQuestInfoRewardsFrame.SpellFrame)
SkinReward(MapQuestInfoRewardsFrame.XPFrame)
SkinReward(MapQuestInfoRewardsFrame.MoneyFrame)
Expand Down

0 comments on commit f6129f3

Please sign in to comment.