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

61 lines
1.2 KiB
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
// Input while in a menu.
class KF2GUIInput extends KFPlayerInput;
var KF2GUIController ControllerOwner;
var PlayerInput BaseInput;
2020-11-28 20:04:55 +00:00
function DrawHUD(HUD H)
2017-10-20 02:00:49 +00:00
{
//ControllerOwner.RenderMenu(H.Canvas);
}
2020-11-28 20:04:55 +00:00
function PostRender(Canvas Canvas)
2017-10-20 02:00:49 +00:00
{
2020-11-28 20:12:58 +00:00
if (ControllerOwner.bIsInMenuState)
2017-10-20 02:00:49 +00:00
ControllerOwner.HandleDrawMenu();
//ControllerOwner.RenderMenu(Canvas);
}
// Postprocess the player's input.
2020-11-28 20:04:55 +00:00
function PlayerInput(float DeltaTime)
2017-10-20 02:00:49 +00:00
{
// Do not move.
ControllerOwner.MenuInput(DeltaTime);
2020-11-28 20:12:58 +00:00
if (!ControllerOwner.bAbsorbInput)
2017-10-20 02:00:49 +00:00
{
aMouseX = 0;
aMouseY = 0;
aBaseX = BaseInput.aBaseX;
aBaseY = BaseInput.aBaseY;
aBaseZ = BaseInput.aBaseZ;
aForward = BaseInput.aForward;
aTurn = BaseInput.aTurn;
aStrafe = BaseInput.aStrafe;
aUp = BaseInput.aUp;
aLookUp = BaseInput.aLookUp;
Super.PlayerInput(DeltaTime);
}
else
{
aMouseX = 0;
aMouseY = 0;
aBaseX = 0;
aBaseY = 0;
aBaseZ = 0;
aForward = 0;
aTurn = 0;
aStrafe = 0;
aUp = 0;
aLookUp = 0;
}
}
2020-11-28 20:04:55 +00:00
function PreClientTravel(string PendingURL, ETravelType TravelType, bool bIsSeamlessTravel)
2017-10-20 02:00:49 +00:00
{
ControllerOwner.BackupInput.PreClientTravel(PendingURL,TravelType,bIsSeamlessTravel); // Let original mod do stuff too!
ControllerOwner.NotifyLevelChange(); // Close menu NOW!
}
defaultproperties
{
}