You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.3 KiB
43 lines
1.3 KiB
|
5 years ago
|
local myname, ns = ...
|
||
|
|
|
||
|
|
local core = LibStub("AceAddon-3.0"):GetAddon("SilverDragon")
|
||
|
|
local module = core:GetModule("ClickTarget")
|
||
|
|
local Debug = core.Debug
|
||
|
|
|
||
|
|
function module.Looks:Transmog(popup)
|
||
|
|
popup:SetSize(253, 75)
|
||
|
|
|
||
|
|
popup.background:SetSize(253, 75)
|
||
|
|
popup.background:SetAtlas("transmog-toast-bg", true)
|
||
|
|
popup.background:SetPoint("CENTER")
|
||
|
|
|
||
|
|
popup.close:SetPoint("TOPRIGHT", -12, -12)
|
||
|
|
|
||
|
|
popup.modelbg:SetPoint("LEFT", 10, 0)
|
||
|
|
self:SizeModel(popup, 7)
|
||
|
|
|
||
|
|
popup.source:SetPoint("BOTTOMRIGHT", -18, 18)
|
||
|
|
|
||
|
|
popup.title:SetPoint("TOPLEFT", popup.modelbg, "TOPRIGHT", 4, -10)
|
||
|
|
popup.title:SetPoint("BOTTOM", popup.source, "TOP", 0, 0)
|
||
|
|
popup.title:SetJustifyV("MIDDLE")
|
||
|
|
|
||
|
|
popup.status:SetFontObject("GameFontNormalSmallLeft")
|
||
|
|
popup.status:SetJustifyH("LEFT")
|
||
|
|
popup.status:SetSize(157, 10)
|
||
|
|
popup.status:SetPoint("LEFT", popup.modelbg, "RIGHT", 4, 0)
|
||
|
|
popup.status:SetPoint("BOTTOMRIGHT", popup.source, "BOTTOMLEFT", -4, 0)
|
||
|
|
|
||
|
|
popup.glow:SetSize(253, 75)
|
||
|
|
popup.glow:SetPoint("TOPLEFT", -10)
|
||
|
|
popup.glow:SetPoint("BOTTOMRIGHT", 10)
|
||
|
|
|
||
|
|
popup.shine:SetSize(120, 45)
|
||
|
|
popup.shine:SetPoint("BOTTOMLEFT", -10, 12)
|
||
|
|
|
||
|
|
popup.raidIcon:SetPoint("BOTTOMRIGHT", popup.modelbg, "TOPLEFT", 12, -12)
|
||
|
|
popup.lootIcon:SetSize(24, 24)
|
||
|
|
popup.lootIcon:SetPoint("CENTER", popup.modelbg, "BOTTOMLEFT", 0, 0)
|
||
|
|
popup.dead:SetAllPoints(popup.modelbg)
|
||
|
|
end
|