режим предателя + UI референсы и DragonUI

This commit is contained in:
2026-04-09 02:05:29 +04:00
parent 1109d19bb5
commit e8f1ae4ab9
397 changed files with 202750 additions and 37 deletions
+35
View File
@@ -0,0 +1,35 @@
function DressUpItemLink(link)
if ( not link or not IsDressableItem(link) ) then
return;
end
if ( not DressUpFrame:IsShown() ) then
ShowUIPanel(DressUpFrame);
DressUpModel:SetUnit("player");
end
DressUpModel:TryOn(link);
end
function DressUpTexturePath()
-- HACK
local race, fileName = UnitRace("player");
if ( strupper(fileName) == "GNOME" ) then
fileName = "Dwarf";
elseif ( strupper(fileName) == "TROLL" ) then
fileName = "Orc";
end
if ( not fileName ) then
fileName = "Orc";
end
-- END HACK
return "Interface\\DressUpFrame\\DressUpBackground-"..fileName;
end
function SetDressUpBackground()
local texture = DressUpTexturePath();
DressUpBackgroundTopLeft:SetTexture(texture..1);
DressUpBackgroundTopRight:SetTexture(texture..2);
DressUpBackgroundBotLeft:SetTexture(texture..3);
DressUpBackgroundBotRight:SetTexture(texture..4);
end