Skip to content

Commit

Permalink
Added skin for PvP talent inspect.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Dec 8, 2016
1 parent 8792ad7 commit eea0881
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 8 deletions.
1 change: 1 addition & 0 deletions ShestakUI/Modules/Blizzard/Fonts.lua
Expand Up @@ -78,6 +78,7 @@ frame:SetScript("OnEvent", function(self, event, addon)
SetFont(ChatBubbleFont, NORMAL, 14)
SetFont(WhiteNormalNumberFont, NORMAL, 11)
SetFont(NumberFontNormalSmall, NORMAL, 11, "OUTLINE")
SetFont(Game13FontShadow, NORMAL, 14)

-- Derived fonts
SetFont(BossEmoteNormalHuge, NORMAL, 27, "THICKOUTLINE")
Expand Down
51 changes: 43 additions & 8 deletions ShestakUI/Modules/Skins/Blizzard/Inspect.lua
Expand Up @@ -10,6 +10,7 @@ local function LoadSkin()
InspectFrame:CreateBackdrop("Transparent")
InspectFrame.backdrop:SetAllPoints()
T.SkinCloseButton(InspectFrameCloseButton)
InspectPaperDollFrame.ViewButton:SkinButton()

for i = 1, 4 do
T.SkinTab(_G["InspectFrameTab"..i])
Expand All @@ -20,6 +21,12 @@ local function LoadSkin()
InspectModelFrame.backdrop:SetPoint("TOPLEFT", -3, 4)
InspectModelFrame.backdrop:SetPoint("BOTTOMRIGHT", 4, 0)

-- Unit Background Texture
InspectModelFrameBackgroundTopLeft:SetPoint("TOPLEFT", InspectModelFrame.backdrop, "TOPLEFT", 2, -2)
InspectModelFrameBackgroundTopRight:SetPoint("TOPRIGHT", InspectModelFrame.backdrop, "TOPRIGHT", -2, -2)
InspectModelFrameBackgroundBotLeft:SetPoint("BOTTOMLEFT", InspectModelFrame.backdrop, "BOTTOMLEFT", 2, -50)
InspectModelFrameBackgroundBotRight:SetPoint("BOTTOMRIGHT", InspectModelFrame.backdrop, "BOTTOMRIGHT", -2, -50)

local slots = {
"HeadSlot",
"NeckSlot",
Expand Down Expand Up @@ -62,7 +69,41 @@ local function LoadSkin()
end)
end

InspectGuildFrameBG:Kill()
-- Presige texture
local portrait = InspectPVPFrame:CreateTexture(nil, "OVERLAY")
portrait:SetSize(55, 55)
portrait:SetPoint("CENTER", InspectPVPFrame.PortraitBackground, "CENTER", 0, 0)
InspectPVPFrame.PortraitBackground:Kill()
InspectPVPFrame.PortraitBackground:ClearAllPoints()
InspectPVPFrame.PortraitBackground:SetPoint("TOPLEFT", 10, -5)
InspectPVPFrame.SmallWreath:ClearAllPoints()
InspectPVPFrame.SmallWreath:SetPoint("TOPLEFT", 3, -25)
hooksecurefunc("InspectPVPFrame_Update", function()
portrait:SetTexture("")
local level = UnitLevel(INSPECTED_UNIT)
if level and level >= MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_LEVEL_CURRENT] then
local prestigeLevel = UnitPrestige(INSPECTED_UNIT)
if prestigeLevel > 0 then
portrait:SetTexture(GetPrestigeInfo(prestigeLevel))
end
end
end)

for i = 1, 6 do
for j = 1, 3 do
local button = _G["InspectPVPFrameTalentRow"..i.."Talent"..j]
local icon = _G["InspectPVPFrameTalentRow"..i.."Talent"..j.."IconTexture"]

button:StripTextures()
button:CreateBackdrop("Default")
button.backdrop:SetPoint("TOPLEFT", icon, -2, 2)
button.backdrop:SetPoint("BOTTOMRIGHT", icon, 2, -2)

icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
end
end

InspectPVPFrame.BG:Kill()

SpecializationSpecName:SetFont(C.media.normal_font, 20)
InspectTalentFrame:DisableDrawLayer("BACKGROUND")
Expand All @@ -82,13 +123,7 @@ local function LoadSkin()
end
end

InspectPaperDollFrame.ViewButton:SkinButton()

-- Unit Background Texture
InspectModelFrameBackgroundTopLeft:SetPoint("TOPLEFT", InspectModelFrame.backdrop, "TOPLEFT", 2, -2)
InspectModelFrameBackgroundTopRight:SetPoint("TOPRIGHT", InspectModelFrame.backdrop, "TOPRIGHT", -2, -2)
InspectModelFrameBackgroundBotLeft:SetPoint("BOTTOMLEFT", InspectModelFrame.backdrop, "BOTTOMLEFT", 2, -50)
InspectModelFrameBackgroundBotRight:SetPoint("BOTTOMRIGHT", InspectModelFrame.backdrop, "BOTTOMRIGHT", -2, -50)
InspectGuildFrameBG:Kill()
end

T.SkinFuncs["Blizzard_InspectUI"] = LoadSkin

0 comments on commit eea0881

Please sign in to comment.