Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UTGame.GFxUDKFrontEnd

Extends
GFxMoviePlayer
Modifiers
config ( UI )

Filename : GFxUDKFrontEnd.uc Content : GFx-UDK Front End Implementaiton Copyright : (c) 2010 Scaleform Corp. All Rights Reserved. Notes : A manager for the UDK's front end menu. This class loads all of the menu views as MovieClips into itself using attachMovie() and loadMovie(). The data for the views defined in DefaultUI.ini. All loaded views contain a reference to this class for general menu functionality including pushing/popping views, spawning dialogs, setting focus, and setting Escape/Back key press events. There is an ActionScript class associated with this manager: MenuManager.as. That class contains logic for animating views and utilizing necessary GFx AS extensions (eg. Selection["modalClip"]). Associated Flash content: udk_manager.fla Licensees may use this file in accordance with the valid Scaleform Commercial License Agreement provided with the software. This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR ANY PURPOSE.

Core.Object
|   
+-- GFxUI.GFxMoviePlayer
   |   
   +-- UTGame.GFxUDKFrontEnd

Constants Summary
Inherited Contants from Core.Object
AspectRatio16x9, AspectRatio4x3, AspectRatio5x4, DegToRad, DegToUnrRot, INDEX_NONE, InvAspectRatio16x9, InvAspectRatio4x3, InvAspectRatio5x4, MaxInt, Pi, RadToDeg, RadToUnrRot, UnrRotToDeg, UnrRotToRad

Variables Summary
boolbInitialized
GFxUDKFrontEnd_ErrorDialogErrorDialog
GFxUDKFrontEnd_FilterDialogFilterDialog
GFxUDKFrontEnd_GameModeGameModeView
GFxUDKFrontEnd_HostGameHostGameView
GFxUDKFrontEnd_InfoDialogInfoDialog
GFxUDKFrontEnd_InstantActionInstantActionView
GFxUDKFrontEnd_JoinDialogJoinDialog
GFxUDKFrontEnd_JoinGameJoinGameView
array<name>LoadedViews
GFxUDKFrontEnd_MainMenuMainMenuView
GFxObjectManagerMC
GFxUDKFrontEnd_MapSelectMapSelectView
GFxUDKFrontEnd_MultiplayerMultiplayerView
GFxUDKFrontEnd_MutatorsMutatorsView
GFxUDKFrontEnd_PasswordDialogPasswordDialog
GFxObjectRootMC
GFxUDKFrontEnd_ServerSettingsServerSettingsView
GFxUDKFrontEnd_SettingsSettingsView
array<ViewInfo>ViewData
array<GFxUDKFrontEnd_View>ViewStack
Inherited Variables from GFxUI.GFxMoviePlayer
ASUClasses, ASUObjects, bAllowFocus, bAllowInput, bAutoPlay, bBlurLesserMovies, bCaptureInput, bCloseOnLevelChange, bDiscardNonOwnerInput, bDisplayWithHudOff, bEnableGammaCorrection, bHideLesserMovies, bIgnoreBlurEffect, bIgnoreMouseInput, bIgnoreVisibilityEffect, bIsPriorityBlurred, bIsPriorityHidden, bLogUnhandedWidgetInitializations, bMovieIsOpen, bOnlyOwnerFocusable, bPauseGameWhileActive, bWidgetsInitializedThisFrame, CaptureKeys, DataStoreBindings, DataStoreSubscriber, ExternalInterface, ExternalTextures, FocusIgnoreKeys, LocalPlayerOwnerIndex, MovieInfo, NextASUObject, ObjectValues, pCaptureKeys, pFocusIgnoreKeys, pMovie, Priority, RenderTexture, RenderTextureMode, SoundThemes, TimingMode, WidgetBindings, WidgetPathBindings
Inherited Variables from Core.Object
Class, HashNext, HashOuterNext, Linker, LinkerIndex, Name, NetIndex, ObjectArchetype, ObjectFlags, ObjectInternalInteger, Outer, StateFrame, VfTableObject

Enumerations Summary
Inherited Enumerations from GFxUI.GFxMoviePlayer
ASType, GFxAlign, GFxRenderTextureMode, GFxScaleMode, GFxTimingMode
Inherited Enumerations from Core.Object
AlphaBlendType, EAspectRatioAxisConstraint, EAutomatedRunResult, EAxis, EDebugBreakType, EInputEvent, EInterpCurveMode, EInterpMethodType, ETickingGroup

