Skip to content

Commit

Permalink
Added quality color for quest items. Some adjustments for skins.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Oct 11, 2019
1 parent 85c9df2 commit 0ae895f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
1 change: 1 addition & 0 deletions ShestakUI/Modules/Skins/Blizzard/AlertFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ local function LoadSkin()
level:ClearAllPoints()
level:SetPoint("BOTTOM", frame.PortraitFrame, 0, 11)
level:SetFontObject("SystemFont_Outline_Small")
level:SetShadowOffset(0, 0)

local squareBG = CreateFrame("Frame", nil, frame.PortraitFrame)
squareBG:SetFrameLevel(frame.PortraitFrame:GetFrameLevel()-1)
Expand Down
27 changes: 24 additions & 3 deletions ShestakUI/Modules/Skins/Blizzard/QuestLog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ local function LoadSkin()
T.SkinCloseButton(QuestLogPopupDetailFrameCloseButton, QuestLogPopupDetailFrame.backdrop)

QuestLogPopupDetailFrameScrollFrame:StripTextures()
QuestLogPopupDetailFrameScrollFrame:SetPoint("TOPLEFT", 13, -65)
T.SkinScrollBar(QuestLogPopupDetailFrameScrollFrameScrollBar)

QuestLogPopupDetailFrame.ShowMapButton:SkinButton(true)
Expand All @@ -27,6 +28,8 @@ local function LoadSkin()
QuestLogPopupDetailFrame.ShareButton:ClearAllPoints()
QuestLogPopupDetailFrame.ShareButton:SetPoint("LEFT", QuestLogPopupDetailFrame.AbandonButton, "RIGHT", 3, 0)
QuestLogPopupDetailFrame.ShareButton:SetPoint("RIGHT", QuestLogPopupDetailFrame.TrackButton, "LEFT", -3, 0)
QuestLogPopupDetailFrame.TrackButton:SetWidth(110)
QuestLogPopupDetailFrame.TrackButton:SetPoint("BOTTOMRIGHT", -4, 5)

local function QuestObjectiveText()
if not QuestInfoFrame.questLog then return end
Expand Down Expand Up @@ -100,9 +103,18 @@ local function LoadSkin()

hooksecurefunc("QuestInfo_GetRewardButton", function(rewardsFrame, index)
local button = rewardsFrame.RewardButtons[index]
if not button.restyled then
if not button.backdrop then
SkinReward(button, rewardsFrame == MapQuestInfoRewardsFrame)
button.restyled = true
hooksecurefunc("SetItemButtonQuality", function(self, quality)
if self == button then
if not button.backdrop then return end
if quality and quality > LE_ITEM_QUALITY_COMMON and BAG_ITEM_QUALITY_COLORS[quality] then
button.backdrop:SetBackdropBorderColor(BAG_ITEM_QUALITY_COLORS[quality].r, BAG_ITEM_QUALITY_COLORS[quality].g, BAG_ITEM_QUALITY_COLORS[quality].b)
else
button.backdrop:SetBackdropBorderColor(unpack(C.media.border_color))
end
end
end)
end
end)

Expand Down Expand Up @@ -168,6 +180,7 @@ local function LoadSkin()
followerReward.BG:Hide()
followerReward.isSkinned = true

followerReward.PortraitFrame:SetWidth(followerReward.PortraitFrame:GetHeight())
followerReward.PortraitFrame:ClearAllPoints()
followerReward.PortraitFrame:SetPoint("RIGHT", followerReward.backdrop, "LEFT", -2, 0)

Expand All @@ -178,14 +191,22 @@ local function LoadSkin()

local level = followerReward.PortraitFrame.Level
level:ClearAllPoints()
level:SetPoint("BOTTOM", followerReward.PortraitFrame, 0, 3)
level:SetPoint("BOTTOM", followerReward.PortraitFrame, 0, 5)
level:SetFontObject("SystemFont_Outline_Small")
level:SetShadowOffset(0, 0)

local squareBG = CreateFrame("Frame", nil, followerReward.PortraitFrame)
squareBG:SetFrameLevel(followerReward.PortraitFrame:GetFrameLevel()-1)
squareBG:SetPoint("TOPLEFT", 2, -2)
squareBG:SetPoint("BOTTOMRIGHT", -2, 2)
squareBG:SetTemplate("Default")
followerReward.PortraitFrame.squareBG = squareBG

followerReward.PortraitFrame.Portrait:SetPoint("TOPLEFT", squareBG, 2, -2)
followerReward.PortraitFrame.Portrait:SetPoint("BOTTOMRIGHT", squareBG, -2, 2)

local point, relativeTo, relativePoint, xOfs, yOfs = followerReward:GetPoint()
followerReward:SetPoint(point, relativeTo, relativePoint, 8, yOfs)
end
local r, g, b = followerReward.PortraitFrame.PortraitRingQuality:GetVertexColor()
if r > 0.99 and r < 1 then
Expand Down
1 change: 1 addition & 0 deletions ShestakUI/Modules/Skins/Blizzard/WorldMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ local function LoadSkin()
QuestScrollFrameTopBorder.backdrop:SetSize(284, 23)
QuestScrollFrameTopBorder.backdrop:SetPoint("LEFT", WorldMapFrame.Header, "RIGHT", 2, 0)

QuestMapDetailsScrollFrame:SetPoint("TOPLEFT", 1, 0)
QuestMapDetailsScrollFrameScrollBar:SetPoint("TOPLEFT", QuestMapDetailsScrollFrame, "TOPRIGHT", 0, -18)
T.SkinScrollBar(QuestMapDetailsScrollFrameScrollBar)

Expand Down

0 comments on commit 0ae895f

Please sign in to comment.