Guest User

Untitled

a guest
Aug 1st, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package frontend
  2. {
  3.    import display.MovieClipEx;
  4.    import frontend.menu.Menu;
  5.    import frontend.menu.MenuParent;
  6.    import frontend.menu.MenuDescription;
  7.    import frontend.menu.MenuTransitions;
  8.    import frontend.menu.MenuExtras;
  9.    import components.UserProfilePanel;
  10.    import frontend.menu.MenuItemExpandable;
  11.    import frontend.menu.MenuItem;
  12.    import frontend.menu.MenuItemOptionSlider;
  13.    import frontend.menu.MenuItemOptionCheckBox;
  14.    import frontend.menu.MenuItemOptionOptionStepper;
  15.    import flash.external.ExternalInterface;
  16.    import utils.StringUtil;
  17.    import frontend.enum.MenuItemId;
  18.    import frontend.events.MenuItemEvent;
  19.    import frontend.menu.MenuItemDataSequence;
  20.    import frontend.menu.MenuItemData;
  21.    import frontend.menu.MenuItemDataButton;
  22.    import frontend.menu.MenuItemOptionInputMapper;
  23.    import frontend.events.MenuPageEvent;
  24.    import frontend.events.MenuEvent;
  25.    import scaleform.clik.events.IndexEvent;
  26.    import events.PopUpEvent;
  27.    import frontend.enum.MenuPageId;
  28.    
  29.    public class GameMenu extends MovieClipEx
  30.    {
  31.      
  32.       public static const DIFFICULTY_EASY:int = 0;
  33.      
  34.       public static const DIFFICULTY_MEDIUM:int = 1;
  35.      
  36.       public static const DIFFICULTY_HARD:int = 2;
  37.      
  38.       public static const DIFFICULTY_IRON:int = 3;
  39.      
  40.       public static const DIFFICULTY_NOVICE:int = 4;
  41.      
  42.       public static const PLATFORM_DURANGO:int = 0;
  43.      
  44.       public static const PLATFORM_ORBIS:int = 1;
  45.      
  46.       public static const PLATFORM_PS3:int = 2;
  47.      
  48.       public static const PLATFORM_360:int = 3;
  49.      
  50.       public static const PLATFORM_PC:int = 4;
  51.        
  52.       public var menu:Menu;
  53.      
  54.       public var menuParent:MenuParent;
  55.      
  56.       public var description:MenuDescription;
  57.      
  58.       public var transitions:MenuTransitions;
  59.      
  60.       public var extras:MenuExtras;
  61.      
  62.       public var moviePlayer:frontend.FrontEndMoviePlayer;
  63.      
  64.       public var userProfilePanel:UserProfilePanel;
  65.      
  66.       private var _userProfilePanelVisible:Boolean;
  67.      
  68.       private var _imageSubstitutionLoaded:Boolean;
  69.      
  70.       private var _functionPrefix:String;
  71.      
  72.       protected var _imageSubstitution:ImageSubstitution;
  73.      
  74.       protected var _optionsItem:MenuItemExpandable;
  75.      
  76.       protected var _quitGameItem:MenuItem;
  77.      
  78.       protected var _helpItem:MenuItem;
  79.      
  80.       protected var _backToFrontendItem:MenuItem;
  81.      
  82.       protected var _gameOptionsItem:MenuItemExpandable;
  83.      
  84.       protected var _videoOptionsItem:MenuItemExpandable;
  85.      
  86.       protected var _audioOptionsItem:MenuItemExpandable;
  87.      
  88.       protected var _socialOptionsItem:MenuItemExpandable;
  89.      
  90.       protected var _controllerOptionsItem:MenuItemExpandable;
  91.      
  92.       protected var _mouseSensitivityItem:MenuItemOptionSlider;
  93.      
  94.       protected var _cameraSensitivityItem:MenuItemOptionSlider;
  95.      
  96.       protected var _invertXAxisItem:MenuItemOptionCheckBox;
  97.      
  98.       protected var _invertYAxisItem:MenuItemOptionCheckBox;
  99.      
  100.       protected var _vibrationItem:MenuItemOptionCheckBox;
  101.      
  102.       protected var _headTrackingItem:MenuItemOptionCheckBox;
  103.      
  104.       protected var _movementDetectionItem:MenuItemOptionCheckBox;
  105.      
  106.       protected var _noiseDetectionItem:MenuItemOptionCheckBox;
  107.      
  108.       protected var _mementoMoriItem:MenuItemOptionCheckBox;
  109.      
  110.       protected var _aimAssistItem:MenuItemOptionCheckBox;
  111.      
  112.       protected var _difficultyItem:MenuItemOptionOptionStepper;
  113.      
  114.       protected var _inputMappingItem:MenuItemExpandable;
  115.      
  116.       protected var _gamepadPresetItem:MenuItemOptionOptionStepper;
  117.      
  118.       protected var _resetInputMappingItem:MenuItem;
  119.      
  120.       protected var _cancelInputMappingItem:MenuItem;
  121.      
  122.       protected var _saveInputMappingItem:MenuItem;
  123.      
  124.       protected var _adjustGammaItem:MenuItem;
  125.      
  126.       protected var _beginBenchmarkItem:MenuItem;
  127.      
  128.       protected var _fieldOfViewItem:MenuItemOptionSlider;
  129.      
  130.       protected var _fullscreenItem:MenuItemOptionOptionStepper;
  131.      
  132.       protected var _deepColourItem:MenuItemOptionOptionStepper;
  133.      
  134.       protected var _fullScreenResolution24bppItem:MenuItemOptionOptionStepper;
  135.      
  136.       protected var _fullScreenResolution30bppItem:MenuItemOptionOptionStepper;
  137.      
  138.       protected var _windowedResolutionItem:MenuItemOptionOptionStepper;
  139.      
  140.       protected var _verticalSyncItem:MenuItemOptionOptionStepper;
  141.      
  142.       protected var _levelOfDetailItem:MenuItemOptionOptionStepper;
  143.      
  144.       protected var _shadowMapResolutionItem:MenuItemOptionOptionStepper;
  145.      
  146.       protected var _shadowMappingItem:MenuItemOptionOptionStepper;
  147.      
  148.       protected var _particlesItem:MenuItemOptionOptionStepper;
  149.      
  150.       protected var _motionBlurItem:MenuItemOptionOptionStepper;
  151.      
  152.       protected var _depthOfFieldItem:MenuItemOptionOptionStepper;
  153.      
  154.       protected var _chromaticAberrationItem:MenuItemOptionOptionStepper;
  155.      
  156.       protected var _planarReflectionsItem:MenuItemOptionOptionStepper;
  157.      
  158.       protected var _screenSpaceAmbientOcclusionItem:MenuItemOptionOptionStepper;
  159.      
  160.       protected var _textureFilteringItem:MenuItemOptionOptionStepper;
  161.      
  162.       protected var _volumetricLightingItem:MenuItemOptionOptionStepper;
  163.      
  164.       protected var _antiAliasingItem:MenuItemOptionOptionStepper;
  165.      
  166.       protected var _stereoModeItem:MenuItemOptionOptionStepper;
  167.      
  168.       protected var _filmGrainIntensityItem:MenuItemOptionSlider;
  169.      
  170.       protected var _applyVideoOptionsItem:MenuItem;
  171.      
  172.       protected var _sfxVolumeItem:MenuItemOptionSlider;
  173.      
  174.       protected var _musicVolumeItem:MenuItemOptionSlider;
  175.      
  176.       protected var _subtitlesItem:MenuItemOptionCheckBox;
  177.      
  178.       protected var _musicItem:MenuItemOptionCheckBox;
  179.      
  180.       protected var _audioLanguageItem:MenuItemOptionOptionStepper;
  181.      
  182.       protected var _speakerModeItem:MenuItemOptionOptionStepper;
  183.      
  184.       protected var _dualShockSpeakerItem:MenuItemOptionOptionStepper;
  185.      
  186.       protected var _twitterLinkItem:MenuItemOptionCheckBox;
  187.      
  188.       protected var _facebookLinkItem:MenuItemOptionCheckBox;
  189.      
  190.       protected var _secondScreenItem:MenuItem;
  191.      
  192.       protected var _currentCheckpointItem:MenuItem;
  193.      
  194.       protected var _previousCheckpointItem:MenuItem;
  195.      
  196.       protected var _missionCheckpointsItem:MenuItemExpandable;
  197.      
  198.       protected var _debugCheckpointsItem:MenuItemExpandable;
  199.      
  200.       protected var _loadGameItem:MenuItemExpandable;
  201.      
  202.       public function GameMenu(param1:String)
  203.       {
  204.          this._imageSubstitution = new ImageSubstitution();
  205.          this._optionsItem = new MenuItemExpandable("AI_UI_MENU_OPTIONS");
  206.          this._quitGameItem = new MenuItem("AI_UI_MENU_QUIT_GAME",this.quitGameHandler);
  207.          this._helpItem = new MenuItem("AI_UI_MENU_HELP",this.helpHandler);
  208.          this._backToFrontendItem = new MenuItem("AI_UI_PAUSE_TO_FRONTEND",this.backToFrontendHandler);
  209.          this._gameOptionsItem = new MenuItemExpandable("AI_UI_MENU_GAME");
  210.          this._videoOptionsItem = new MenuItemExpandable("AI_UI_MENU_VIDEO");
  211.          this._audioOptionsItem = new MenuItemExpandable("AI_UI_MENU_AUDIO");
  212.          this._socialOptionsItem = new MenuItemExpandable("AI_UI_MENU_SOCIAL");
  213.          this._controllerOptionsItem = new MenuItemExpandable("AI_UI_MENU_GAMEPAD_PRESET");
  214.          this._mouseSensitivityItem = new MenuItemOptionSlider("AI_UI_MENU_MOUSE_SPEED",null,this.mouseSensitivityValueChangeHandler,false,0,2);
  215.          this._cameraSensitivityItem = new MenuItemOptionSlider("AI_UI_MENU_CAMERA_SPEED",null,this.cameraSensitivityValueChangeHandler,false,0,2);
  216.          this._invertXAxisItem = new MenuItemOptionCheckBox("AI_UI_MENU_INVERT_X",true,null,this.invertXAxisSelectHandler);
  217.          this._invertYAxisItem = new MenuItemOptionCheckBox("AI_UI_MENU_INVERT_Y",true,null,this.invertYAxisSelectHandler);
  218.          this._vibrationItem = new MenuItemOptionCheckBox("AI_UI_MENU_VIBRATION",true,null,this.vibrationSelectHandler);
  219.          this._headTrackingItem = new MenuItemOptionCheckBox("AI_UI_MENU_HEAD_TRACKING",true,null,this.headTrackingSelectHandler);
  220.          this._movementDetectionItem = new MenuItemOptionCheckBox("AI_UI_MENU_MOVEMENT_DETECTION",true,null,this.movementDetectionSelectHandler);
  221.          this._noiseDetectionItem = new MenuItemOptionCheckBox("AI_UI_MENU_NOISE_DETECTION",true,null,this.noiseDetectionSelectHandler);
  222.          this._mementoMoriItem = new MenuItemOptionCheckBox("AI_UI_MENU_MEMENTO_MORI",true,null,this.mementoMoriSelectHandler);
  223.          this._aimAssistItem = new MenuItemOptionCheckBox("AI_UI_MENU_AIM_ASSIST",true,null,this.aimAssistSelectHandler);
  224.          this._difficultyItem = new MenuItemOptionOptionStepper("AI_UI_MENU_DIFFICULTY",[DIFFICULTY_NOVICE,DIFFICULTY_EASY,DIFFICULTY_MEDIUM,DIFFICULTY_HARD],["AI_UI_MENU_DIFF_NOVICE","AI_UI_MENU_DIFF_EASY","AI_UI_MENU_DIFF_MEDIUM","AI_UI_MENU_DIFF_HARD"],this.difficultyIndexChangeHandler);
  225.          this._inputMappingItem = new MenuItemExpandable("AI_UI_MENU_INPUT_MAPPING");
  226.          this._gamepadPresetItem = new MenuItemOptionOptionStepper("AI_UI_MENU_GAMEPAD_PRESET",null,null,this.gamepadPresetIndexChangeHandler);
  227.          this._resetInputMappingItem = new MenuItem("AI_UI_MENU_INPUT_RESET",this.resetInputMappingHandler);
  228.          this._cancelInputMappingItem = new MenuItem("AI_UI_MENU_INPUT_CANCEL",this.cancelInputMappingHandler);
  229.          this._saveInputMappingItem = new MenuItem("AI_UI_MENU_INPUT_SAVE",this.saveInputMappingHandler);
  230.          this._adjustGammaItem = new MenuItem("AI_UI_MENU_GAMMA",this.adjustGammaHandler);
  231.          this._beginBenchmarkItem = new MenuItem("AI_UI_MENU_BENCHMARK");
  232.          this._fieldOfViewItem = new MenuItemOptionSlider("AI_UI_MENU_FIELD_OF_VIEW",null,this.fieldOfViewIndexChangeHandler,true,MenuItemOptionSlider.MINIMUM_DEFAULT,MenuItemOptionSlider.MAXIMUM_DEFAULT,true);
  233.          this._fullscreenItem = new MenuItemOptionOptionStepper("AI_UI_MENU_FULLSCREEN",null,null,this.fullscreenIndexChangeHandler);
  234.          this._deepColourItem = new MenuItemOptionOptionStepper("AI_UI_MENU_DEEP_COLOUR",null,null,this.deepColourIndexChangeHandler);
  235.          this._fullScreenResolution24bppItem = new MenuItemOptionOptionStepper("AI_UI_MENU_FULLSCREEN_RES",null,null,this.fullScreenResolution24bppIndexChangeHandler);
  236.          this._fullScreenResolution30bppItem = new MenuItemOptionOptionStepper("AI_UI_MENU_FULLSCREEN_RES",null,null,this.fullScreenResolution30bppIndexChangeHandler);
  237.          this._windowedResolutionItem = new MenuItemOptionOptionStepper("AI_UI_MENU_WINDOW_RES",null,null,this.windowedResolutionIndexChangeHandler);
  238.          this._verticalSyncItem = new MenuItemOptionOptionStepper("AI_UI_MENU_VERTICAL_SYNC",null,null,this.verticalSyncIndexChangeHandler);
  239.          this._levelOfDetailItem = new MenuItemOptionOptionStepper("AI_UI_MENU_LEVEL_OF_DETAIL",null,null,this.levelOfDetailIndexChangeHandler);
  240.          this._shadowMapResolutionItem = new MenuItemOptionOptionStepper("AI_UI_MENU_SHADOW_MAP_RESOLUTION",null,null,this.shadowMapResolutionIndexChangeHandler);
  241.          this._shadowMappingItem = new MenuItemOptionOptionStepper("AI_UI_MENU_SHADOW_MAPPING",null,null,this.shadowMappingIndexChangeHandler);
  242.          this._particlesItem = new MenuItemOptionOptionStepper("AI_UI_MENU_PARTICLES",null,null,this.particlesIndexChangeHandler);
  243.          this._motionBlurItem = new MenuItemOptionOptionStepper("AI_UI_MENU_MOTION_BLUR",null,null,this.motionBlurIndexChangeHandler);
  244.          this._depthOfFieldItem = new MenuItemOptionOptionStepper("AI_UI_MENU_DEPTH_OF_FIELD",null,null,this.depthOfFieldIndexChangeHandler);
  245.          this._chromaticAberrationItem = new MenuItemOptionOptionStepper("AI_UI_MENU_CHROMATIC_ABERRATION",null,null,this.chromaticAberrationIndexChangeHandler);
  246.          this._planarReflectionsItem = new MenuItemOptionOptionStepper("AI_UI_MENU_PLANAR_REFLECTIONS",null,null,this.planarReflectionsIndexChangeHandler);
  247.          this._screenSpaceAmbientOcclusionItem = new MenuItemOptionOptionStepper("AI_UI_MENU_SCREEN_SPACE_AMBIENT_OCCLUSION",null,null,this.screenSpaceAmbientOcclusionIndexChangeHandler);
  248.          this._textureFilteringItem = new MenuItemOptionOptionStepper("AI_UI_MENU_TEXTURE_FILTERING",null,null,this.textureFilteringIndexChangeHandler);
  249.          this._volumetricLightingItem = new MenuItemOptionOptionStepper("AI_UI_MENU_VOLUMETRIC_LIGHTING",null,null,this.volumetricLightingIndexChangeHandler);
  250.          this._antiAliasingItem = new MenuItemOptionOptionStepper("AI_UI_MENU_ANTI_ALIASING",null,null,this.antiAliasingIndexChangeHandler);
  251.          this._stereoModeItem = new MenuItemOptionOptionStepper("AI_UI_MENU_STEREO_MODE",null,null,this.stereoModeIndexChangeHandler);
  252.          this._filmGrainIntensityItem = new MenuItemOptionSlider("AI_UI_MENU_FILM_GRAIN_INTENSITY",null,this.filmGrainIntensityIndexChangeHandler);
  253.          this._applyVideoOptionsItem = new MenuItem("AI_UI_MENU_VIDEO_APPLY",this.applyVideoOptionsHandler);
  254.          this._sfxVolumeItem = new MenuItemOptionSlider("AI_UI_MENU_SFX_VOLUME",null,this.sfxVolumeIndexChangeHandler);
  255.          this._musicVolumeItem = new MenuItemOptionSlider("AI_UI_MENU_MUSIC_VOLUME",null,this.musicVolumeIndexChangeHandler);
  256.          this._subtitlesItem = new MenuItemOptionCheckBox("AI_UI_MENU_SUBTITLES",true,null,this.subtitlesSelectHandler);
  257.          this._musicItem = new MenuItemOptionCheckBox("AI_UI_MENU_MUSIC",true,null,this.musicSelectHandler);
  258.          this._audioLanguageItem = new MenuItemOptionOptionStepper("AI_UI_MENU_AUDIO_LANGUAGE",null,null,this.audioLanguageIndexChangeHandler);
  259.          this._speakerModeItem = new MenuItemOptionOptionStepper("AI_UI_MENU_SPEAKER_MODE",null,null,this.speakerModeIndexChangeHandler);
  260.          this._dualShockSpeakerItem = new MenuItemOptionOptionStepper("AI_UI_MENU_DUALSHOCK_SPEAKER",null,null,this.dualShockSpeakerIndexChangeHandler);
  261.          this._twitterLinkItem = new MenuItemOptionCheckBox("AI_UI_MENU_TWITTER_LINK");
  262.          this._facebookLinkItem = new MenuItemOptionCheckBox("AI_UI_MENU_FACEBOOK_LINK");
  263.          this._secondScreenItem = new MenuItem("AI_UI_MENU_SECOND_SCR_SETTINGS");
  264.          this._currentCheckpointItem = new MenuItem("AI_UI_MENU_RESTART_CURR_CHECKPOINT",this.currentCheckpointHandler);
  265.          this._previousCheckpointItem = new MenuItem("AI_UI_MENU_RESTART_PREV_CHECKPOINT",this.previousCheckpointHandler);
  266.          this._missionCheckpointsItem = new MenuItemExpandable("AI_UI_MENU_LOAD_MISSION_CHECKPOINT",this.missionCheckpointsHandler);
  267.          this._debugCheckpointsItem = new MenuItemExpandable("Trigger Debug Checkpoint",this.debugCheckpointsHandler);
  268.          this._loadGameItem = new MenuItemExpandable("AI_UI_MENU_LOAD_GAME",this.loadGameHandler);
  269.          super();
  270.          this.menu = this.menuParent.menu;
  271.          this._functionPrefix = param1;
  272.          this._optionsItem.page.addItem(this._gameOptionsItem);
  273.          this._optionsItem.page.addItem(this._videoOptionsItem);
  274.          this._optionsItem.page.addItem(this._audioOptionsItem);
  275.          this._gameOptionsItem.page.addItem(this._controllerOptionsItem);
  276.          this._gameOptionsItem.page.addItem(this._inputMappingItem);
  277.          this._gameOptionsItem.page.addItem(this._mouseSensitivityItem);
  278.          this._gameOptionsItem.page.addItem(this._cameraSensitivityItem);
  279.          this._gameOptionsItem.page.addItem(this._invertXAxisItem);
  280.          this._gameOptionsItem.page.addItem(this._invertYAxisItem);
  281.          this._gameOptionsItem.page.addItem(this._aimAssistItem);
  282.          this._gameOptionsItem.page.addItem(this._vibrationItem);
  283.          this._gameOptionsItem.page.addItem(this._headTrackingItem);
  284.          this._gameOptionsItem.page.addItem(this._noiseDetectionItem);
  285.          this._gameOptionsItem.page.addItem(this._difficultyItem);
  286.          this._controllerOptionsItem.page.addItem(this._gamepadPresetItem);
  287.          this._inputMappingItem.page.addItem(this._resetInputMappingItem);
  288.          this._inputMappingItem.page.addItem(this._cancelInputMappingItem);
  289.          this._inputMappingItem.page.addItem(this._saveInputMappingItem);
  290.          this._videoOptionsItem.page.addItem(this._adjustGammaItem);
  291.          this._videoOptionsItem.page.addItem(this._beginBenchmarkItem);
  292.          this._videoOptionsItem.page.addItem(this._fieldOfViewItem);
  293.          this._videoOptionsItem.page.addItem(this._filmGrainIntensityItem);
  294.          this._videoOptionsItem.page.addItem(this._fullscreenItem);
  295.          this._videoOptionsItem.page.addItem(this._deepColourItem);
  296.          this._videoOptionsItem.page.addItem(this._fullScreenResolution24bppItem);
  297.          this._videoOptionsItem.page.addItem(this._fullScreenResolution30bppItem);
  298.          this._videoOptionsItem.page.addItem(this._windowedResolutionItem);
  299.          this._videoOptionsItem.page.addItem(this._verticalSyncItem);
  300.          this._videoOptionsItem.page.addItem(this._levelOfDetailItem);
  301.          this._videoOptionsItem.page.addItem(this._shadowMapResolutionItem);
  302.          this._videoOptionsItem.page.addItem(this._shadowMappingItem);
  303.          this._videoOptionsItem.page.addItem(this._particlesItem);
  304.          this._videoOptionsItem.page.addItem(this._motionBlurItem);
  305.          this._videoOptionsItem.page.addItem(this._depthOfFieldItem);
  306.          this._videoOptionsItem.page.addItem(this._chromaticAberrationItem);
  307.          this._videoOptionsItem.page.addItem(this._planarReflectionsItem);
  308.          this._videoOptionsItem.page.addItem(this._screenSpaceAmbientOcclusionItem);
  309.          this._videoOptionsItem.page.addItem(this._textureFilteringItem);
  310.          this._videoOptionsItem.page.addItem(this._volumetricLightingItem);
  311.          this._videoOptionsItem.page.addItem(this._antiAliasingItem);
  312.          this._videoOptionsItem.page.addItem(this._stereoModeItem);
  313.          this._audioOptionsItem.page.addItem(this._sfxVolumeItem);
  314.          this._audioOptionsItem.page.addItem(this._musicVolumeItem);
  315.          this._audioOptionsItem.page.addItem(this._subtitlesItem);
  316.          this._audioOptionsItem.page.addItem(this._audioLanguageItem);
  317.          this._audioOptionsItem.page.addItem(this._speakerModeItem);
  318.          this.setSpeakerMode(1);
  319.          this._audioOptionsItem.page.addItem(this._dualShockSpeakerItem);
  320.          this._socialOptionsItem.page.addItem(this._twitterLinkItem);
  321.          this._socialOptionsItem.page.addItem(this._facebookLinkItem);
  322.          this._socialOptionsItem.page.addItem(this._secondScreenItem);
  323.          this._loadGameItem.page.addItem(this._currentCheckpointItem);
  324.          this._loadGameItem.page.addItem(this._previousCheckpointItem);
  325.          this._loadGameItem.page.addItem(this._missionCheckpointsItem);
  326.          this._loadGameItem.page.addItem(this._debugCheckpointsItem);
  327.          this.setIds();
  328.          this.setDescriptions();
  329.          this.setTransitions();
  330.          this.setVisibility();
  331.          this._gameOptionsItem.page.addEventListener(MenuPageEvent.BEFORE_BACK,this.gameOptionsBeforeBackHandler);
  332.          this._videoOptionsItem.page.addEventListener(MenuPageEvent.BEFORE_BACK,this.videoOptionsBeforeBackHandler);
  333.          this._audioOptionsItem.page.addEventListener(MenuPageEvent.BEFORE_BACK,this.audioOptionsBeforeBackHandler);
  334.          this._inputMappingItem.page.addEventListener(MenuPageEvent.BEFORE_BACK,this.inputMappingBeforeBackHandler);
  335.          this.menu.addEventListener(MenuEvent.PAGE_CHANGE,this.menuPageChangeHandler);
  336.          this.menu.addEventListener(IndexEvent.INDEX_CHANGE,this.menuIndexChangeHandler);
  337.       }
  338.      
  339.       protected function call(param1:String, ... rest) : *
  340.       {
  341.          if(rest == null)
  342.          {
  343.             rest = new Array();
  344.          }
  345.          rest.unshift(this._functionPrefix + param1);
  346.          return ExternalInterface.call.apply(null,rest);
  347.       }
  348.      
  349.       public function init_image_substitution(param1:String, param2:Boolean, param3:Boolean) : void
  350.       {
  351.          this._imageSubstitution.register_loaded_callback(this.imageSubstitutionLoadedCallback);
  352.          this._imageSubstitution.initialise(param1,param2,param3,ImageSubstitution.SUBSTITUTION_ACTIONS | ImageSubstitution.SUBSTITUTION_UI | ImageSubstitution.SUBSTITUTION_BUTTONS);
  353.       }
  354.      
  355.       protected function imageSubstitutionLoadedCallback() : void
  356.       {
  357.          this._imageSubstitutionLoaded = true;
  358.          if(this.extras != null)
  359.          {
  360.             this._imageSubstitution.Add_TextField(this.extras.backGlyph);
  361.             this.extras.ready = true;
  362.             this.menu.updateExtrasVisibility();
  363.          }
  364.          if(this.userProfilePanel != null)
  365.          {
  366.             this._imageSubstitution.Add_TextField(this.userProfilePanel.description.textField);
  367.             this.userProfilePanel.visible = this._userProfilePanelVisible;
  368.          }
  369.       }
  370.      
  371.       public function get isTopLevel() : Boolean
  372.       {
  373.          return this.menu.isTopLevel;
  374.       }
  375.      
  376.       public function setQuitGameVisible(param1:Boolean) : void
  377.       {
  378.          this._quitGameItem.visible = param1;
  379.       }
  380.      
  381.       public function setUserProfileVisible(param1:Boolean) : void
  382.       {
  383.          this._userProfilePanelVisible = param1;
  384.          if(this.userProfilePanel != null && Boolean(this._imageSubstitutionLoaded))
  385.          {
  386.             this.userProfilePanel.visible = this._userProfilePanelVisible;
  387.          }
  388.       }
  389.      
  390.       public function setUserProfileName(param1:String) : void
  391.       {
  392.          if(this.userProfilePanel != null)
  393.          {
  394.             this.userProfilePanel.userNameText = param1;
  395.          }
  396.       }
  397.      
  398.       public function setUserProfileDescription(param1:String) : void
  399.       {
  400.          if(this.userProfilePanel != null)
  401.          {
  402.             this.userProfilePanel.descriptionText = param1;
  403.          }
  404.       }
  405.      
  406.       public function setCurrentPage(param1:int, param2:int) : void
  407.       {
  408.          this.menu.setCurrentPage(param1,param2);
  409.       }
  410.      
  411.       public function setItemEnabled(param1:int, param2:Boolean) : void
  412.       {
  413.          this.menu.setItemEnabled(param1,param2);
  414.       }
  415.      
  416.       public function setItemVisible(param1:int, param2:Boolean) : void
  417.       {
  418.          this.menu.setItemVisible(param1,param2);
  419.       }
  420.      
  421.       public function setItemDescription(param1:int, param2:String) : void
  422.       {
  423.          this.menu.setItemDescription(param1,param2);
  424.       }
  425.      
  426.       public function pushItemData(param1:int) : void
  427.       {
  428.          this.menu.pushItemData(param1);
  429.       }
  430.      
  431.       public function popItemData(param1:int) : void
  432.       {
  433.          this.menu.popItemData(param1);
  434.       }
  435.      
  436.       public function setMouseSpeed(param1:Number) : void
  437.       {
  438.          if(!this._mouseSensitivityItem.visible)
  439.          {
  440.             this._mouseSensitivityItem.visible = true;
  441.          }
  442.          this._mouseSensitivityItem.value = param1;
  443.       }
  444.      
  445.       public function setGamepadSpeed(param1:Number) : void
  446.       {
  447.          this._cameraSensitivityItem.value = param1;
  448.       }
  449.      
  450.       public function setInvertXAxis(param1:Boolean) : void
  451.       {
  452.          this._invertXAxisItem.selected = param1;
  453.       }
  454.      
  455.       public function setInvertYAxis(param1:Boolean) : void
  456.       {
  457.          this._invertYAxisItem.selected = param1;
  458.       }
  459.      
  460.       public function setRumble(param1:Boolean) : void
  461.       {
  462.          this._vibrationItem.selected = param1;
  463.       }
  464.      
  465.       public function setHeadTracking(param1:Boolean) : void
  466.       {
  467.          if(!this._headTrackingItem.visible)
  468.          {
  469.             this._headTrackingItem.visible = true;
  470.          }
  471.          this._headTrackingItem.selected = param1;
  472.       }
  473.      
  474.       public function setMovementDetection(param1:Boolean) : void
  475.       {
  476.          if(!this._movementDetectionItem.visible)
  477.          {
  478.             this._movementDetectionItem.visible = true;
  479.          }
  480.          this._movementDetectionItem.selected = param1;
  481.       }
  482.      
  483.       public function setNoiseDetection(param1:Boolean) : void
  484.       {
  485.          if(!this._noiseDetectionItem.visible)
  486.          {
  487.             this._noiseDetectionItem.visible = true;
  488.          }
  489.          this._noiseDetectionItem.selected = param1;
  490.       }
  491.      
  492.       public function setMementoMori(param1:Boolean) : void
  493.       {
  494.          if(!this._mementoMoriItem.visible)
  495.          {
  496.             this._mementoMoriItem.visible = true;
  497.          }
  498.          this._mementoMoriItem.selected = param1;
  499.       }
  500.      
  501.       public function setAimAssist(param1:Boolean) : void
  502.       {
  503.          this._aimAssistItem.selected = param1;
  504.       }
  505.      
  506.       public function setDifficulty(param1:int) : void
  507.       {
  508.          if(param1 != DIFFICULTY_IRON)
  509.          {
  510.             this._difficultyItem.enabled = true;
  511.             this._difficultyItem.selectedItem = param1;
  512.          }
  513.       }
  514.      
  515.       public function setSubtitles(param1:Boolean) : void
  516.       {
  517.          this._subtitlesItem.selected = param1;
  518.       }
  519.      
  520.       public function setMusic(param1:Boolean) : void
  521.       {
  522.          this._musicItem.selected = param1;
  523.       }
  524.      
  525.       public function setCurrentCheckpoint(param1:Boolean, param2:String, param3:String = null) : void
  526.       {
  527.          if(!StringUtil.isEmpty(param3))
  528.          {
  529.             this._currentCheckpointItem.name = param3;
  530.          }
  531.          this._currentCheckpointItem.description = param2;
  532.          this._currentCheckpointItem.visible = param1;
  533.       }
  534.      
  535.       public function setPreviousCheckpoint(param1:Boolean, param2:String, param3:String = null) : void
  536.       {
  537.          if(!StringUtil.isEmpty(param3))
  538.          {
  539.             this._previousCheckpointItem.name = param3;
  540.          }
  541.          this._previousCheckpointItem.description = param2;
  542.          this._previousCheckpointItem.visible = param1;
  543.       }
  544.      
  545.       public function addMissionCheckpoint(param1:String, param2:String, param3:String, param4:int) : void
  546.       {
  547.          var _loc5_:MenuItem = new MenuItem(StringUtil.substr(param1,0,20,true),this.missionCheckpointHandler);
  548.          _loc5_.description = param2;
  549.          _loc5_.data = param3;
  550.          _loc5_.id = new MenuItemId(param4);
  551.          _loc5_.addEventListener(MenuItemEvent.ITEM_SELECT,this.missionCheckpointSelectHandler,false,0,true);
  552.          this._missionCheckpointsItem.page.addItem(_loc5_);
  553.          this.menu.addItemToMap(_loc5_);
  554.       }
  555.      
  556.       public function addDebugCheckpoint(param1:String, param2:String, param3:int) : void
  557.       {
  558.          var _loc4_:MenuItem = new MenuItem(param1,this.debugCheckpointHandler);
  559.          _loc4_.description = param2;
  560.          _loc4_.data = param3;
  561.          this._debugCheckpointsItem.page.addItem(_loc4_);
  562.       }
  563.      
  564.       public function removeMissionCheckpoints() : void
  565.       {
  566.          this._missionCheckpointsItem.page.removeAllItems();
  567.          this.menu.rebuildItemMap();
  568.       }
  569.      
  570.       public function removeDebugCheckpoints() : void
  571.       {
  572.          this._debugCheckpointsItem.page.removeAllItems();
  573.       }
  574.      
  575.       public function setAdvancedVideoOptionsVisible(param1:Boolean) : void
  576.       {
  577.          this._beginBenchmarkItem.visible = param1;
  578.          this._fieldOfViewItem.visible = param1;
  579.          this._fullscreenItem.visible = param1;
  580.          this._deepColourItem.visible = param1;
  581.          this._fullScreenResolution24bppItem.visible = param1;
  582.          this._fullScreenResolution30bppItem.visible = param1;
  583.          this._windowedResolutionItem.visible = param1;
  584.          this._verticalSyncItem.visible = param1;
  585.          this._levelOfDetailItem.visible = param1;
  586.          this._shadowMapResolutionItem.visible = param1;
  587.          this._shadowMappingItem.visible = param1;
  588.          this._particlesItem.visible = param1;
  589.          this._motionBlurItem.visible = param1;
  590.          this._depthOfFieldItem.visible = param1;
  591.          this._chromaticAberrationItem.visible = param1;
  592.          this._planarReflectionsItem.visible = param1;
  593.          this._screenSpaceAmbientOcclusionItem.visible = param1;
  594.          this._textureFilteringItem.visible = param1;
  595.          this._volumetricLightingItem.visible = param1;
  596.          this._antiAliasingItem.visible = param1;
  597.          this._stereoModeItem.visible = param1;
  598.       }
  599.      
  600.       public function setGamepadPresetData(param1:MenuItemDataSequence) : void
  601.       {
  602.          if(param1 != null)
  603.          {
  604.             param1.visualsName = "ControllerMapDiagram";
  605.          }
  606.          this._gamepadPresetItem.itemData = param1;
  607.       }
  608.      
  609.       public function setFieldOfViewData(param1:MenuItemDataSequence) : void
  610.       {
  611.          this._fieldOfViewItem.itemData = param1;
  612.       }
  613.      
  614.       public function setFullscreenData(param1:MenuItemDataSequence) : void
  615.       {
  616.          this._fullscreenItem.itemData = param1;
  617.       }
  618.      
  619.       public function setDeepColourData(param1:MenuItemDataSequence) : void
  620.       {
  621.          this._deepColourItem.itemData = param1;
  622.       }
  623.      
  624.       public function setFullScreenResolution24bppData(param1:MenuItemDataSequence) : void
  625.       {
  626.          this._fullScreenResolution24bppItem.itemData = param1;
  627.       }
  628.      
  629.       public function setFullScreenResolution30bppData(param1:MenuItemDataSequence) : void
  630.       {
  631.          this._fullScreenResolution30bppItem.itemData = param1;
  632.       }
  633.      
  634.       public function setWindowedResolutionData(param1:MenuItemDataSequence) : void
  635.       {
  636.          this._windowedResolutionItem.itemData = param1;
  637.       }
  638.      
  639.       public function setVerticalSyncData(param1:MenuItemDataSequence) : void
  640.       {
  641.          this._verticalSyncItem.itemData = param1;
  642.       }
  643.      
  644.       public function setLevelOfDetailData(param1:MenuItemDataSequence) : void
  645.       {
  646.          this._levelOfDetailItem.itemData = param1;
  647.       }
  648.      
  649.       public function setShadowMapResolutionData(param1:MenuItemDataSequence) : void
  650.       {
  651.          this._shadowMapResolutionItem.itemData = param1;
  652.       }
  653.      
  654.       public function setShadowMappingData(param1:MenuItemDataSequence) : void
  655.       {
  656.          this._shadowMappingItem.itemData = param1;
  657.       }
  658.      
  659.       public function setParticlesData(param1:MenuItemDataSequence) : void
  660.       {
  661.          this._particlesItem.itemData = param1;
  662.       }
  663.      
  664.       public function setMotionBlurData(param1:MenuItemDataSequence) : void
  665.       {
  666.          this._motionBlurItem.itemData = param1;
  667.       }
  668.      
  669.       public function setDepthOfFieldData(param1:MenuItemDataSequence) : void
  670.       {
  671.          this._depthOfFieldItem.itemData = param1;
  672.       }
  673.      
  674.       public function setChromaticAberrationData(param1:MenuItemDataSequence) : void
  675.       {
  676.          this._chromaticAberrationItem.itemData = param1;
  677.       }
  678.      
  679.       public function setPlanarReflectionsData(param1:MenuItemDataSequence) : void
  680.       {
  681.          this._planarReflectionsItem.itemData = param1;
  682.       }
  683.      
  684.       public function setScreenSpaceAmbientOcclusionData(param1:MenuItemDataSequence) : void
  685.       {
  686.          this._screenSpaceAmbientOcclusionItem.itemData = param1;
  687.       }
  688.      
  689.       public function setTextureFilteringData(param1:MenuItemDataSequence) : void
  690.       {
  691.          this._textureFilteringItem.itemData = param1;
  692.       }
  693.      
  694.       public function setVolumetricLightingData(param1:MenuItemDataSequence) : void
  695.       {
  696.          this._volumetricLightingItem.itemData = param1;
  697.       }
  698.      
  699.       public function setAntiAliasingData(param1:MenuItemDataSequence) : void
  700.       {
  701.          this._antiAliasingItem.itemData = param1;
  702.       }
  703.      
  704.       public function setStereoModeData(param1:MenuItemDataSequence) : void
  705.       {
  706.          this._stereoModeItem.itemData = param1;
  707.          this._stereoModeItem.visible = false;
  708.       }
  709.      
  710.       public function setFilmGrainIntensityData(param1:MenuItemDataSequence) : void
  711.       {
  712.          this._filmGrainIntensityItem.itemData = param1;
  713.       }
  714.      
  715.       public function setSfxVolumeData(param1:MenuItemDataSequence) : void
  716.       {
  717.          this._sfxVolumeItem.itemData = param1;
  718.       }
  719.      
  720.       public function setMusicVolumeData(param1:MenuItemDataSequence) : void
  721.       {
  722.          this._musicVolumeItem.itemData = param1;
  723.       }
  724.      
  725.       public function setAudioLanguageData(param1:MenuItemDataSequence) : void
  726.       {
  727.          this._audioLanguageItem.itemData = param1;
  728.          this._audioLanguageItem.visible = false;
  729.       }
  730.      
  731.       public function setSpeakerModeData(param1:MenuItemDataSequence) : void
  732.       {
  733.          this._speakerModeItem.itemData = param1;
  734.       }
  735.      
  736.       public function setDualShockSpeakerData(param1:MenuItemDataSequence) : void
  737.       {
  738.          this._dualShockSpeakerItem.itemData = param1;
  739.       }
  740.      
  741.       public function setGamepadPreset(param1:int) : void
  742.       {
  743.          this._gamepadPresetItem.selectedItem = param1;
  744.       }
  745.      
  746.       public function setFieldOfView(param1:int) : void
  747.       {
  748.          this._fieldOfViewItem.selectedItem = param1;
  749.       }
  750.      
  751.       public function setFullscreen(param1:int) : void
  752.       {
  753.          this._fullscreenItem.selectedItem = param1;
  754.       }
  755.      
  756.       public function setDeepColour(param1:int) : void
  757.       {
  758.          this._deepColourItem.selectedItem = param1;
  759.       }
  760.      
  761.       public function setFullScreenResolution24bpp(param1:int) : void
  762.       {
  763.          this._fullScreenResolution24bppItem.selectedItem = param1;
  764.       }
  765.      
  766.       public function setFullScreenResolution30bpp(param1:int) : void
  767.       {
  768.          this._fullScreenResolution30bppItem.selectedItem = param1;
  769.       }
  770.      
  771.       public function setWindowedResolution(param1:int) : void
  772.       {
  773.          this._windowedResolutionItem.selectedItem = param1;
  774.       }
  775.      
  776.       public function setVerticalSync(param1:int) : void
  777.       {
  778.          this._verticalSyncItem.selectedItem = param1;
  779.       }
  780.      
  781.       public function setLevelOfDetail(param1:int) : void
  782.       {
  783.          this._levelOfDetailItem.selectedItem = param1;
  784.       }
  785.      
  786.       public function setShadowMapResolution(param1:int) : void
  787.       {
  788.          this._shadowMapResolutionItem.selectedItem = param1;
  789.       }
  790.      
  791.       public function setShadowMapping(param1:int) : void
  792.       {
  793.          this._shadowMappingItem.selectedItem = param1;
  794.       }
  795.      
  796.       public function setParticles(param1:int) : void
  797.       {
  798.          this._particlesItem.selectedItem = param1;
  799.       }
  800.      
  801.       public function setMotionBlur(param1:int) : void
  802.       {
  803.          this._motionBlurItem.selectedItem = param1;
  804.       }
  805.      
  806.       public function setDepthOfField(param1:int) : void
  807.       {
  808.          this._depthOfFieldItem.selectedItem = param1;
  809.       }
  810.      
  811.       public function setChromaticAberration(param1:int) : void
  812.       {
  813.          this._chromaticAberrationItem.selectedItem = param1;
  814.       }
  815.      
  816.       public function setPlanarReflections(param1:int) : void
  817.       {
  818.          this._planarReflectionsItem.selectedItem = param1;
  819.       }
  820.      
  821.       public function setScreenSpaceAmbientOcclusion(param1:int) : void
  822.       {
  823.          this._screenSpaceAmbientOcclusionItem.selectedItem = param1;
  824.       }
  825.      
  826.       public function setTextureFiltering(param1:int) : void
  827.       {
  828.          this._textureFilteringItem.selectedItem = param1;
  829.       }
  830.      
  831.       public function setVolumetricLighting(param1:int) : void
  832.       {
  833.          this._volumetricLightingItem.selectedItem = param1;
  834.       }
  835.      
  836.       public function setAntiAliasing(param1:int) : void
  837.       {
  838.          this._antiAliasingItem.selectedItem = param1;
  839.       }
  840.      
  841.       public function setStereoMode(param1:int) : void
  842.       {
  843.          this._stereoModeItem.selectedItem = param1;
  844.       }
  845.      
  846.       public function setFilmGrainIntensity(param1:int) : void
  847.       {
  848.          this._filmGrainIntensityItem.selectedItem = param1;
  849.       }
  850.      
  851.       public function setSfxVolume(param1:int) : void
  852.       {
  853.          this._sfxVolumeItem.selectedItem = param1;
  854.       }
  855.      
  856.       public function setMusicVolume(param1:int) : void
  857.       {
  858.          this._musicVolumeItem.selectedItem = param1;
  859.       }
  860.      
  861.       public function setAudioLanguage(param1:int) : void
  862.       {
  863.          this._audioLanguageItem.selectedItem = param1;
  864.       }
  865.      
  866.       public function setSpeakerMode(param1:int) : void
  867.       {
  868.          this._speakerModeItem.selectedItem = param1;
  869.       }
  870.      
  871.       public function setDualShockSpeaker(param1:int) : void
  872.       {
  873.          this._dualShockSpeakerItem.selectedItem = param1;
  874.       }
  875.      
  876.       public function removeAllInputMappingItems() : void
  877.       {
  878.          this._inputMappingItem.page.removeAllItems();
  879.          this._inputMappingItem.page.addItem(this._resetInputMappingItem);
  880.          this._inputMappingItem.page.addItem(this._cancelInputMappingItem);
  881.          this._inputMappingItem.page.addItem(this._saveInputMappingItem);
  882.       }
  883.      
  884.       public function addInputMappingItem(param1:MenuItemDataButton, param2:int) : void
  885.       {
  886.          var _loc3_:MenuItemOptionInputMapper = null;
  887.          if(param1 != null)
  888.          {
  889.             if(!this._inputMappingItem.visible)
  890.             {
  891.                this._inputMappingItem.visible = true;
  892.             }
  893.             _loc3_ = new MenuItemOptionInputMapper(param1.name,param1.label,this.inputMappingItemPressHandler);
  894.             _loc3_.itemData = param1;
  895.             _loc3_.data = param2;
  896.             this._inputMappingItem.page.addItem(_loc3_,true);
  897.          }
  898.       }
  899.      
  900.       public function setInputMappingItemLabel(param1:int, param2:String) : void
  901.       {
  902.          var _loc3_:MenuItemOptionInputMapper = MenuItemOptionInputMapper.getById(param1);
  903.          if(_loc3_ != null)
  904.          {
  905.             _loc3_.label = param2;
  906.          }
  907.       }
  908.      
  909.       public function setSelectedInputMappingItemLabel(param1:String) : void
  910.       {
  911.          if(MenuItemOptionInputMapper.selectedInputMapper != null)
  912.          {
  913.             MenuItemOptionInputMapper.selectedInputMapper.label = param1;
  914.          }
  915.       }
  916.      
  917.       public function setSelectedInputMappingItemUnselect() : void
  918.       {
  919.          if(MenuItemOptionInputMapper.selectedInputMapper != null)
  920.          {
  921.             MenuItemOptionInputMapper.selectedInputMapper.selected = false;
  922.          }
  923.       }
  924.      
  925.       public function playBackgroundMovies() : void
  926.       {
  927.          this.menu.playBackgroundMovies();
  928.       }
  929.      
  930.       public function stopBackgroundMovies() : void
  931.       {
  932.          this.menu.stopBackgroundMovies();
  933.       }
  934.      
  935.       public function showRootPage() : void
  936.       {
  937.          this.menu.showRootPage();
  938.       }
  939.      
  940.       private function quitGameHandler(param1:MenuItemEvent) : void
  941.       {
  942.          this.call("request_quit_game");
  943.       }
  944.      
  945.       private function helpHandler(param1:MenuItemEvent) : void
  946.       {
  947.          this.call("show_help");
  948.       }
  949.      
  950.       protected function mouseSensitivityValueChangeHandler(param1:MenuItemEvent) : void
  951.       {
  952.          this.call("set_mouse_speed",this._mouseSensitivityItem.value);
  953.       }
  954.      
  955.       protected function cameraSensitivityValueChangeHandler(param1:MenuItemEvent) : void
  956.       {
  957.          this.call("set_gamepad_speed",this._cameraSensitivityItem.value);
  958.       }
  959.      
  960.       protected function invertXAxisSelectHandler(param1:MenuItemEvent) : void
  961.       {
  962.          this.call("set_invert_x_axis",this._invertXAxisItem.selected);
  963.       }
  964.      
  965.       protected function invertYAxisSelectHandler(param1:MenuItemEvent) : void
  966.       {
  967.          this.call("set_invert_y_axis",this._invertYAxisItem.selected);
  968.       }
  969.      
  970.       protected function vibrationSelectHandler(param1:MenuItemEvent) : void
  971.       {
  972.          this.call("set_rumble",this._vibrationItem.selected);
  973.       }
  974.      
  975.       protected function difficultyIndexChangeHandler(param1:MenuItemEvent) : void
  976.       {
  977.          this._difficultyItem.enabled = false;
  978.          this.call("request_set_difficulty",this._difficultyItem.selectedItem);
  979.       }
  980.      
  981.       protected function headTrackingSelectHandler(param1:MenuItemEvent) : void
  982.       {
  983.          this.call("set_head_tracking",this._headTrackingItem.selected);
  984.       }
  985.      
  986.       protected function movementDetectionSelectHandler(param1:MenuItemEvent) : void
  987.       {
  988.          this.call("set_movement_detection",this._movementDetectionItem.selected);
  989.       }
  990.      
  991.       protected function noiseDetectionSelectHandler(param1:MenuItemEvent) : void
  992.       {
  993.          this.call("set_noise_detection",this._noiseDetectionItem.selected);
  994.       }
  995.      
  996.       protected function mementoMoriSelectHandler(param1:MenuItemEvent) : void
  997.       {
  998.          this.call("set_memento_mori",this._mementoMoriItem.selected);
  999.       }
  1000.      
  1001.       protected function aimAssistSelectHandler(param1:MenuItemEvent) : void
  1002.       {
  1003.          this.call("set_aim_assist",this._aimAssistItem.selected);
  1004.       }
  1005.      
  1006.       protected function gamepadPresetIndexChangeHandler() : void
  1007.       {
  1008.          this.call("set_gamepad_preset",this._gamepadPresetItem.selectedItem);
  1009.       }
  1010.      
  1011.       protected function inputMappingItemPressHandler(param1:MenuItemEvent) : void
  1012.       {
  1013.          var _loc2_:MenuItemOptionInputMapper = param1.item as MenuItemOptionInputMapper;
  1014.          if(_loc2_.selected)
  1015.          {
  1016.             this.call("start_listening_for_input_mapping_changes",_loc2_.data as int);
  1017.          }
  1018.       }
  1019.      
  1020.       protected function resetInputMappingHandler(param1:MenuItemEvent) : void
  1021.       {
  1022.          this.call("reset_input_mapping_to_defaults");
  1023.       }
  1024.      
  1025.       protected function cancelInputMappingHandler(param1:MenuItemEvent) : void
  1026.       {
  1027.          this.call("cancel_input_mapping_changes");
  1028.          this.menu.back(false);
  1029.       }
  1030.      
  1031.       protected function saveInputMappingHandler(param1:MenuItemEvent) : void
  1032.       {
  1033.          this.call("save_input_mapping_changes");
  1034.          this.menu.back(false);
  1035.       }
  1036.      
  1037.       protected function adjustGammaHandler(param1:MenuItemEvent) : void
  1038.       {
  1039.          this.call("show_gamma_screen");
  1040.       }
  1041.      
  1042.       protected function fieldOfViewIndexChangeHandler(param1:MenuItemEvent) : void
  1043.       {
  1044.          this.call("set_field_of_view",this._fieldOfViewItem.selectedItem);
  1045.       }
  1046.      
  1047.       protected function fullscreenIndexChangeHandler(param1:MenuItemEvent) : void
  1048.       {
  1049.          this.call("set_fullscreen",this._fullscreenItem.selectedItem);
  1050.       }
  1051.      
  1052.       protected function deepColourIndexChangeHandler(param1:MenuItemEvent) : void
  1053.       {
  1054.          this.call("set_deep_colour",this._deepColourItem.selectedItem);
  1055.       }
  1056.      
  1057.       protected function fullScreenResolution24bppIndexChangeHandler(param1:MenuItemEvent) : void
  1058.       {
  1059.          this.call("set_fullScreen_resolution_24bpp",this._fullScreenResolution24bppItem.selectedItem);
  1060.       }
  1061.      
  1062.       protected function fullScreenResolution30bppIndexChangeHandler(param1:MenuItemEvent) : void
  1063.       {
  1064.          this.call("set_fullScreen_resolution_30bpp",this._fullScreenResolution30bppItem.selectedItem);
  1065.       }
  1066.      
  1067.       protected function windowedResolutionIndexChangeHandler(param1:MenuItemEvent) : void
  1068.       {
  1069.          this.call("set_windowed_resolution",this._windowedResolutionItem.selectedItem);
  1070.       }
  1071.      
  1072.       protected function verticalSyncIndexChangeHandler(param1:MenuItemEvent) : void
  1073.       {
  1074.          this.call("set_vertical_sync",this._verticalSyncItem.selectedItem);
  1075.       }
  1076.      
  1077.       protected function levelOfDetailIndexChangeHandler(param1:MenuItemEvent) : void
  1078.       {
  1079.          this.call("set_level_of_detail",this._levelOfDetailItem.selectedItem);
  1080.       }
  1081.      
  1082.       protected function shadowMapResolutionIndexChangeHandler(param1:MenuItemEvent) : void
  1083.       {
  1084.          this.call("set_shadow_map_resolution",this._shadowMapResolutionItem.selectedItem);
  1085.       }
  1086.      
  1087.       protected function shadowMappingIndexChangeHandler(param1:MenuItemEvent) : void
  1088.       {
  1089.          this.call("set_shadow_mapping",this._shadowMappingItem.selectedItem);
  1090.       }
  1091.      
  1092.       protected function particlesIndexChangeHandler(param1:MenuItemEvent) : void
  1093.       {
  1094.          this.call("set_particles",this._particlesItem.selectedItem);
  1095.       }
  1096.      
  1097.       protected function motionBlurIndexChangeHandler(param1:MenuItemEvent) : void
  1098.       {
  1099.          this.call("set_motion_blur",this._motionBlurItem.selectedItem);
  1100.       }
  1101.      
  1102.       protected function depthOfFieldIndexChangeHandler(param1:MenuItemEvent) : void
  1103.       {
  1104.          this.call("set_depth_of_field",this._depthOfFieldItem.selectedItem);
  1105.       }
  1106.      
  1107.       protected function chromaticAberrationIndexChangeHandler(param1:MenuItemEvent) : void
  1108.       {
  1109.          this.call("set_chromatic_aberration",this._chromaticAberrationItem.selectedItem);
  1110.       }
  1111.      
  1112.       protected function planarReflectionsIndexChangeHandler(param1:MenuItemEvent) : void
  1113.       {
  1114.          this.call("set_planar_reflections",this._planarReflectionsItem.selectedItem);
  1115.       }
  1116.      
  1117.       protected function screenSpaceAmbientOcclusionIndexChangeHandler(param1:MenuItemEvent) : void
  1118.       {
  1119.          this.call("set_screen_space_ambient_occlusion",this._screenSpaceAmbientOcclusionItem.selectedItem);
  1120.       }
  1121.      
  1122.       protected function textureFilteringIndexChangeHandler(param1:MenuItemEvent) : void
  1123.       {
  1124.          this.call("set_texture_filtering",this._textureFilteringItem.selectedItem);
  1125.       }
  1126.      
  1127.       protected function volumetricLightingIndexChangeHandler(param1:MenuItemEvent) : void
  1128.       {
  1129.          this.call("set_volumetric_lighting",this._volumetricLightingItem.selectedItem);
  1130.       }
  1131.      
  1132.       protected function antiAliasingIndexChangeHandler(param1:MenuItemEvent) : void
  1133.       {
  1134.          this.call("set_anti_aliasing",this._antiAliasingItem.selectedItem);
  1135.       }
  1136.      
  1137.       protected function stereoModeIndexChangeHandler(param1:MenuItemEvent) : void
  1138.       {
  1139.          this.call("set_stereo_mode",this._stereoModeItem.selectedItem);
  1140.       }
  1141.      
  1142.       protected function filmGrainIntensityIndexChangeHandler(param1:MenuItemEvent) : void
  1143.       {
  1144.          this.call("set_film_grain_intensity",this._filmGrainIntensityItem.selectedItem);
  1145.       }
  1146.      
  1147.       protected function applyVideoOptionsHandler(param1:MenuItemEvent) : void
  1148.       {
  1149.          this.call("save_engine_settings");
  1150.          this.menu.back(false);
  1151.       }
  1152.      
  1153.       protected function sfxVolumeIndexChangeHandler(param1:MenuItemEvent) : void
  1154.       {
  1155.          this.call("set_sfx_volume",this._sfxVolumeItem.selectedItem);
  1156.       }
  1157.      
  1158.       protected function musicVolumeIndexChangeHandler(param1:MenuItemEvent) : void
  1159.       {
  1160.          this.call("set_music_volume",this._musicVolumeItem.selectedItem);
  1161.       }
  1162.      
  1163.       protected function subtitlesSelectHandler(param1:MenuItemEvent) : void
  1164.       {
  1165.          this.call("set_subtitles",this._subtitlesItem.selected);
  1166.       }
  1167.      
  1168.       protected function musicSelectHandler(param1:MenuItemEvent) : void
  1169.       {
  1170.          this.call("set_music",this._musicItem.selected);
  1171.       }
  1172.      
  1173.       protected function audioLanguageIndexChangeHandler(param1:MenuItemEvent) : void
  1174.       {
  1175.          this.call("set_audio_language",this._audioLanguageItem.selectedItem);
  1176.       }
  1177.      
  1178.       protected function speakerModeIndexChangeHandler(param1:MenuItemEvent) : void
  1179.       {
  1180.          this.call("set_speaker_mode",this._speakerModeItem.selectedItem);
  1181.       }
  1182.      
  1183.       protected function dualShockSpeakerIndexChangeHandler(param1:MenuItemEvent) : void
  1184.       {
  1185.          this.call("set_dualshock_speaker",this._dualShockSpeakerItem.selectedItem);
  1186.       }
  1187.      
  1188.       protected function currentCheckpointHandler(param1:MenuItemEvent) : void
  1189.       {
  1190.          this.call("request_load_current_checkpoint");
  1191.       }
  1192.      
  1193.       protected function previousCheckpointHandler(param1:MenuItemEvent) : void
  1194.       {
  1195.          this.call("request_load_previous_checkpoint");
  1196.       }
  1197.      
  1198.       protected function missionCheckpointsHandler(param1:MenuPageEvent) : void
  1199.       {
  1200.          this.call("update_mission_checkpoints");
  1201.       }
  1202.      
  1203.       protected function debugCheckpointsHandler(param1:MenuPageEvent) : void
  1204.       {
  1205.          this.call("update_debug_checkpoints");
  1206.       }
  1207.      
  1208.       protected function missionCheckpointHandler(param1:MenuItemEvent) : void
  1209.       {
  1210.          this.call("request_load_checkpoint",param1.item.data as String);
  1211.       }
  1212.      
  1213.       protected function missionCheckpointSelectHandler(param1:MenuItemEvent) : void
  1214.       {
  1215.          this.call("cache_checkpoint",param1.item.data as String);
  1216.       }
  1217.      
  1218.       protected function debugCheckpointHandler(param1:MenuItemEvent) : void
  1219.       {
  1220.          this.call("jump_to_debug_checkpoint",param1.item.data as int);
  1221.       }
  1222.      
  1223.       protected function loadGameHandler(param1:MenuPageEvent) : void
  1224.       {
  1225.          this.call("update_current_checkpoint");
  1226.          this.call("update_previous_checkpoint");
  1227.       }
  1228.      
  1229.       protected function videoOptionsBeforeBackHandler(param1:MenuPageEvent) : void
  1230.       {
  1231.          this.call("request_save_engine_settings");
  1232.       }
  1233.      
  1234.       protected function audioOptionsBeforeBackHandler(param1:MenuPageEvent) : void
  1235.       {
  1236.          this.call("save_engine_settings");
  1237.       }
  1238.      
  1239.       protected function gameOptionsBeforeBackHandler(param1:MenuPageEvent) : void
  1240.       {
  1241.          this.call("save_game_settings");
  1242.       }
  1243.      
  1244.       protected function inputMappingBeforeBackHandler(param1:MenuPageEvent) : void
  1245.       {
  1246.          this.call("request_save_input_mapping_changes");
  1247.       }
  1248.      
  1249.       protected function menuPageChangeHandler(param1:MenuEvent) : void
  1250.       {
  1251.          this.call("on_page_changed",param1.page.id.value);
  1252.          this.call("refresh_profile_picture");
  1253.       }
  1254.      
  1255.       protected function menuIndexChangeHandler(param1:IndexEvent) : void
  1256.       {
  1257.          this.call("on_item_selected",param1.index);
  1258.       }
  1259.      
  1260.       protected function difficultyPopUpOkHandler(param1:PopUpEvent) : void
  1261.       {
  1262.          this.call("set_difficulty",this._difficultyItem.selectedItem);
  1263.       }
  1264.      
  1265.       protected function difficultyPopUpCloseHandler(param1:PopUpEvent) : void
  1266.       {
  1267.          this._difficultyItem.selectedIndex = this._difficultyItem.prevSelectedIndex;
  1268.       }
  1269.      
  1270.       protected function previousCheckpointPopUpOkHandler(param1:PopUpEvent) : void
  1271.       {
  1272.          this.call("load_previous_checkpoint");
  1273.       }
  1274.      
  1275.       protected function missionCheckpointPopUpOkHandler(param1:PopUpEvent) : void
  1276.       {
  1277.          this.call("load_checkpoint",param1.data as String);
  1278.       }
  1279.      
  1280.       protected function backToFrontendHandler(param1:MenuItemEvent) : void
  1281.       {
  1282.          this.call("request_back_to_frontend");
  1283.       }
  1284.      
  1285.       protected function setIds() : void
  1286.       {
  1287.          this._currentCheckpointItem.id = MenuItemId.RESTART_CURR_CHECKPOINT;
  1288.          this._previousCheckpointItem.id = MenuItemId.RESTART_PREV_CHECKPOINT;
  1289.          this._missionCheckpointsItem.id = MenuItemId.LOAD_MISSION_CHECKPOINT;
  1290.          this._loadGameItem.id = MenuItemId.LOAD_GAME;
  1291.          this._helpItem.id = MenuItemId.HELP;
  1292.          this._backToFrontendItem.id = MenuItemId.BACK_TO_FRONTEND;
  1293.          this._difficultyItem.id = MenuItemId.DIFFICULTY;
  1294.          this._debugCheckpointsItem.id = MenuItemId.DEBUG_CHECKPOINTS;
  1295.          this._optionsItem.page.id = MenuPageId.OPTIONS;
  1296.          this._gameOptionsItem.page.id = MenuPageId.GAME_OPTIONS;
  1297.          this._videoOptionsItem.page.id = MenuPageId.VIDEO_OPTIONS;
  1298.          this._audioOptionsItem.page.id = MenuPageId.AUDIO_OPTIONS;
  1299.          this._inputMappingItem.page.id = MenuPageId.INPUT_MAPPING;
  1300.          this._missionCheckpointsItem.page.id = MenuPageId.MISSION_CHECKPOINTS;
  1301.          this._debugCheckpointsItem.page.id = MenuPageId.DEBUG_CHECKPOINTS;
  1302.          this._loadGameItem.page.id = MenuPageId.LOAD_GAME;
  1303.       }
  1304.      
  1305.       protected function setDescriptions() : void
  1306.       {
  1307.          this._difficultyItem.descriptions = ["AI_UI_MENU_DIFF_DESC_NOVICE","AI_UI_MENU_DIFF_DESC_EASY","AI_UI_MENU_DIFF_DESC_MEDIUM","AI_UI_MENU_DIFF_DESC_HARD"];
  1308.          this._optionsItem.description = "AI_UI_MENU_OPTIONS_DESC";
  1309.          this._quitGameItem.description = "AI_UI_MENU_QUIT_GAME_DESC";
  1310.          this._helpItem.description = "AI_UI_MENU_HELP_DESC";
  1311.          this._backToFrontendItem.description = "AI_UI_PAUSE_TO_FRONTEND_DESC";
  1312.          this._gameOptionsItem.description = "AI_UI_MENU_GAME_DESC";
  1313.          this._videoOptionsItem.description = "AI_UI_MENU_VIDEO_DESC";
  1314.          this._audioOptionsItem.description = "AI_UI_MENU_AUDIO_DESC";
  1315.          this._controllerOptionsItem.description = "AI_UI_MENU_GAMEPAD_PRESET";
  1316.          this._mouseSensitivityItem.description = "AI_UI_MENU_MOUSE_SPEED_DESC";
  1317.          this._cameraSensitivityItem.description = "AI_UI_MENU_CAMERA_SPEED_DESC";
  1318.          this._invertXAxisItem.description = "AI_UI_MENU_INVERT_X_DESC";
  1319.          this._invertYAxisItem.description = "AI_UI_MENU_INVERT_Y_DESC";
  1320.          this._aimAssistItem.description = "AI_UI_MENU_AIM_ASSIST_DESC";
  1321.          this._vibrationItem.description = "AI_UI_MENU_VIBRATION_DESC";
  1322.          this._gamepadPresetItem.description = "AI_UI_MENU_MOVEMENT_DETECTION_DESC";
  1323.          this._inputMappingItem.description = "AI_UI_MENU_INPUT_MAPPING_DESC";
  1324.          this._headTrackingItem.description = "AI_UI_MENU_HEAD_TRACKING_DESC";
  1325.          this._movementDetectionItem.description = "AI_UI_MENU_MOVEMENT_DETECTION_DESC";
  1326.          this._noiseDetectionItem.description = "AI_UI_MENU_NOISE_DETECTION_DESC";
  1327.          this._mementoMoriItem.description = "AI_UI_MENU_MEMENTO_MORI_DESC";
  1328.          this._headTrackingItem.visualsName = "HeadTrackingDiagram";
  1329.          this._movementDetectionItem.visualsName = "MovementDetectionDiagram";
  1330.          this._noiseDetectionItem.visualsName = "NoiseDetectionDiagram";
  1331.          this._mementoMoriItem.visualsName = "MementoMoriDiagram";
  1332.          this._adjustGammaItem.description = "AI_UI_MENU_GAMMA_DESC";
  1333.          this._applyVideoOptionsItem.description = "AI_UI_MENU_VIDEO_APPLY_DESC";
  1334.          this._subtitlesItem.description = "AI_UI_MENU_SUBTITLES_DESC";
  1335.          this._musicItem.description = "AI_UI_MENU_MUSIC";
  1336.          this._missionCheckpointsItem.description = "AI_UI_MENU_LOAD_MISSION_CHECKPOINT_DESC";
  1337.          this._loadGameItem.description = "AI_UI_MENU_LOAD_GAME_DESC";
  1338.       }
  1339.      
  1340.       protected function setTransitions() : void
  1341.       {
  1342.          this._optionsItem.page.transitionLabel = "test_transition";
  1343.          this._gameOptionsItem.page.transitionLabel = "test_transition";
  1344.          this._videoOptionsItem.page.transitionLabel = "test_transition";
  1345.       }
  1346.      
  1347.       protected function setVisibility() : void
  1348.       {
  1349.          this.setAdvancedVideoOptionsVisible(true);
  1350.          this._quitGameItem.visible = true;
  1351.          this._helpItem.visible = true;
  1352.          this._inputMappingItem.visible = true;
  1353.          this._mouseSensitivityItem.visible = true;
  1354.          this._headTrackingItem.visible = true;
  1355.          this._movementDetectionItem.visible = true;
  1356.          this._noiseDetectionItem.visible = true;
  1357.          this._mementoMoriItem.visible = true;
  1358.          this._dualShockSpeakerItem.visible = true;
  1359.          this._debugCheckpointsItem.visible = true;
  1360.       }
  1361.    }
  1362. }
Advertisement
Add Comment
Please, Sign In to add comment