KF2-Server-Extension/ServerExt/Classes/ExtGUI_PerkSelectionPage.uc

58 lines
1.1 KiB
Ucode
Raw Normal View History

Class ExtGUI_PerkSelectionPage extends UI_MidGameMenu;
function InitMenu()
{
local byte i;
local KFGUI_Button B;
2023-05-14 02:49:12 +00:00
PageSwitcher = KFGUI_SwitchMenuBar(FindComponentID('Pager'));
Super(KFGUI_Page).InitMenu();
2023-05-14 02:49:12 +00:00
2020-11-28 20:12:58 +00:00
for (i=0; i<Pages.Length; ++i)
{
2020-06-26 04:17:32 +00:00
PageSwitcher.AddPage(Pages[i],B).InitMenu();
}
}
function ShowMenu()
{
Super(KFGUI_FloatingWindow).ShowMenu();
}
function PreDraw()
{
local GameViewportClient Viewport;
local ExtMoviePlayer_Manager MovieManager;
2023-05-14 02:49:12 +00:00
Super.PreDraw();
2023-05-14 02:49:12 +00:00
Viewport = LocalPlayer(GetPlayer().Player).ViewportClient;
MovieManager = ExtMoviePlayer_Manager(KFPlayerController(GetPlayer()).MyGFxManager);
2020-11-28 20:12:58 +00:00
if (CaptureMouse())
{
Viewport.bDisplayHardwareMouseCursor = true;
Viewport.ForceUpdateMouseCursor(true);
MovieManager.SetMovieCanReceiveInput(false);
}
2020-11-28 20:12:58 +00:00
else if (Viewport.bDisplayHardwareMouseCursor)
{
Viewport.bDisplayHardwareMouseCursor = false;
Viewport.ForceUpdateMouseCursor(true);
2023-05-14 02:49:12 +00:00
MovieManager.SetMovieCanReceiveInput(true);
}
}
function UserPressedEsc();
defaultproperties
{
2020-08-12 12:02:03 +00:00
WindowTitle=""
XPosition=0.01
XSize=0.73
YSize=0.73
2023-05-14 02:49:12 +00:00
Pages.Empty
2020-06-26 04:17:32 +00:00
Pages.Add(Class'UIP_PerkSelectionLobby')
}