Skip to content

GameViewportClient

Class in Engine · Engine.GameViewportClient · transient, native, config

Object › ScriptViewportClient › GameViewportClient

Within: Engine

Subclasses: H7GameViewportClient

Using it from Lua
h7.find_all("GameViewportClient")            -- live instances
h7.find_class("Engine.GameViewportClient")   -- the class
h7.hook("Engine.GameViewportClient.AddLocalPlayer", fn)

Enums

ESafeZoneType

eSZ_TOP = 0, eSZ_BOTTOM = 1, eSZ_LEFT = 2, eSZ_RIGHT = 3

ESetMode

SetMode_Toggle = 0, SetMode_Enable = 1, SetMode_Disable = 2

ESplitScreenType

eSST_NONE = 0, eSST_2P_HORIZONTAL = 1, eSST_2P_VERTICAL = 2, eSST_3P_FAVOR_TOP = 3, eSST_3P_FAVOR_BOTTOM = 4, eSST_4P = 5

Structs

DebugDisplayProperty

FieldType
ObjObject
PropertyNamename
bSpecialPropertybool

ExportShowFlags_Mirror

PerPlayerSplitscreenData

FieldType
SizeXfloat
SizeYfloat
OriginXfloat
OriginYfloat

ShowFlags_Mirror

FieldType
flags0qword
flags1qword

SplitscreenData

FieldType
PlayerDataarray<PerPlayerSplitscreenData>

TitleSafeZoneArea

FieldType
MaxPercentXfloat
MaxPercentYfloat
RecommendedPercentXfloat
RecommendedPercentYfloat

Properties

NameTypeNotes
ActiveSplitscreenTypeESplitscreenTypeprotected
bCapturedWorldRenderingbool
bDebugNoGFxUIboolconfig
bDisableWorldRenderingbool
bDisplayHardwareMouseCursorbooltransient
bIsPlayInEditorViewportbooltransient
bOverrideDiffuseAndSpecularbooltransient
bShowSystemMouseCursorbooltransient
bShowTitleSafeZonebool
ConnectingMessagestringlocalized
DebugPropertiesarray<DebugDisplayProperty>
Default2PSplitTypeESplitScreenTypeconst
Default3PSplitTypeESplitScreenTypeconst
DesiredSplitscreenTypeESplitScreenTypeprotected
GlobalInteractionsarrayno declaration: type is approximate
LoadingMessagestringlocalized
PausedMessagestringlocalized
PrecachingMessagestringlocalized
ProgressFadeTimefloat
ProgressMessagestring[2]
ProgressTimeOutfloat
SavingMessagestringlocalized
ScaleformInteractionpointerconst, native
ShowFlagsExportShowFlags_Mirrorconst
SplitscreenInfoarray<SplitscreenData>
TitleSafeZoneTitleSafeZoneArea
UIControllerUIInteraction
UIControllerClassclass<UIInteraction>
Viewportpointerconst
ViewportConsoleConsole
ViewportFramepointerconst

Functions

