Announcement

Collapse
No announcement yet.

Pause Menu Exit Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    The command is "open mapname"

    Leave a comment:


  • replied
    I designed my own screen which displays when pressed Esc, then you can do whatever you want when you click the buttons.

    e.g if you want your own screen to appear instead of the UDK Exit/resume screen you need to override the "TogglePauseMenu" function in your class that extends UTHUDBase, e.g:

    Code:
    function TogglePauseMenu()
    {
        if ( PauseMenuMovie != none && PauseMenuMovie.bMovieIsOpen )
    	{
            PauseMenuMovie.PlayCloseAnimation();
    	}
    	else
        {
    		CloseOtherMenus();
    
            PlayerOwner.SetPause(True);
    
            if (PauseMenuMovie == None)
            {
    	    PauseMenuMovie = new class'LastStand.LSGFxUI_PauseMenu';
                PauseMenuMovie.MovieInfo = SwfMovie'HUD.Pausemenu';
                PauseMenuMovie.bEnableGammaCorrection = FALSE;
    			PauseMenuMovie.LocalPlayerOwnerIndex = class'Engine'.static.GetEngine().GamePlayers.Find(LocalPlayer(PlayerOwner.Player));
                PauseMenuMovie.SetTimingMode(TM_Real);
            }
    
            SetVisible(false);
            PauseMenuMovie.Start();
            PauseMenuMovie.PlayOpenAnimation();
            PauseMenuMovie.AddFocusIgnoreKey('Escape');
        }
    }
    If you want to load a new level when pressing a button for instance, make the button do this in AS:

    ExternalInterface.call("FlashToConsole", "load mapname");

    where the Unrealscript end would be:

    function FlashToConsole(string command)
    {
    ConsoleCommand(command);
    }

    Edit: The load command seems to be deprecated, lookup what command that changes level in the console

    Leave a comment:


  • started a topic Pause Menu Exit Question

    Pause Menu Exit Question

    Hi guys, the last bit of my UI issue is that when i'm playing my game and i click on Esc > Exit. It loads a UDK menu. Is there any way of reloading the map i created for my menu?

    I have replaced udk_main_menu.swf with my own which has 1 frame with actionscript:

    fscommand("restart");

    I've tried to do it in my game level i have an fscommand in a kismet sequence using the fscommand and loading my menu map with a console command but when i click exit, it loads the background of the original menu. I think that's because it closes the level before it can do the fscommand.

    To sum my question up, how do i change the exit button to open a new level rather than go to the UDK menu?

    Thanks,

    Dean
Working...
X