режим предателя + UI референсы и DragonUI
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
|
||||
local DressUpItemLink_orig = DressUpItemLink;
|
||||
|
||||
function DressUpItemLink(link)
|
||||
if ( not link ) then
|
||||
return;
|
||||
end
|
||||
if ( AuctionFrame:IsShown() ) then
|
||||
if ( not AuctionDressUpFrame:IsShown() ) then
|
||||
ShowUIPanel(AuctionDressUpFrame);
|
||||
AuctionDressUpModel:SetUnit("player");
|
||||
end
|
||||
AuctionDressUpModel:TryOn(link);
|
||||
else
|
||||
DressUpItemLink_orig(link);
|
||||
end
|
||||
end
|
||||
|
||||
function SetAuctionDressUpBackground()
|
||||
local texture = DressUpTexturePath();
|
||||
AuctionDressUpBackgroundTop:SetTexture(texture..1);
|
||||
AuctionDressUpBackgroundBot:SetTexture(texture..3);
|
||||
end
|
||||
|
||||
function AuctionDressUpFrame_OnShow()
|
||||
UIPanelWindows["AuctionFrame"].width = 1020;
|
||||
UpdateUIPanelPositions(AuctionFrame);
|
||||
PlaySound("igCharacterInfoOpen");
|
||||
end
|
||||
|
||||
function AuctionDressUpFrame_OnHide()
|
||||
UIPanelWindows["AuctionFrame"].width = 840;
|
||||
UpdateUIPanelPositions();
|
||||
PlaySound("igCharacterInfoClose");
|
||||
end
|
||||
Reference in New Issue
Block a user