NameDeclaration
AddLocalPlayerprivate final function int AddLocalPlayer(LocalPlayer NewPlayer)
BecomePrimaryPlayerfunction BecomePrimaryPlayer(int PlayerIndex)
CalculateDeadZoneForAllSidesfinal function bool CalculateDeadZoneForAllSides(LocalPlayer LPlayer, Canvas Canvas, out float fTopSafeZone, out float fBottomSafeZone, out float fLeftSafeZone, out float fRightSafeZone, optional bool bUseMaxPercent)
CalculateSafeZoneValuesfinal function CalculateSafeZoneValues(out float out_Horizontal, out float out_Vertical, canvas Canvas, int LocalPlayerIndex, bool bUseMaxPercent)
ClearProgressMessagesexec function ClearProgressMessages()
ConsoleCommandnative function string ConsoleCommand(string Command)
ConvertLocalPlayerToGamePlayerIndexfinal function int ConvertLocalPlayerToGamePlayerIndex(LocalPlayer LPlayer)
CreateInitialPlayerfunction bool CreateInitialPlayer(out string OutError)
CreatePlayerevent LocalPlayer CreatePlayer(int ControllerId, out string OutError, bool bSpawnActor)
DebugSetUISystemEnablednative function DebugSetUISystemEnabled(bool bOldUISystemActive, bool bGFxUISystemActive)
DisableScaleformfinal native function DisableScaleform()
DisplayProgressMessagefunction DisplayProgressMessage(Canvas Canvas)
DrawTitleSafeAreafunction DrawTitleSafeArea(canvas Canvas)
DrawTransitionfunction DrawTransition(Canvas Canvas)
DrawTransitionMessagefunction DrawTransitionMessage(Canvas Canvas, string Message)
EnableScaleformfinal native function EnableScaleform()
FindPlayerByControllerIdfinal event LocalPlayer FindPlayerByControllerId(int ControllerId)
FixupOwnerReferencesfinal native function FixupOwnerReferences(array IDMappings)
ForceUpdateMouseCursornative function ForceUpdateMouseCursor(bool bSetCursor)
GameSessionEndedevent GameSessionEnded()
GetCustomInteractionClassnative function class<UIInteraction> GetCustomInteractionClass(int InIndex)
GetMousePositionfinal native function vector2D GetMousePosition()
GetNumCustomInteractionsnative function int GetNumCustomInteractions()
GetPixelSizeOfScreenfinal function GetPixelSizeOfScreen(out float out_Width, out float out_Height, canvas Canvas, int LocalPlayerIndex)
GetPlayerOwnerfinal native function LocalPlayer GetPlayerOwner(int PlayerIndex)
GetSplitscreenConfigurationfunction ESplitScreenType GetSplitscreenConfiguration()
GetSubtitleRegionevent GetSubtitleRegion(out vector2D MinPos, out vector2D MaxPos)
GetViewportSizefinal native function GetViewportSize(out Vector2D out_ViewportSize)
HandleInputAxisdelegate bool HandleInputAxis(int ControllerId, name Key, float Delta, float DeltaTime, bool bGamepad)
HandleInputChardelegate bool HandleInputChar(int ControllerId, string Unicode)
HandleInputKeydelegate bool HandleInputKey(int ControllerId, name Key, EInputEvent EventType, float AmountDepressed, optional bool bGamepad)
HasBottomSafeZonefinal function bool HasBottomSafeZone(int LocalPlayerIndex)
HasLeftSafeZonefinal function bool HasLeftSafeZone(int LocalPlayerIndex)
HasRightSafeZonefinal function bool HasRightSafeZone(int LocalPlayerIndex)
HasTopSafeZonefinal function bool HasTopSafeZone(int LocalPlayerIndex)
Initevent bool Init(out string OutError)
InsertInteractionevent int InsertInteraction(Interaction NewInteraction, optional int InIndex = -1)
IsBorderlessViewportfunction bool IsBorderlessViewport() (no declaration: types are approximate)
IsClientMouseLockedToWindowfunction bool IsClientMouseLockedToWindow() (no declaration: types are approximate)
IsFullScreenViewportfinal native function bool IsFullScreenViewport()
IsScaleformEnabledfinal native function bool IsScaleformEnabled()
LayoutPlayersevent LayoutPlayers()
NotifyConnectionErrorfunction NotifyConnectionError(EProgressMessageType MessageType, optional string Message = Localize("Errors", "ConnectionFailed", "Engine"), optional string Title = Localize("Errors", "ConnectionFailed_Title", "Engine"))
NotifyPlayerAddedfinal function NotifyPlayerAdded(int PlayerIndex, LocalPlayer AddedPlayer)
NotifyPlayerRemovedfinal function NotifyPlayerRemoved(int PlayerIndex, LocalPlayer RemovedPlayer)
NotifySplitscreenLayoutChangednative function NotifySplitscreenLayoutChanged()
OnPrimaryPlayerSwitchfunction OnPrimaryPlayerSwitch(LocalPlayer OldPrimaryPlayer, LocalPlayer NewPrimaryPlayer)
PostRenderevent PostRender(Canvas Canvas)
RemoveLocalPlayerprivate final function int RemoveLocalPlayer(LocalPlayer ExistingPlayer)
RemovePlayerevent bool RemovePlayer(LocalPlayer ExPlayer)
SetClientMouseLockedToWindowfunction SetClientMouseLockedToWindow(bool IsLocked) (no declaration: types are approximate)
SetCustomInteractionObjectnative function SetCustomInteractionObject(Interaction InInteraction)
SetHardwareMouseCursorVisibilitysimulated event SetHardwareMouseCursorVisibility(bool bIsVisible)
SetMousenative function SetMouse(int X, int Y)
SetProgressMessageevent SetProgressMessage(EProgressMessageType MessageType, string Message, optional string Title, optional bool bIgnoreFutureNetworkMessages)
SetProgressTimeexec event SetProgressTime(float T)
SetSplitscreenConfigurationfunction SetSplitscreenConfiguration(ESplitScreenType SplitType)
ShouldForceFullscreenViewportfinal native function bool ShouldForceFullscreenViewport()
Tickevent Tick(float DeltaTime)
UpdateActiveSplitscreenTypefunction UpdateActiveSplitscreenType()

