From 76d36a6c7aeae7c17d54c89b7520b1790e84aa11 Mon Sep 17 00:00:00 2001 From: Darth Predator Date: Wed, 7 Dec 2016 20:06:04 +0300 Subject: [PATCH] Now Armory inspect has "Try this transmog" button from blizz ui --- .../modules/Armory/InspectArmory/InspectArmory.lua | 26 +++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua index fe1cb52..57c1bcc 100644 --- a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua +++ b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua @@ -558,7 +558,31 @@ function IA:CreateInspectFrame() self.ClassIconSlot:Point('RIGHT', self.Tab, 'BOTTOMRIGHT', -44, -35) self.SpecIconSlot:Point('RIGHT', self.ClassIconSlot, 'LEFT', -SPACING, 0) end - + + do --<>-- + self.TransmogViewButton = CreateFrame("Button", nil, self) + self.TransmogViewButton:Size(26) + self.TransmogViewButton:Point('LEFT', self.ClassIconSlot, 'RIGHT', SPACING, 0) + self.TransmogViewButton.texture = self.TransmogViewButton:CreateTexture(nil, 'OVERLAY') + self.TransmogViewButton.texture:SetInside() + self.TransmogViewButton.texture:SetTexture([[Interface\ICONS\INV_Misc_Desecrated_PlateChest]]) + + self.TransmogViewButton:SetScript("OnEnter", function(self) + GameTooltip:SetOwner(self, "ANCHOR_BOTTOM") + GameTooltip:SetText(VIEW_IN_DRESSUP_FRAME) + GameTooltip:Show() + end) + self.TransmogViewButton:SetScript("OnLeave", function(self) + _G["GameTooltip"]:Hide() + end) + self.TransmogViewButton:SetScript("OnClick", function(self) + PlaySound("igMainMenuOptionCheckBoxOn"); + DressUpSources(C_TransmogCollection.GetInspectSources()); + end) + + E:GetModule("Skins"):HandleButton(self.TransmogViewButton) + end + do --<< Player Model >>-- self.Model = CreateFrame('DressUpModel', nil, self) self.Model:SetFrameStrata('DIALOG') -- 1.7.9.5