режим предателя + 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
+32
View File
@@ -0,0 +1,32 @@
function CinematicFrame_OnLoad(self)
self:RegisterEvent("CINEMATIC_START");
self:RegisterEvent("CINEMATIC_STOP");
local width = GetScreenWidth();
local height = GetScreenHeight();
if ( width / height > 4 / 3) then
local desiredHeight = width / 2;
if ( desiredHeight > height ) then
desiredHeight = height;
end
local blackBarHeight = ( height - desiredHeight ) / 2;
UpperBlackBar:SetHeight( blackBarHeight );
UpperBlackBar:SetWidth( width );
LowerBlackBar:SetHeight( blackBarHeight );
LowerBlackBar:SetWidth( width );
end
end
function CinematicFrame_OnEvent(self, event, ...)
if ( event == "CINEMATIC_START" ) then
ShowUIPanel(self, 1);
elseif ( event == "CINEMATIC_STOP" ) then
HideUIPanel(self);
end
end