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