// September 2015 // Levee Patroller / Dijk Patrouille // This source file is (c) by Deltares. This source file is open source but only available to select users. Do not redistribute without written permission of Stichting Deltares, Delft, The Netherlands. // This header has been automatically generated. //============================================================================= // GeoPlayerControllerIntro // Started using RTPlayerController And ExampleController (UDN) // // Includes funtion to put Simple Player Controller for intro // // // ------------------------------------------------------------ // Created by Rui Guimaraes // © 2006, Geodelft // // Date Id Modification // 2006-10-28 gui Bug with language corrected and is now set in Dutch in here //============================================================================= class GeoPlayerControllerIntro extends GeoPlayerController; function PreBeginPlay() { local GeoCompleteExercise GCE; Dutch = Bool(Localize("System","IsDutch", "GeoSimulator")); Super.PreBeginPlay(); /// Slomo 1 at startup Level.ConsoleCommand("slomo 1"); GCE = new class'GeoCompleteExercise'; if(!(GCE.bIsCompleteExerciseWinner)) { //Dutch=true; } SaveConfig(); } exec function ShowMenu() { SkipIntro(); } exec function MakeCall() { SkipIntro(); } exec function TakeAction() { SkipIntro(); } exec function ShowMap() { SkipIntro(); } exec function ShowNotebook() { SkipIntro(); } function SkipIntro() { local string MenuName; local GeoCompleteExercise GCE; GCE = new class'GeoCompleteExercise'; if(GCE.bIsCompleteExerciseWinner) { MenuName = class'GameEngine'.default.MainMenuClass; ClientOpenMenu(MenuName, true); ClientOpenMenu("GeoInterface.MainMenuOptions", true); GCE.bIsCompleteExerciseWinner=false; GCE.SaveConfig(); } else { MenuName = class'GameEngine'.default.MainMenuClass; ClientOpenMenu(MenuName, true); } } defaultproperties { Tag="IntroPlayer" }