Structures Summary
ViewInfo
ViewName, SWFName, DependantViews
Inherited Structures from GFxUI.GFxMoviePlayer
ASValue, ExternalTexture, GFxDataStoreBinding, GFxWidgetBinding, SoundThemeBinding
Inherited Structures from Core.Object
Array_Mirror, BitArray_Mirror, BoneAtom, Box, BoxSphereBounds, Color, Cylinder, double, FColorVertexBuffer_Mirror, Guid, IndirectArray_Mirror, InlinePointerArray_Mirror, InterpCurveFloat, InterpCurveLinearColor, InterpCurvePointFloat, InterpCurvePointLinearColor, InterpCurvePointQuat, InterpCurvePointTwoVectors, InterpCurvePointVector, InterpCurvePointVector2D, InterpCurveQuat, InterpCurveTwoVectors, InterpCurveVector, InterpCurveVector2D, IntPoint, LinearColor, Map_Mirror, Matrix, MultiMap_Mirror, OctreeElementId, Plane, pointer, Quat, qword, RawDistribution, RenderCommandFence, RenderCommandFence_Mirror, Rotator, Set_Mirror, SHVector, SHVectorRGB, SparseArray_Mirror, TAlphaBlend, ThreadSafeCounter, TPOV, TwoVectors, UntypedBulkData_Mirror, Vector, Vector2D, Vector4

Delegates Summary
delegate EscapeDelegate ()
Inherited Delegates from GFxUI.GFxMoviePlayer
OnPostAdvance