Default values

UIControllerClass=class'Engine.UIInteraction'
TitleSafeZone=(MaxPercentX=0.9,MaxPercentY=0.9,RecommendedPercentX=0.8,RecommendedPercentY=0.8)
Default2PSplitType=eSST_2P_HORIZONTAL
Default3PSplitType=eSST_3P_FAVOR_TOP
DesiredSplitscreenType=eSST_NONE
bIsPlayInEditorViewport=False
bShowSystemMouseCursor=False
ProgressFadeTime=1.0
ProgressTimeOut=8.0
SplitscreenInfo(eSST_None)=         (PlayerData=((SizeX=1.0f,SizeY=1.0f,OriginX=0.0f,OriginY=0.0f)))
SplitscreenInfo(eSST_2P_HORIZONTAL)={(PlayerData=(
(SizeX=1.0f,SizeY=0.5f,OriginX=0.0f,OriginY=0.0f),
(SizeX=1.0f,SizeY=0.5f,OriginX=0.0f,OriginY=0.5f))
SplitscreenInfo(eSST_2P_VERTICAL)={(PlayerData=(
(SizeX=0.5f,SizeY=1.0f,OriginX=0.0f,OriginY=0.0f),
(SizeX=0.5f,SizeY=1.0f,OriginX=0.5f,OriginY=0.0))
SplitscreenInfo(eSST_3P_FAVOR_TOP)={(PlayerData=(
(SizeX=1.0f,SizeY=0.5f,OriginX=0.0f,OriginY=0.0f),
(SizeX=0.5f,SizeY=0.5f,OriginX=0.0f,OriginY=0.5f),
(SizeX=0.5f,SizeY=0.5f,OriginX=0.5f,OriginY=0.5f))
SplitscreenInfo(eSST_3P_FAVOR_BOTTOM)={(PlayerData=(
(SizeX=0.5f,SizeY=0.5f,OriginX=0.0f,OriginY=0.0f),
(SizeX=0.5f,SizeY=0.5f,OriginX=0.5f,OriginY=0.0f),
(SizeX=1.0f,SizeY=0.5f,OriginX=0.0f,OriginY=0.5f))
SplitscreenInfo(eSST_4P)={(PlayerData=(
(SizeX=0.5f,SizeY=0.5f,OriginX=0.0f,OriginY=0.0f),
(SizeX=0.5f,SizeY=0.5f,OriginX=0.5f,OriginY=0.0f),
(SizeX=0.5f,SizeY=0.5f,OriginX=0.0f,OriginY=0.5f),
(SizeX=0.5f,SizeY=0.5f,OriginX=0.5f,OriginY=0.5f))

Inherited

FromMembers
ScriptViewportClient0 properties, 0 functions
Object13 properties, 308 functions