UDN
Search public documentation:
RuntimeExampleRestrictedMenu
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
Runtime Example Restricted Menu
Created by Chris Linder (DemiurgeStudios?) on 10-21-03 for the Unreal Runtime. Last Updated by Chris Linder (DemiurgeStudios?).Related Documents
GuiReference, LocalizationReferenceIntroduction
This example will go over how to create an example menu that limits access to the engine and engine settings. A menu such as this would be appropriate for computers placed in a museum or educational setting for example. As well as creating a simple menu, this example goes over how to restrict the console so that commands can not be typed in. This example is based on the Unreal Runtime but it can be used in any 2226 or higher build of the engine.Creating the Main Menu

Creating the In-Game Menu

Creating the Restricted Console
RestrictedConsole is very simple; it extends Engine.Console override KeyEvent so that the key press to bring up the console is ignored. It also overrides Type, Talk, and TeamTalk so that none of these callGotoState('Typing')
.
The engine needs a console, which must be a subclass of Console, to work. If there is no console specified in UE2Runtime.ini, in the [Engine.Engine]
section, the game with not launch. If the console specified is not a subclass of Console, the engine with launch but maps will not load.
Installing the Example
Download the attached zip file and unzip it in your Runtime directory. Next you will need to alter your INI file settings to use the new menus and console. In UE2Runtime.ini, in the[Engine.Engine]
section, change the console to:
Console=ExampleMenuRestricted.RestrictedConsoleNext, in the
[Engine.GameEngine]
section, change the menu classes to:
InitialMenuClass=ExampleMenuRestricted.RestrictedMainMenu MainMenuClass=ExampleMenuRestricted.RestrictedMainMenuNow in User.ini, in the
[Engine.PlayerController]
section change the mid game menu to:
MidGameMenuClass=ExampleMenuRestricted.RestrictedMidGameMenuAt this point you can launch the Runtime and you will see the new menus. If you want to make changes to these menus, make sure you add "ExampleMenuRestricted" to the EditPackages lists in UE2Runtime.ini.