Functions Summary
function ASSetSelectionFocus (GFxObject MovieClip))
function ASShowCursor (bool bShowCursor))
functionbool CheckLinkConnectionAndError (optional string AlternateTitle, optional string AlternateMessage ))
function ConfigFrontEnd ()))
function ConfigureTargetDialog (coerce GFxUDKFrontEnd_View TargetDialog))
function ConfigureTargetView (GFxUDKFrontEnd_View TargetView))
function ConfigureView (GFxUDKFrontEnd_View InView, name WidgetName, name WidgetPath))
function DestroyDependantViews (name InViewName ))
functionbool IsViewAllowed (GFxUDKFrontEnd_View TargetView))
functionbool IsViewLoaded (name InViewName ))
function LoadDependantViews (name InViewName ))
function LoadView (ViewInfo InViewInfo))
function LoadViewByName (name InViewName ))
function LoadViews ()))
functionGFxObject PopView ()))
functionGFxObject PopViewStub ()))
function PostWidgetInit ()))
function PushDialogView (coerce GFxUDKFrontEnd_View dialogView))
function PushView (coerce GFxUDKFrontEnd_View targetView))
function PushViewByName (name TargetViewName, optional GFxUDKFrontEnd_Screen ParentView))
function SetEscapeDelegate (delegate InDelegate ))
function SetSelectionFocus (coerce GFxObject MovieClip))
functionGFxUDKFrontEnd_Dialog SpawnDialog (name TargetDialogName, optional GFxUDKFrontEnd_Screen ParentView))
functionbool Start (optional bool StartPaused = false))
function UpdateViewLayout ()))
eventbool WidgetInitialized (name WidgetName, name WidgetPath, GFxObject Widget))
Inherited Functions from GFxUI.GFxMoviePlayer
ActionScriptFloat, ActionScriptInt, ActionScriptObject, ActionScriptSetFunction, ActionScriptString, ActionScriptVoid, AddCaptureKey, AddFocusIgnoreKey, Advance, ApplyPriorityBlurEffect, ApplyPriorityEffect, ApplyPriorityVisibilityEffect, ClearCaptureKeys, ClearFocusIgnoreKeys, Close, ConditionalClearPause, ConsoleCommand, CreateArray, CreateObject, FilterButtonInput, FlushPlayerInput, GetGameViewportClient, GetLP, GetPC, GetVariable, GetVariableArray, GetVariableBool, GetVariableFloatArray, GetVariableIntArray, GetVariableNumber, GetVariableObject, GetVariableString, GetVariableStringArray, GetVisibleFrameRect, Init, Invoke, OnCleanup, OnClose, OnFocusGained, OnFocusLost, PlaySoundFromTheme, PostAdvance, PostWidgetInit, PublishDataStoreValues, RefreshDataStoreBindings, SetAlignment, SetExternalInterface, SetExternalTexture, SetMovieCanReceiveFocus, SetMovieCanReceiveInput, SetMovieInfo, SetPause, SetPerspective3D, SetPriority, SetTimingMode, SetVariable, SetVariableArray, SetVariableBool, SetVariableFloatArray, SetVariableIntArray, SetVariableNumber, SetVariableObject, SetVariableString, SetVariableStringArray, SetView3D, SetViewport, SetViewScaleMode, SetWidgetPathBinding, Start, WidgetInitialized, WidgetUnloaded
Inherited Functions from Core.Object
!, !=, $, $=, %, &, &&, *, **, *=, +, ++, +=, -, --, -=, / , /=, <, <<, <=, ==, >, >=, >>, >>>, @, @=, Abs, Acos, Asc, Asin, Atan, Atan2, BeginState, ByteToFloat, Caps, Chr, Clamp, ClampLength, ClampRotAxis, ClampRotAxisFromBase, ClampRotAxisFromRange, ClassIsChildOf, ClockwiseFrom, ColorToLinearColor, ContinuedState, Cos, Cross, DebugBreak, Disable, Dot, DumpStateStack, DynamicLoadObject, Enable, EndState, EvalInterpCurveFloat, EvalInterpCurveVector, EvalInterpCurveVector2D, Exp, FCeil, FClamp, FCubicInterp, FFloor, FindDeltaAngle, FindObject, FInterpConstantTo, FInterpEaseIn, FInterpEaseInOut, FInterpEaseOut, FInterpTo, float, FloatToByte, FMax, FMin, FPctByRange, FRand, GetAngularDegreesFromRadians, GetAngularDistance, GetAngularFromDotDist, GetAxes, GetBuildChangelistNumber, GetDotDistance, GetEngineVersion, GetEnum, GetFuncName, GetHeadingAngle, GetMappedRangeValue, GetPackageName, GetPerObjectConfigSections, GetRangePctByValue, GetRangeValueByPct, GetRightMost, GetRotatorAxis, GetScriptTrace, GetStateName, GetSystemTime, GetUnAxes, GotoState, InCylinder, InStr, InverseTransformNormal, InverseTransformVector, IsA, IsChildState, IsInState, IsPendingKill, IsUTracing, IsZero, JoinArray, Left, Len, Lerp, LerpColor, Localize, Locs, Loge, LogInternal, MakeColor, MakeLinearColor, MakeRotationMatrix, MakeRotationTranslationMatrix, MakeRotator, MatrixGetAxis, MatrixGetOrigin, MatrixGetRotator, Max, Mid, Min, MirrorVectorByNormal, Normal, Normalize, NormalizeRotAxis, NoZDot, OrthoRotation, ParseLocalizedPropertyPath, ParseStringIntoArray, PathName, PausedState, PointDistToLine, PointDistToPlane, PointDistToSegment, PointProjectToPlane, PoppedState, PopState, ProjectOnTo, PushedState, PushState, QuatDot, QuatFindBetween, QuatFromAxisAndAngle, QuatFromRotator, QuatInvert, QuatProduct, QuatRotateVector, QuatSlerp, QuatToRotator, Rand, RDiff, Repl, Right, RInterpTo, RLerp, RotRand, Round, RSize, RSmerp, RTransform, SaveConfig, SClampRotAxis, ScriptTrace, SetUTracing, Sin, Split, SplitString, Sqrt, Square, StaticSaveConfig, Tan, TimeStamp, ToHex, TransformNormal, TransformVector, TransformVectorByRotation, UnwindHeading, vect2d, VInterpTo, VLerp, VRand, VRandCone, VRandCone2, VSize, VSize2D, VSizeSq, VSizeSq2D, VSmerp, WarnInternal, ^, ^^, |, ||, ~, ~=


Variables Detail

bInitialized Source code

var bool bInitialized;

ErrorDialog Source code

var GFxUDKFrontEnd_ErrorDialog ErrorDialog;

FilterDialog Source code

var GFxUDKFrontEnd_FilterDialog FilterDialog;

GameModeView Source code

var GFxUDKFrontEnd_GameMode GameModeView;

HostGameView Source code

var GFxUDKFrontEnd_HostGame HostGameView;

InfoDialog Source code

var GFxUDKFrontEnd_InfoDialog InfoDialog;

InstantActionView Source code

var GFxUDKFrontEnd_InstantAction InstantActionView;

JoinDialog Source code

var GFxUDKFrontEnd_JoinDialog JoinDialog;

JoinGameView Source code

var GFxUDKFrontEnd_JoinGame JoinGameView;

LoadedViews Source code

var array<name> LoadedViews;
An array of names of views which have been attachMovie()'d and loadMovie()'d. Views are loaded based on their DependantViews array, defined in Default.ini.

MainMenuView Source code

