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

UnrealGame.ACTION_GotoMenu


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
// ====================================================================
//  Class:  UnrealGame.ACTION_GotoMenu
//  Parent: GamePlay.ScriptedAction
//
//  When called, it will transfer the sequecne to a menu
// ====================================================================

class ACTION_GotoMenu extends ScriptedAction
    PerObjectConfig;

var(Action) config string       MenuName;
var(Action) bool        bDisconnect;

function bool InitActionFor(ScriptedController C)
{
    local PlayerController CP;

    if ( MenuName == "" )
        MenuName = class'GameEngine'.default.MainMenuClass;

    ForEach C.AllActors(class'PlayerController',CP)
    {
        CP.ClientOpenMenu(MenuName,bDisconnect);
        return false;
    }

    return false;
}

function string GetMenuName()
{
    if ( MenuName == "" )
        MenuName = class'GameEngine'.default.MainMenuClass;

    return MenuName;
}

function string GetActionString()
{
    return "OpenMenu"@MenuName;
}

defaultproperties
{
     bDisconnect=True
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mon 23/10/2006 20:38:48.000 - Creation time: Wed 7/2/2007 19:16:32.671 - Created with UnCodeX