var GFxUDKFrontEnd_MainMenu MainMenuView;
View declarations.

ManagerMC Source code

var GFxObject ManagerMC;
Reference to the manager MovieClip (_root.manager) where views will be attached.

MapSelectView Source code

var GFxUDKFrontEnd_MapSelect MapSelectView;

MultiplayerView Source code

var GFxUDKFrontEnd_Multiplayer MultiplayerView;

MutatorsView Source code

var GFxUDKFrontEnd_Mutators MutatorsView;

PasswordDialog Source code

var GFxUDKFrontEnd_PasswordDialog PasswordDialog;

RootMC Source code

var GFxObject RootMC;
Reference to _root of the movie's (udk_manager.swf) stage.

ServerSettingsView Source code

var GFxUDKFrontEnd_ServerSettings ServerSettingsView;

SettingsView Source code

var GFxUDKFrontEnd_Settings SettingsView;

ViewData Source code

var config array<ViewInfo> ViewData;
Array of all menu views to be loaded, defined in DefaultUI.ini.

ViewStack Source code

var array<GFxUDKFrontEnd_View> ViewStack;
Shadow of the AS view stack. Necessary to update ( View.OnTopMostView(false) ) views that alreday exist on the stack.


Structures Detail

ViewInfo Source code

struct ViewInfo
{
var array<name> DependantViews;
var string SWFName;
var name ViewName;
};
Structure which defines a unique menu view to be loaded.
DependantViews:
Dependant views that should be loaded if this view is displayed.
SWFName:
SWF content to be loaded.
ViewName:
Unique string.


Delegates Detail

EscapeDelegate Source code

delegate EscapeDelegate ( )
A delegate for Escape/Back key press which will generally move the user backward through the menu or select "Cancel".


Functions Detail

ASSetSelectionFocus Source code

function ASSetSelectionFocus ( GFxObject MovieClip) )
AS stub for access to Selection.setFocus() via SetSelectionFocus().

ASShowCursor Source code

final function ASShowCursor ( bool bShowCursor) )

CheckLinkConnectionAndError Source code

function bool CheckLinkConnectionAndError ( optional string AlternateTitle, optional string AlternateMessage ) )

@return Checks to see if the platform is currently connected to a network.

ConfigFrontEnd Source code

final function ConfigFrontEnd ( ) )
Configuration method which stores references to _root and _root.manager for use in attaching views.

ConfigureTargetDialog Source code

function ConfigureTargetDialog ( coerce GFxUDKFrontEnd_View TargetDialog) )
Activates, updates, and pushes a dialog on the stack. This method is called when a dialog is created by name using SpawnDialog().

ConfigureTargetView Source code

function ConfigureTargetView ( GFxUDKFrontEnd_View TargetView) )
Activates, updates, and pushes a view on the stack if it is allowed. This method is called when a view is created by name using PushViewByName().

ConfigureView Source code

final function ConfigureView ( GFxUDKFrontEnd_View InView, name WidgetName, name WidgetPath) )

DestroyDependantViews Source code

final function DestroyDependantViews ( name InViewName ) )
A highly unstable method which unloads dependant views based on the name of the view that is being unloaded.

IsViewAllowed Source code

function bool IsViewAllowed ( GFxUDKFrontEnd_View TargetView) )
Check whether target view is appropriate to add to the view stack.

IsViewLoaded Source code

final function bool IsViewLoaded ( name InViewName ) )
Checks whether a view has already been loaded using the view name.
@param InViewName The name of the view to check.

LoadDependantViews Source code

final function LoadDependantViews ( name InViewName ) )
Loads all dependant views for a view using the view's name. Dependant views are defined in the INI file and stored in the ViewData array.

LoadView Source code

final function LoadView ( ViewInfo InViewInfo) )
Create a view using existing ViewInfo.
@param InViewInfo, the data for the view which includes the SWFName and the name for the view.

LoadViewByName Source code

final function LoadViewByName ( name InViewName ) )
Loads a view using the view name. Used for loading views based on the current screen. Views that should be loaded for each screen are defined in DefaultUI.ini.
@param InViewName The name of the view to be loaded.

LoadViews Source code

final function LoadViews ( ) )
Creates MovieClips in ManagerMC into which the views are loaded. These MovieClips are then stored in MenuViews for later manipulation.

PopView Source code

function GFxObject PopView ( ) )
Pops a view from the view stack and handles update/close of existing views.

PopViewStub Source code

final function GFxObject PopViewStub ( ) )
Pops a view from the MenuManager.as view stack.

PostWidgetInit Source code

function PostWidgetInit ( ) )
Callback when at least one CLIK widget with enableInitCallback set to TRUE has been initialized in a frame

PushDialogView Source code

function PushDialogView ( coerce GFxUDKFrontEnd_View dialogView) )
AS stub for pushing a view onto the stack.

PushView Source code

function PushView ( coerce GFxUDKFrontEnd_View targetView) )
Pushes a view onto MenuManager.as view stack.

PushViewByName Source code

final function PushViewByName ( name TargetViewName, optional GFxUDKFrontEnd_Screen ParentView) )
Pushes a view onto MenuManager.as's view stack by name. This is the primarily method by which views on the stack notify the GFxUDKFrontEnd that the state of the stack needs to be updated.

SetEscapeDelegate Source code

final function SetEscapeDelegate ( delegate<EscapeDelegate> InDelegate ) )
Used by views to set the function triggered by "escape" input.
@param InDelegate The EscapeDelegate that should be called on Escape/Cancel key press.

SetSelectionFocus Source code

function SetSelectionFocus ( coerce GFxObject MovieClip) )
Gives focus to a particular GFxObject.

SpawnDialog Source code

function GFxUDKFrontEnd_Dialog SpawnDialog ( name TargetDialogName, optional GFxUDKFrontEnd_Screen ParentView) )
Configures a dialog and pushes it on to the view stack. Returns a reference to the dialog which can be manipulated to the view which spawned it.

Start Source code

function bool Start ( optional bool StartPaused = false) )

UpdateViewLayout Source code

final function UpdateViewLayout ( ) )
Updates the layout of all views in MenuManager.as view stack.

WidgetInitialized Source code

event bool WidgetInitialized ( name WidgetName, name WidgetPath, GFxObject Widget) )
Callback when a CLIK widget with enableInitCallback set to TRUE is initialized. Returns TRUE if the widget was handled, FALSE if not.


Defaultproperties

defaultproperties
{    
    
    WidgetBindings.Add((WidgetName="MainMenu",WidgetClass=class'GFxUDKFrontEnd_MainMenu'))
    WidgetBindings.Add((WidgetName="InstantAction",WidgetClass=class'GFxUDKFrontEnd_InstantAction'))       
    WidgetBindings.Add((WidgetName="MapSelect",WidgetClass=class'GFxUDKFrontEnd_MapSelect'))
    WidgetBindings.Add((WidgetName="GameMode",WidgetClass=class'GFxUDKFrontEnd_GameMode'))
    WidgetBindings.Add((WidgetName="Settings",WidgetClass=class'GFxUDKFrontEnd_Settings'))
    WidgetBindings.Add((WidgetName="Mutators",WidgetClass=class'GFxUDKFrontEnd_Mutators'))
        
    WidgetBindings.Add((WidgetName="Multiplayer",WidgetClass=class'GFxUDKFrontEnd_Multiplayer'))
    WidgetBindings.Add((WidgetName="HostGame",WidgetClass=class'GFxUDKFrontEnd_HostGame'))
    WidgetBindings.Add((WidgetName="JoinGame",WidgetClass=class'GFxUDKFrontEnd_JoinGame'))
    WidgetBindings.Add((WidgetName="ServerSettings",WidgetClass=class'GFxUDKFrontEnd_ServerSettings'))
    
    WidgetBindings.Add((WidgetName="InfoDialog",WidgetClass=class'GFxUDKFrontEnd_InfoDialog'))
    WidgetBindings.Add((WidgetName="ErrorDialog",WidgetClass=class'GFxUDKFrontEnd_ErrorDialog'))
    WidgetBindings.Add((WidgetName="JoinDialog",WidgetClass=class'GFxUDKFrontEnd_JoinDialog'))
    WidgetBindings.Add((WidgetName="FilterDialog",WidgetClass=class'GFxUDKFrontEnd_FilterDialog'))
    WidgetBindings.Add((WidgetName="PasswordDialog",WidgetClass=class'GFxUDKFrontEnd_PasswordDialog'))

    
    SoundThemes(0)=(ThemeName=default,Theme=UISoundTheme'UDKFrontEnd.Sound.SoundTheme')

    bDisplayWithHudOff=TRUE    
    TimingMode=TM_Real
    bInitialized=FALSE
	MovieInfo=SwfMovie'UDKFrontEnd.udk_manager'
	bPauseGameWhileActive=TRUE
	bCaptureInput=true
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: ti 22-3-2011 19:56:50.398 - Created with UnCodeX