Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package frontend
- {
- import display.MovieClipEx;
- import frontend.menu.Menu;
- import frontend.menu.MenuParent;
- import frontend.menu.MenuDescription;
- import frontend.menu.MenuTransitions;
- import frontend.menu.MenuExtras;
- import components.UserProfilePanel;
- import frontend.menu.MenuItemExpandable;
- import frontend.menu.MenuItem;
- import frontend.menu.MenuItemOptionSlider;
- import frontend.menu.MenuItemOptionCheckBox;
- import frontend.menu.MenuItemOptionOptionStepper;
- import flash.external.ExternalInterface;
- import utils.StringUtil;
- import frontend.enum.MenuItemId;
- import frontend.events.MenuItemEvent;
- import frontend.menu.MenuItemDataSequence;
- import frontend.menu.MenuItemData;
- import frontend.menu.MenuItemDataButton;
- import frontend.menu.MenuItemOptionInputMapper;
- import frontend.events.MenuPageEvent;
- import frontend.events.MenuEvent;
- import scaleform.clik.events.IndexEvent;
- import events.PopUpEvent;
- import frontend.enum.MenuPageId;
- public class GameMenu extends MovieClipEx
- {
- public static const DIFFICULTY_EASY:int = 0;
- public static const DIFFICULTY_MEDIUM:int = 1;
- public static const DIFFICULTY_HARD:int = 2;
- public static const DIFFICULTY_IRON:int = 3;
- public static const DIFFICULTY_NOVICE:int = 4;
- public static const PLATFORM_DURANGO:int = 0;
- public static const PLATFORM_ORBIS:int = 1;
- public static const PLATFORM_PS3:int = 2;
- public static const PLATFORM_360:int = 3;
- public static const PLATFORM_PC:int = 4;
- public var menu:Menu;
- public var menuParent:MenuParent;
- public var description:MenuDescription;
- public var transitions:MenuTransitions;
- public var extras:MenuExtras;
- public var moviePlayer:frontend.FrontEndMoviePlayer;
- public var userProfilePanel:UserProfilePanel;
- private var _userProfilePanelVisible:Boolean;
- private var _imageSubstitutionLoaded:Boolean;
- private var _functionPrefix:String;
- protected var _imageSubstitution:ImageSubstitution;
- protected var _optionsItem:MenuItemExpandable;
- protected var _quitGameItem:MenuItem;
- protected var _helpItem:MenuItem;
- protected var _backToFrontendItem:MenuItem;
- protected var _gameOptionsItem:MenuItemExpandable;
- protected var _videoOptionsItem:MenuItemExpandable;
- protected var _audioOptionsItem:MenuItemExpandable;
- protected var _socialOptionsItem:MenuItemExpandable;
- protected var _controllerOptionsItem:MenuItemExpandable;
- protected var _mouseSensitivityItem:MenuItemOptionSlider;
- protected var _cameraSensitivityItem:MenuItemOptionSlider;
- protected var _invertXAxisItem:MenuItemOptionCheckBox;
- protected var _invertYAxisItem:MenuItemOptionCheckBox;
- protected var _vibrationItem:MenuItemOptionCheckBox;
- protected var _headTrackingItem:MenuItemOptionCheckBox;
- protected var _movementDetectionItem:MenuItemOptionCheckBox;
- protected var _noiseDetectionItem:MenuItemOptionCheckBox;
- protected var _mementoMoriItem:MenuItemOptionCheckBox;
- protected var _aimAssistItem:MenuItemOptionCheckBox;
- protected var _difficultyItem:MenuItemOptionOptionStepper;
- protected var _inputMappingItem:MenuItemExpandable;
- protected var _gamepadPresetItem:MenuItemOptionOptionStepper;
- protected var _resetInputMappingItem:MenuItem;
- protected var _cancelInputMappingItem:MenuItem;
- protected var _saveInputMappingItem:MenuItem;
- protected var _adjustGammaItem:MenuItem;
- protected var _beginBenchmarkItem:MenuItem;
- protected var _fieldOfViewItem:MenuItemOptionSlider;
- protected var _fullscreenItem:MenuItemOptionOptionStepper;
- protected var _deepColourItem:MenuItemOptionOptionStepper;
- protected var _fullScreenResolution24bppItem:MenuItemOptionOptionStepper;
- protected var _fullScreenResolution30bppItem:MenuItemOptionOptionStepper;
- protected var _windowedResolutionItem:MenuItemOptionOptionStepper;
- protected var _verticalSyncItem:MenuItemOptionOptionStepper;
- protected var _levelOfDetailItem:MenuItemOptionOptionStepper;
- protected var _shadowMapResolutionItem:MenuItemOptionOptionStepper;
- protected var _shadowMappingItem:MenuItemOptionOptionStepper;
- protected var _particlesItem:MenuItemOptionOptionStepper;
- protected var _motionBlurItem:MenuItemOptionOptionStepper;
- protected var _depthOfFieldItem:MenuItemOptionOptionStepper;
- protected var _chromaticAberrationItem:MenuItemOptionOptionStepper;
- protected var _planarReflectionsItem:MenuItemOptionOptionStepper;
- protected var _screenSpaceAmbientOcclusionItem:MenuItemOptionOptionStepper;
- protected var _textureFilteringItem:MenuItemOptionOptionStepper;
- protected var _volumetricLightingItem:MenuItemOptionOptionStepper;
- protected var _antiAliasingItem:MenuItemOptionOptionStepper;
- protected var _stereoModeItem:MenuItemOptionOptionStepper;
- protected var _filmGrainIntensityItem:MenuItemOptionSlider;
- protected var _applyVideoOptionsItem:MenuItem;
- protected var _sfxVolumeItem:MenuItemOptionSlider;
- protected var _musicVolumeItem:MenuItemOptionSlider;
- protected var _subtitlesItem:MenuItemOptionCheckBox;
- protected var _musicItem:MenuItemOptionCheckBox;
- protected var _audioLanguageItem:MenuItemOptionOptionStepper;
- protected var _speakerModeItem:MenuItemOptionOptionStepper;
- protected var _dualShockSpeakerItem:MenuItemOptionOptionStepper;
- protected var _twitterLinkItem:MenuItemOptionCheckBox;
- protected var _facebookLinkItem:MenuItemOptionCheckBox;
- protected var _secondScreenItem:MenuItem;
- protected var _currentCheckpointItem:MenuItem;
- protected var _previousCheckpointItem:MenuItem;
- protected var _missionCheckpointsItem:MenuItemExpandable;
- protected var _debugCheckpointsItem:MenuItemExpandable;
- protected var _loadGameItem:MenuItemExpandable;
- public function GameMenu(param1:String)
- {
- this._imageSubstitution = new ImageSubstitution();
- this._optionsItem = new MenuItemExpandable("AI_UI_MENU_OPTIONS");
- this._quitGameItem = new MenuItem("AI_UI_MENU_QUIT_GAME",this.quitGameHandler);
- this._helpItem = new MenuItem("AI_UI_MENU_HELP",this.helpHandler);
- this._backToFrontendItem = new MenuItem("AI_UI_PAUSE_TO_FRONTEND",this.backToFrontendHandler);
- this._gameOptionsItem = new MenuItemExpandable("AI_UI_MENU_GAME");
- this._videoOptionsItem = new MenuItemExpandable("AI_UI_MENU_VIDEO");
- this._audioOptionsItem = new MenuItemExpandable("AI_UI_MENU_AUDIO");
- this._socialOptionsItem = new MenuItemExpandable("AI_UI_MENU_SOCIAL");
- this._controllerOptionsItem = new MenuItemExpandable("AI_UI_MENU_GAMEPAD_PRESET");
- this._mouseSensitivityItem = new MenuItemOptionSlider("AI_UI_MENU_MOUSE_SPEED",null,this.mouseSensitivityValueChangeHandler,false,0,2);
- this._cameraSensitivityItem = new MenuItemOptionSlider("AI_UI_MENU_CAMERA_SPEED",null,this.cameraSensitivityValueChangeHandler,false,0,2);
- this._invertXAxisItem = new MenuItemOptionCheckBox("AI_UI_MENU_INVERT_X",true,null,this.invertXAxisSelectHandler);
- this._invertYAxisItem = new MenuItemOptionCheckBox("AI_UI_MENU_INVERT_Y",true,null,this.invertYAxisSelectHandler);
- this._vibrationItem = new MenuItemOptionCheckBox("AI_UI_MENU_VIBRATION",true,null,this.vibrationSelectHandler);
- this._headTrackingItem = new MenuItemOptionCheckBox("AI_UI_MENU_HEAD_TRACKING",true,null,this.headTrackingSelectHandler);
- this._movementDetectionItem = new MenuItemOptionCheckBox("AI_UI_MENU_MOVEMENT_DETECTION",true,null,this.movementDetectionSelectHandler);
- this._noiseDetectionItem = new MenuItemOptionCheckBox("AI_UI_MENU_NOISE_DETECTION",true,null,this.noiseDetectionSelectHandler);
- this._mementoMoriItem = new MenuItemOptionCheckBox("AI_UI_MENU_MEMENTO_MORI",true,null,this.mementoMoriSelectHandler);
- this._aimAssistItem = new MenuItemOptionCheckBox("AI_UI_MENU_AIM_ASSIST",true,null,this.aimAssistSelectHandler);
- 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);
- this._inputMappingItem = new MenuItemExpandable("AI_UI_MENU_INPUT_MAPPING");
- this._gamepadPresetItem = new MenuItemOptionOptionStepper("AI_UI_MENU_GAMEPAD_PRESET",null,null,this.gamepadPresetIndexChangeHandler);
- this._resetInputMappingItem = new MenuItem("AI_UI_MENU_INPUT_RESET",this.resetInputMappingHandler);
- this._cancelInputMappingItem = new MenuItem("AI_UI_MENU_INPUT_CANCEL",this.cancelInputMappingHandler);
- this._saveInputMappingItem = new MenuItem("AI_UI_MENU_INPUT_SAVE",this.saveInputMappingHandler);
- this._adjustGammaItem = new MenuItem("AI_UI_MENU_GAMMA",this.adjustGammaHandler);
- this._beginBenchmarkItem = new MenuItem("AI_UI_MENU_BENCHMARK");
- this._fieldOfViewItem = new MenuItemOptionSlider("AI_UI_MENU_FIELD_OF_VIEW",null,this.fieldOfViewIndexChangeHandler,true,MenuItemOptionSlider.MINIMUM_DEFAULT,MenuItemOptionSlider.MAXIMUM_DEFAULT,true);
- this._fullscreenItem = new MenuItemOptionOptionStepper("AI_UI_MENU_FULLSCREEN",null,null,this.fullscreenIndexChangeHandler);
- this._deepColourItem = new MenuItemOptionOptionStepper("AI_UI_MENU_DEEP_COLOUR",null,null,this.deepColourIndexChangeHandler);
- this._fullScreenResolution24bppItem = new MenuItemOptionOptionStepper("AI_UI_MENU_FULLSCREEN_RES",null,null,this.fullScreenResolution24bppIndexChangeHandler);
- this._fullScreenResolution30bppItem = new MenuItemOptionOptionStepper("AI_UI_MENU_FULLSCREEN_RES",null,null,this.fullScreenResolution30bppIndexChangeHandler);
- this._windowedResolutionItem = new MenuItemOptionOptionStepper("AI_UI_MENU_WINDOW_RES",null,null,this.windowedResolutionIndexChangeHandler);
- this._verticalSyncItem = new MenuItemOptionOptionStepper("AI_UI_MENU_VERTICAL_SYNC",null,null,this.verticalSyncIndexChangeHandler);
- this._levelOfDetailItem = new MenuItemOptionOptionStepper("AI_UI_MENU_LEVEL_OF_DETAIL",null,null,this.levelOfDetailIndexChangeHandler);
- this._shadowMapResolutionItem = new MenuItemOptionOptionStepper("AI_UI_MENU_SHADOW_MAP_RESOLUTION",null,null,this.shadowMapResolutionIndexChangeHandler);
- this._shadowMappingItem = new MenuItemOptionOptionStepper("AI_UI_MENU_SHADOW_MAPPING",null,null,this.shadowMappingIndexChangeHandler);
- this._particlesItem = new MenuItemOptionOptionStepper("AI_UI_MENU_PARTICLES",null,null,this.particlesIndexChangeHandler);
- this._motionBlurItem = new MenuItemOptionOptionStepper("AI_UI_MENU_MOTION_BLUR",null,null,this.motionBlurIndexChangeHandler);
- this._depthOfFieldItem = new MenuItemOptionOptionStepper("AI_UI_MENU_DEPTH_OF_FIELD",null,null,this.depthOfFieldIndexChangeHandler);
- this._chromaticAberrationItem = new MenuItemOptionOptionStepper("AI_UI_MENU_CHROMATIC_ABERRATION",null,null,this.chromaticAberrationIndexChangeHandler);
- this._planarReflectionsItem = new MenuItemOptionOptionStepper("AI_UI_MENU_PLANAR_REFLECTIONS",null,null,this.planarReflectionsIndexChangeHandler);
- this._screenSpaceAmbientOcclusionItem = new MenuItemOptionOptionStepper("AI_UI_MENU_SCREEN_SPACE_AMBIENT_OCCLUSION",null,null,this.screenSpaceAmbientOcclusionIndexChangeHandler);
- this._textureFilteringItem = new MenuItemOptionOptionStepper("AI_UI_MENU_TEXTURE_FILTERING",null,null,this.textureFilteringIndexChangeHandler);
- this._volumetricLightingItem = new MenuItemOptionOptionStepper("AI_UI_MENU_VOLUMETRIC_LIGHTING",null,null,this.volumetricLightingIndexChangeHandler);
- this._antiAliasingItem = new MenuItemOptionOptionStepper("AI_UI_MENU_ANTI_ALIASING",null,null,this.antiAliasingIndexChangeHandler);
- this._stereoModeItem = new MenuItemOptionOptionStepper("AI_UI_MENU_STEREO_MODE",null,null,this.stereoModeIndexChangeHandler);
- this._filmGrainIntensityItem = new MenuItemOptionSlider("AI_UI_MENU_FILM_GRAIN_INTENSITY",null,this.filmGrainIntensityIndexChangeHandler);
- this._applyVideoOptionsItem = new MenuItem("AI_UI_MENU_VIDEO_APPLY",this.applyVideoOptionsHandler);
- this._sfxVolumeItem = new MenuItemOptionSlider("AI_UI_MENU_SFX_VOLUME",null,this.sfxVolumeIndexChangeHandler);
- this._musicVolumeItem = new MenuItemOptionSlider("AI_UI_MENU_MUSIC_VOLUME",null,this.musicVolumeIndexChangeHandler);
- this._subtitlesItem = new MenuItemOptionCheckBox("AI_UI_MENU_SUBTITLES",true,null,this.subtitlesSelectHandler);
- this._musicItem = new MenuItemOptionCheckBox("AI_UI_MENU_MUSIC",true,null,this.musicSelectHandler);
- this._audioLanguageItem = new MenuItemOptionOptionStepper("AI_UI_MENU_AUDIO_LANGUAGE",null,null,this.audioLanguageIndexChangeHandler);
- this._speakerModeItem = new MenuItemOptionOptionStepper("AI_UI_MENU_SPEAKER_MODE",null,null,this.speakerModeIndexChangeHandler);
- this._dualShockSpeakerItem = new MenuItemOptionOptionStepper("AI_UI_MENU_DUALSHOCK_SPEAKER",null,null,this.dualShockSpeakerIndexChangeHandler);
- this._twitterLinkItem = new MenuItemOptionCheckBox("AI_UI_MENU_TWITTER_LINK");
- this._facebookLinkItem = new MenuItemOptionCheckBox("AI_UI_MENU_FACEBOOK_LINK");
- this._secondScreenItem = new MenuItem("AI_UI_MENU_SECOND_SCR_SETTINGS");
- this._currentCheckpointItem = new MenuItem("AI_UI_MENU_RESTART_CURR_CHECKPOINT",this.currentCheckpointHandler);
- this._previousCheckpointItem = new MenuItem("AI_UI_MENU_RESTART_PREV_CHECKPOINT",this.previousCheckpointHandler);
- this._missionCheckpointsItem = new MenuItemExpandable("AI_UI_MENU_LOAD_MISSION_CHECKPOINT",this.missionCheckpointsHandler);
- this._debugCheckpointsItem = new MenuItemExpandable("Trigger Debug Checkpoint",this.debugCheckpointsHandler);
- this._loadGameItem = new MenuItemExpandable("AI_UI_MENU_LOAD_GAME",this.loadGameHandler);
- super();
- this.menu = this.menuParent.menu;
- this._functionPrefix = param1;
- this._optionsItem.page.addItem(this._gameOptionsItem);
- this._optionsItem.page.addItem(this._videoOptionsItem);
- this._optionsItem.page.addItem(this._audioOptionsItem);
- this._gameOptionsItem.page.addItem(this._controllerOptionsItem);
- this._gameOptionsItem.page.addItem(this._inputMappingItem);
- this._gameOptionsItem.page.addItem(this._mouseSensitivityItem);
- this._gameOptionsItem.page.addItem(this._cameraSensitivityItem);
- this._gameOptionsItem.page.addItem(this._invertXAxisItem);
- this._gameOptionsItem.page.addItem(this._invertYAxisItem);
- this._gameOptionsItem.page.addItem(this._aimAssistItem);
- this._gameOptionsItem.page.addItem(this._vibrationItem);
- this._gameOptionsItem.page.addItem(this._headTrackingItem);
- this._gameOptionsItem.page.addItem(this._noiseDetectionItem);
- this._gameOptionsItem.page.addItem(this._difficultyItem);
- this._controllerOptionsItem.page.addItem(this._gamepadPresetItem);
- this._inputMappingItem.page.addItem(this._resetInputMappingItem);
- this._inputMappingItem.page.addItem(this._cancelInputMappingItem);
- this._inputMappingItem.page.addItem(this._saveInputMappingItem);
- this._videoOptionsItem.page.addItem(this._adjustGammaItem);
- this._videoOptionsItem.page.addItem(this._beginBenchmarkItem);
- this._videoOptionsItem.page.addItem(this._fieldOfViewItem);
- this._videoOptionsItem.page.addItem(this._filmGrainIntensityItem);
- this._videoOptionsItem.page.addItem(this._fullscreenItem);
- this._videoOptionsItem.page.addItem(this._deepColourItem);
- this._videoOptionsItem.page.addItem(this._fullScreenResolution24bppItem);
- this._videoOptionsItem.page.addItem(this._fullScreenResolution30bppItem);
- this._videoOptionsItem.page.addItem(this._windowedResolutionItem);
- this._videoOptionsItem.page.addItem(this._verticalSyncItem);
- this._videoOptionsItem.page.addItem(this._levelOfDetailItem);
- this._videoOptionsItem.page.addItem(this._shadowMapResolutionItem);
- this._videoOptionsItem.page.addItem(this._shadowMappingItem);
- this._videoOptionsItem.page.addItem(this._particlesItem);
- this._videoOptionsItem.page.addItem(this._motionBlurItem);
- this._videoOptionsItem.page.addItem(this._depthOfFieldItem);
- this._videoOptionsItem.page.addItem(this._chromaticAberrationItem);
- this._videoOptionsItem.page.addItem(this._planarReflectionsItem);
- this._videoOptionsItem.page.addItem(this._screenSpaceAmbientOcclusionItem);
- this._videoOptionsItem.page.addItem(this._textureFilteringItem);
- this._videoOptionsItem.page.addItem(this._volumetricLightingItem);
- this._videoOptionsItem.page.addItem(this._antiAliasingItem);
- this._videoOptionsItem.page.addItem(this._stereoModeItem);
- this._audioOptionsItem.page.addItem(this._sfxVolumeItem);
- this._audioOptionsItem.page.addItem(this._musicVolumeItem);
- this._audioOptionsItem.page.addItem(this._subtitlesItem);
- this._audioOptionsItem.page.addItem(this._audioLanguageItem);
- this._audioOptionsItem.page.addItem(this._speakerModeItem);
- this.setSpeakerMode(1);
- this._audioOptionsItem.page.addItem(this._dualShockSpeakerItem);
- this._socialOptionsItem.page.addItem(this._twitterLinkItem);
- this._socialOptionsItem.page.addItem(this._facebookLinkItem);
- this._socialOptionsItem.page.addItem(this._secondScreenItem);
- this._loadGameItem.page.addItem(this._currentCheckpointItem);
- this._loadGameItem.page.addItem(this._previousCheckpointItem);
- this._loadGameItem.page.addItem(this._missionCheckpointsItem);
- this._loadGameItem.page.addItem(this._debugCheckpointsItem);
- this.setIds();
- this.setDescriptions();
- this.setTransitions();
- this.setVisibility();
- this._gameOptionsItem.page.addEventListener(MenuPageEvent.BEFORE_BACK,this.gameOptionsBeforeBackHandler);
- this._videoOptionsItem.page.addEventListener(MenuPageEvent.BEFORE_BACK,this.videoOptionsBeforeBackHandler);
- this._audioOptionsItem.page.addEventListener(MenuPageEvent.BEFORE_BACK,this.audioOptionsBeforeBackHandler);
- this._inputMappingItem.page.addEventListener(MenuPageEvent.BEFORE_BACK,this.inputMappingBeforeBackHandler);
- this.menu.addEventListener(MenuEvent.PAGE_CHANGE,this.menuPageChangeHandler);
- this.menu.addEventListener(IndexEvent.INDEX_CHANGE,this.menuIndexChangeHandler);
- }
- protected function call(param1:String, ... rest) : *
- {
- if(rest == null)
- {
- rest = new Array();
- }
- rest.unshift(this._functionPrefix + param1);
- return ExternalInterface.call.apply(null,rest);
- }
- public function init_image_substitution(param1:String, param2:Boolean, param3:Boolean) : void
- {
- this._imageSubstitution.register_loaded_callback(this.imageSubstitutionLoadedCallback);
- this._imageSubstitution.initialise(param1,param2,param3,ImageSubstitution.SUBSTITUTION_ACTIONS | ImageSubstitution.SUBSTITUTION_UI | ImageSubstitution.SUBSTITUTION_BUTTONS);
- }
- protected function imageSubstitutionLoadedCallback() : void
- {
- this._imageSubstitutionLoaded = true;
- if(this.extras != null)
- {
- this._imageSubstitution.Add_TextField(this.extras.backGlyph);
- this.extras.ready = true;
- this.menu.updateExtrasVisibility();
- }
- if(this.userProfilePanel != null)
- {
- this._imageSubstitution.Add_TextField(this.userProfilePanel.description.textField);
- this.userProfilePanel.visible = this._userProfilePanelVisible;
- }
- }
- public function get isTopLevel() : Boolean
- {
- return this.menu.isTopLevel;
- }
- public function setQuitGameVisible(param1:Boolean) : void
- {
- this._quitGameItem.visible = param1;
- }
- public function setUserProfileVisible(param1:Boolean) : void
- {
- this._userProfilePanelVisible = param1;
- if(this.userProfilePanel != null && Boolean(this._imageSubstitutionLoaded))
- {
- this.userProfilePanel.visible = this._userProfilePanelVisible;
- }
- }
- public function setUserProfileName(param1:String) : void
- {
- if(this.userProfilePanel != null)
- {
- this.userProfilePanel.userNameText = param1;
- }
- }
- public function setUserProfileDescription(param1:String) : void
- {
- if(this.userProfilePanel != null)
- {
- this.userProfilePanel.descriptionText = param1;
- }
- }
- public function setCurrentPage(param1:int, param2:int) : void
- {
- this.menu.setCurrentPage(param1,param2);
- }
- public function setItemEnabled(param1:int, param2:Boolean) : void
- {
- this.menu.setItemEnabled(param1,param2);
- }
- public function setItemVisible(param1:int, param2:Boolean) : void
- {
- this.menu.setItemVisible(param1,param2);
- }
- public function setItemDescription(param1:int, param2:String) : void
- {
- this.menu.setItemDescription(param1,param2);
- }
- public function pushItemData(param1:int) : void
- {
- this.menu.pushItemData(param1);
- }
- public function popItemData(param1:int) : void
- {
- this.menu.popItemData(param1);
- }
- public function setMouseSpeed(param1:Number) : void
- {
- if(!this._mouseSensitivityItem.visible)
- {
- this._mouseSensitivityItem.visible = true;
- }
- this._mouseSensitivityItem.value = param1;
- }
- public function setGamepadSpeed(param1:Number) : void
- {
- this._cameraSensitivityItem.value = param1;
- }
- public function setInvertXAxis(param1:Boolean) : void
- {
- this._invertXAxisItem.selected = param1;
- }
- public function setInvertYAxis(param1:Boolean) : void
- {
- this._invertYAxisItem.selected = param1;
- }
- public function setRumble(param1:Boolean) : void
- {
- this._vibrationItem.selected = param1;
- }
- public function setHeadTracking(param1:Boolean) : void
- {
- if(!this._headTrackingItem.visible)
- {
- this._headTrackingItem.visible = true;
- }
- this._headTrackingItem.selected = param1;
- }
- public function setMovementDetection(param1:Boolean) : void
- {
- if(!this._movementDetectionItem.visible)
- {
- this._movementDetectionItem.visible = true;
- }
- this._movementDetectionItem.selected = param1;
- }
- public function setNoiseDetection(param1:Boolean) : void
- {
- if(!this._noiseDetectionItem.visible)
- {
- this._noiseDetectionItem.visible = true;
- }
- this._noiseDetectionItem.selected = param1;
- }
- public function setMementoMori(param1:Boolean) : void
- {
- if(!this._mementoMoriItem.visible)
- {
- this._mementoMoriItem.visible = true;
- }
- this._mementoMoriItem.selected = param1;
- }
- public function setAimAssist(param1:Boolean) : void
- {
- this._aimAssistItem.selected = param1;
- }
- public function setDifficulty(param1:int) : void
- {
- if(param1 != DIFFICULTY_IRON)
- {
- this._difficultyItem.enabled = true;
- this._difficultyItem.selectedItem = param1;
- }
- }
- public function setSubtitles(param1:Boolean) : void
- {
- this._subtitlesItem.selected = param1;
- }
- public function setMusic(param1:Boolean) : void
- {
- this._musicItem.selected = param1;
- }
- public function setCurrentCheckpoint(param1:Boolean, param2:String, param3:String = null) : void
- {
- if(!StringUtil.isEmpty(param3))
- {
- this._currentCheckpointItem.name = param3;
- }
- this._currentCheckpointItem.description = param2;
- this._currentCheckpointItem.visible = param1;
- }
- public function setPreviousCheckpoint(param1:Boolean, param2:String, param3:String = null) : void
- {
- if(!StringUtil.isEmpty(param3))
- {
- this._previousCheckpointItem.name = param3;
- }
- this._previousCheckpointItem.description = param2;
- this._previousCheckpointItem.visible = param1;
- }
- public function addMissionCheckpoint(param1:String, param2:String, param3:String, param4:int) : void
- {
- var _loc5_:MenuItem = new MenuItem(StringUtil.substr(param1,0,20,true),this.missionCheckpointHandler);
- _loc5_.description = param2;
- _loc5_.data = param3;
- _loc5_.id = new MenuItemId(param4);
- _loc5_.addEventListener(MenuItemEvent.ITEM_SELECT,this.missionCheckpointSelectHandler,false,0,true);
- this._missionCheckpointsItem.page.addItem(_loc5_);
- this.menu.addItemToMap(_loc5_);
- }
- public function addDebugCheckpoint(param1:String, param2:String, param3:int) : void
- {
- var _loc4_:MenuItem = new MenuItem(param1,this.debugCheckpointHandler);
- _loc4_.description = param2;
- _loc4_.data = param3;
- this._debugCheckpointsItem.page.addItem(_loc4_);
- }
- public function removeMissionCheckpoints() : void
- {
- this._missionCheckpointsItem.page.removeAllItems();
- this.menu.rebuildItemMap();
- }
- public function removeDebugCheckpoints() : void
- {
- this._debugCheckpointsItem.page.removeAllItems();
- }
- public function setAdvancedVideoOptionsVisible(param1:Boolean) : void
- {
- this._beginBenchmarkItem.visible = param1;
- this._fieldOfViewItem.visible = param1;
- this._fullscreenItem.visible = param1;
- this._deepColourItem.visible = param1;
- this._fullScreenResolution24bppItem.visible = param1;
- this._fullScreenResolution30bppItem.visible = param1;
- this._windowedResolutionItem.visible = param1;
- this._verticalSyncItem.visible = param1;
- this._levelOfDetailItem.visible = param1;
- this._shadowMapResolutionItem.visible = param1;
- this._shadowMappingItem.visible = param1;
- this._particlesItem.visible = param1;
- this._motionBlurItem.visible = param1;
- this._depthOfFieldItem.visible = param1;
- this._chromaticAberrationItem.visible = param1;
- this._planarReflectionsItem.visible = param1;
- this._screenSpaceAmbientOcclusionItem.visible = param1;
- this._textureFilteringItem.visible = param1;
- this._volumetricLightingItem.visible = param1;
- this._antiAliasingItem.visible = param1;
- this._stereoModeItem.visible = param1;
- }
- public function setGamepadPresetData(param1:MenuItemDataSequence) : void
- {
- if(param1 != null)
- {
- param1.visualsName = "ControllerMapDiagram";
- }
- this._gamepadPresetItem.itemData = param1;
- }
- public function setFieldOfViewData(param1:MenuItemDataSequence) : void
- {
- this._fieldOfViewItem.itemData = param1;
- }
- public function setFullscreenData(param1:MenuItemDataSequence) : void
- {
- this._fullscreenItem.itemData = param1;
- }
- public function setDeepColourData(param1:MenuItemDataSequence) : void
- {
- this._deepColourItem.itemData = param1;
- }
- public function setFullScreenResolution24bppData(param1:MenuItemDataSequence) : void
- {
- this._fullScreenResolution24bppItem.itemData = param1;
- }
- public function setFullScreenResolution30bppData(param1:MenuItemDataSequence) : void
- {
- this._fullScreenResolution30bppItem.itemData = param1;
- }
- public function setWindowedResolutionData(param1:MenuItemDataSequence) : void
- {
- this._windowedResolutionItem.itemData = param1;
- }
- public function setVerticalSyncData(param1:MenuItemDataSequence) : void
- {
- this._verticalSyncItem.itemData = param1;
- }
- public function setLevelOfDetailData(param1:MenuItemDataSequence) : void
- {
- this._levelOfDetailItem.itemData = param1;
- }
- public function setShadowMapResolutionData(param1:MenuItemDataSequence) : void
- {
- this._shadowMapResolutionItem.itemData = param1;
- }
- public function setShadowMappingData(param1:MenuItemDataSequence) : void
- {
- this._shadowMappingItem.itemData = param1;
- }
- public function setParticlesData(param1:MenuItemDataSequence) : void
- {
- this._particlesItem.itemData = param1;
- }
- public function setMotionBlurData(param1:MenuItemDataSequence) : void
- {
- this._motionBlurItem.itemData = param1;
- }
- public function setDepthOfFieldData(param1:MenuItemDataSequence) : void
- {
- this._depthOfFieldItem.itemData = param1;
- }
- public function setChromaticAberrationData(param1:MenuItemDataSequence) : void
- {
- this._chromaticAberrationItem.itemData = param1;
- }
- public function setPlanarReflectionsData(param1:MenuItemDataSequence) : void
- {
- this._planarReflectionsItem.itemData = param1;
- }
- public function setScreenSpaceAmbientOcclusionData(param1:MenuItemDataSequence) : void
- {
- this._screenSpaceAmbientOcclusionItem.itemData = param1;
- }
- public function setTextureFilteringData(param1:MenuItemDataSequence) : void
- {
- this._textureFilteringItem.itemData = param1;
- }
- public function setVolumetricLightingData(param1:MenuItemDataSequence) : void
- {
- this._volumetricLightingItem.itemData = param1;
- }
- public function setAntiAliasingData(param1:MenuItemDataSequence) : void
- {
- this._antiAliasingItem.itemData = param1;
- }
- public function setStereoModeData(param1:MenuItemDataSequence) : void
- {
- this._stereoModeItem.itemData = param1;
- this._stereoModeItem.visible = false;
- }
- public function setFilmGrainIntensityData(param1:MenuItemDataSequence) : void
- {
- this._filmGrainIntensityItem.itemData = param1;
- }
- public function setSfxVolumeData(param1:MenuItemDataSequence) : void
- {
- this._sfxVolumeItem.itemData = param1;
- }
- public function setMusicVolumeData(param1:MenuItemDataSequence) : void
- {
- this._musicVolumeItem.itemData = param1;
- }
- public function setAudioLanguageData(param1:MenuItemDataSequence) : void
- {
- this._audioLanguageItem.itemData = param1;
- this._audioLanguageItem.visible = false;
- }
- public function setSpeakerModeData(param1:MenuItemDataSequence) : void
- {
- this._speakerModeItem.itemData = param1;
- }
- public function setDualShockSpeakerData(param1:MenuItemDataSequence) : void
- {
- this._dualShockSpeakerItem.itemData = param1;
- }
- public function setGamepadPreset(param1:int) : void
- {
- this._gamepadPresetItem.selectedItem = param1;
- }
- public function setFieldOfView(param1:int) : void
- {
- this._fieldOfViewItem.selectedItem = param1;
- }
- public function setFullscreen(param1:int) : void
- {
- this._fullscreenItem.selectedItem = param1;
- }
- public function setDeepColour(param1:int) : void
- {
- this._deepColourItem.selectedItem = param1;
- }
- public function setFullScreenResolution24bpp(param1:int) : void
- {
- this._fullScreenResolution24bppItem.selectedItem = param1;
- }
- public function setFullScreenResolution30bpp(param1:int) : void
- {
- this._fullScreenResolution30bppItem.selectedItem = param1;
- }
- public function setWindowedResolution(param1:int) : void
- {
- this._windowedResolutionItem.selectedItem = param1;
- }
- public function setVerticalSync(param1:int) : void
- {
- this._verticalSyncItem.selectedItem = param1;
- }
- public function setLevelOfDetail(param1:int) : void
- {
- this._levelOfDetailItem.selectedItem = param1;
- }
- public function setShadowMapResolution(param1:int) : void
- {
- this._shadowMapResolutionItem.selectedItem = param1;
- }
- public function setShadowMapping(param1:int) : void
- {
- this._shadowMappingItem.selectedItem = param1;
- }
- public function setParticles(param1:int) : void
- {
- this._particlesItem.selectedItem = param1;
- }
- public function setMotionBlur(param1:int) : void
- {
- this._motionBlurItem.selectedItem = param1;
- }
- public function setDepthOfField(param1:int) : void
- {
- this._depthOfFieldItem.selectedItem = param1;
- }
- public function setChromaticAberration(param1:int) : void
- {
- this._chromaticAberrationItem.selectedItem = param1;
- }
- public function setPlanarReflections(param1:int) : void
- {
- this._planarReflectionsItem.selectedItem = param1;
- }
- public function setScreenSpaceAmbientOcclusion(param1:int) : void
- {
- this._screenSpaceAmbientOcclusionItem.selectedItem = param1;
- }
- public function setTextureFiltering(param1:int) : void
- {
- this._textureFilteringItem.selectedItem = param1;
- }
- public function setVolumetricLighting(param1:int) : void
- {
- this._volumetricLightingItem.selectedItem = param1;
- }
- public function setAntiAliasing(param1:int) : void
- {
- this._antiAliasingItem.selectedItem = param1;
- }
- public function setStereoMode(param1:int) : void
- {
- this._stereoModeItem.selectedItem = param1;
- }
- public function setFilmGrainIntensity(param1:int) : void
- {
- this._filmGrainIntensityItem.selectedItem = param1;
- }
- public function setSfxVolume(param1:int) : void
- {
- this._sfxVolumeItem.selectedItem = param1;
- }
- public function setMusicVolume(param1:int) : void
- {
- this._musicVolumeItem.selectedItem = param1;
- }
- public function setAudioLanguage(param1:int) : void
- {
- this._audioLanguageItem.selectedItem = param1;
- }
- public function setSpeakerMode(param1:int) : void
- {
- this._speakerModeItem.selectedItem = param1;
- }
- public function setDualShockSpeaker(param1:int) : void
- {
- this._dualShockSpeakerItem.selectedItem = param1;
- }
- public function removeAllInputMappingItems() : void
- {
- this._inputMappingItem.page.removeAllItems();
- this._inputMappingItem.page.addItem(this._resetInputMappingItem);
- this._inputMappingItem.page.addItem(this._cancelInputMappingItem);
- this._inputMappingItem.page.addItem(this._saveInputMappingItem);
- }
- public function addInputMappingItem(param1:MenuItemDataButton, param2:int) : void
- {
- var _loc3_:MenuItemOptionInputMapper = null;
- if(param1 != null)
- {
- if(!this._inputMappingItem.visible)
- {
- this._inputMappingItem.visible = true;
- }
- _loc3_ = new MenuItemOptionInputMapper(param1.name,param1.label,this.inputMappingItemPressHandler);
- _loc3_.itemData = param1;
- _loc3_.data = param2;
- this._inputMappingItem.page.addItem(_loc3_,true);
- }
- }
- public function setInputMappingItemLabel(param1:int, param2:String) : void
- {
- var _loc3_:MenuItemOptionInputMapper = MenuItemOptionInputMapper.getById(param1);
- if(_loc3_ != null)
- {
- _loc3_.label = param2;
- }
- }
- public function setSelectedInputMappingItemLabel(param1:String) : void
- {
- if(MenuItemOptionInputMapper.selectedInputMapper != null)
- {
- MenuItemOptionInputMapper.selectedInputMapper.label = param1;
- }
- }
- public function setSelectedInputMappingItemUnselect() : void
- {
- if(MenuItemOptionInputMapper.selectedInputMapper != null)
- {
- MenuItemOptionInputMapper.selectedInputMapper.selected = false;
- }
- }
- public function playBackgroundMovies() : void
- {
- this.menu.playBackgroundMovies();
- }
- public function stopBackgroundMovies() : void
- {
- this.menu.stopBackgroundMovies();
- }
- public function showRootPage() : void
- {
- this.menu.showRootPage();
- }
- private function quitGameHandler(param1:MenuItemEvent) : void
- {
- this.call("request_quit_game");
- }
- private function helpHandler(param1:MenuItemEvent) : void
- {
- this.call("show_help");
- }
- protected function mouseSensitivityValueChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_mouse_speed",this._mouseSensitivityItem.value);
- }
- protected function cameraSensitivityValueChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_gamepad_speed",this._cameraSensitivityItem.value);
- }
- protected function invertXAxisSelectHandler(param1:MenuItemEvent) : void
- {
- this.call("set_invert_x_axis",this._invertXAxisItem.selected);
- }
- protected function invertYAxisSelectHandler(param1:MenuItemEvent) : void
- {
- this.call("set_invert_y_axis",this._invertYAxisItem.selected);
- }
- protected function vibrationSelectHandler(param1:MenuItemEvent) : void
- {
- this.call("set_rumble",this._vibrationItem.selected);
- }
- protected function difficultyIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this._difficultyItem.enabled = false;
- this.call("request_set_difficulty",this._difficultyItem.selectedItem);
- }
- protected function headTrackingSelectHandler(param1:MenuItemEvent) : void
- {
- this.call("set_head_tracking",this._headTrackingItem.selected);
- }
- protected function movementDetectionSelectHandler(param1:MenuItemEvent) : void
- {
- this.call("set_movement_detection",this._movementDetectionItem.selected);
- }
- protected function noiseDetectionSelectHandler(param1:MenuItemEvent) : void
- {
- this.call("set_noise_detection",this._noiseDetectionItem.selected);
- }
- protected function mementoMoriSelectHandler(param1:MenuItemEvent) : void
- {
- this.call("set_memento_mori",this._mementoMoriItem.selected);
- }
- protected function aimAssistSelectHandler(param1:MenuItemEvent) : void
- {
- this.call("set_aim_assist",this._aimAssistItem.selected);
- }
- protected function gamepadPresetIndexChangeHandler() : void
- {
- this.call("set_gamepad_preset",this._gamepadPresetItem.selectedItem);
- }
- protected function inputMappingItemPressHandler(param1:MenuItemEvent) : void
- {
- var _loc2_:MenuItemOptionInputMapper = param1.item as MenuItemOptionInputMapper;
- if(_loc2_.selected)
- {
- this.call("start_listening_for_input_mapping_changes",_loc2_.data as int);
- }
- }
- protected function resetInputMappingHandler(param1:MenuItemEvent) : void
- {
- this.call("reset_input_mapping_to_defaults");
- }
- protected function cancelInputMappingHandler(param1:MenuItemEvent) : void
- {
- this.call("cancel_input_mapping_changes");
- this.menu.back(false);
- }
- protected function saveInputMappingHandler(param1:MenuItemEvent) : void
- {
- this.call("save_input_mapping_changes");
- this.menu.back(false);
- }
- protected function adjustGammaHandler(param1:MenuItemEvent) : void
- {
- this.call("show_gamma_screen");
- }
- protected function fieldOfViewIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_field_of_view",this._fieldOfViewItem.selectedItem);
- }
- protected function fullscreenIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_fullscreen",this._fullscreenItem.selectedItem);
- }
- protected function deepColourIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_deep_colour",this._deepColourItem.selectedItem);
- }
- protected function fullScreenResolution24bppIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_fullScreen_resolution_24bpp",this._fullScreenResolution24bppItem.selectedItem);
- }
- protected function fullScreenResolution30bppIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_fullScreen_resolution_30bpp",this._fullScreenResolution30bppItem.selectedItem);
- }
- protected function windowedResolutionIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_windowed_resolution",this._windowedResolutionItem.selectedItem);
- }
- protected function verticalSyncIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_vertical_sync",this._verticalSyncItem.selectedItem);
- }
- protected function levelOfDetailIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_level_of_detail",this._levelOfDetailItem.selectedItem);
- }
- protected function shadowMapResolutionIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_shadow_map_resolution",this._shadowMapResolutionItem.selectedItem);
- }
- protected function shadowMappingIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_shadow_mapping",this._shadowMappingItem.selectedItem);
- }
- protected function particlesIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_particles",this._particlesItem.selectedItem);
- }
- protected function motionBlurIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_motion_blur",this._motionBlurItem.selectedItem);
- }
- protected function depthOfFieldIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_depth_of_field",this._depthOfFieldItem.selectedItem);
- }
- protected function chromaticAberrationIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_chromatic_aberration",this._chromaticAberrationItem.selectedItem);
- }
- protected function planarReflectionsIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_planar_reflections",this._planarReflectionsItem.selectedItem);
- }
- protected function screenSpaceAmbientOcclusionIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_screen_space_ambient_occlusion",this._screenSpaceAmbientOcclusionItem.selectedItem);
- }
- protected function textureFilteringIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_texture_filtering",this._textureFilteringItem.selectedItem);
- }
- protected function volumetricLightingIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_volumetric_lighting",this._volumetricLightingItem.selectedItem);
- }
- protected function antiAliasingIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_anti_aliasing",this._antiAliasingItem.selectedItem);
- }
- protected function stereoModeIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_stereo_mode",this._stereoModeItem.selectedItem);
- }
- protected function filmGrainIntensityIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_film_grain_intensity",this._filmGrainIntensityItem.selectedItem);
- }
- protected function applyVideoOptionsHandler(param1:MenuItemEvent) : void
- {
- this.call("save_engine_settings");
- this.menu.back(false);
- }
- protected function sfxVolumeIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_sfx_volume",this._sfxVolumeItem.selectedItem);
- }
- protected function musicVolumeIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_music_volume",this._musicVolumeItem.selectedItem);
- }
- protected function subtitlesSelectHandler(param1:MenuItemEvent) : void
- {
- this.call("set_subtitles",this._subtitlesItem.selected);
- }
- protected function musicSelectHandler(param1:MenuItemEvent) : void
- {
- this.call("set_music",this._musicItem.selected);
- }
- protected function audioLanguageIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_audio_language",this._audioLanguageItem.selectedItem);
- }
- protected function speakerModeIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_speaker_mode",this._speakerModeItem.selectedItem);
- }
- protected function dualShockSpeakerIndexChangeHandler(param1:MenuItemEvent) : void
- {
- this.call("set_dualshock_speaker",this._dualShockSpeakerItem.selectedItem);
- }
- protected function currentCheckpointHandler(param1:MenuItemEvent) : void
- {
- this.call("request_load_current_checkpoint");
- }
- protected function previousCheckpointHandler(param1:MenuItemEvent) : void
- {
- this.call("request_load_previous_checkpoint");
- }
- protected function missionCheckpointsHandler(param1:MenuPageEvent) : void
- {
- this.call("update_mission_checkpoints");
- }
- protected function debugCheckpointsHandler(param1:MenuPageEvent) : void
- {
- this.call("update_debug_checkpoints");
- }
- protected function missionCheckpointHandler(param1:MenuItemEvent) : void
- {
- this.call("request_load_checkpoint",param1.item.data as String);
- }
- protected function missionCheckpointSelectHandler(param1:MenuItemEvent) : void
- {
- this.call("cache_checkpoint",param1.item.data as String);
- }
- protected function debugCheckpointHandler(param1:MenuItemEvent) : void
- {
- this.call("jump_to_debug_checkpoint",param1.item.data as int);
- }
- protected function loadGameHandler(param1:MenuPageEvent) : void
- {
- this.call("update_current_checkpoint");
- this.call("update_previous_checkpoint");
- }
- protected function videoOptionsBeforeBackHandler(param1:MenuPageEvent) : void
- {
- this.call("request_save_engine_settings");
- }
- protected function audioOptionsBeforeBackHandler(param1:MenuPageEvent) : void
- {
- this.call("save_engine_settings");
- }
- protected function gameOptionsBeforeBackHandler(param1:MenuPageEvent) : void
- {
- this.call("save_game_settings");
- }
- protected function inputMappingBeforeBackHandler(param1:MenuPageEvent) : void
- {
- this.call("request_save_input_mapping_changes");
- }
- protected function menuPageChangeHandler(param1:MenuEvent) : void
- {
- this.call("on_page_changed",param1.page.id.value);
- this.call("refresh_profile_picture");
- }
- protected function menuIndexChangeHandler(param1:IndexEvent) : void
- {
- this.call("on_item_selected",param1.index);
- }
- protected function difficultyPopUpOkHandler(param1:PopUpEvent) : void
- {
- this.call("set_difficulty",this._difficultyItem.selectedItem);
- }
- protected function difficultyPopUpCloseHandler(param1:PopUpEvent) : void
- {
- this._difficultyItem.selectedIndex = this._difficultyItem.prevSelectedIndex;
- }
- protected function previousCheckpointPopUpOkHandler(param1:PopUpEvent) : void
- {
- this.call("load_previous_checkpoint");
- }
- protected function missionCheckpointPopUpOkHandler(param1:PopUpEvent) : void
- {
- this.call("load_checkpoint",param1.data as String);
- }
- protected function backToFrontendHandler(param1:MenuItemEvent) : void
- {
- this.call("request_back_to_frontend");
- }
- protected function setIds() : void
- {
- this._currentCheckpointItem.id = MenuItemId.RESTART_CURR_CHECKPOINT;
- this._previousCheckpointItem.id = MenuItemId.RESTART_PREV_CHECKPOINT;
- this._missionCheckpointsItem.id = MenuItemId.LOAD_MISSION_CHECKPOINT;
- this._loadGameItem.id = MenuItemId.LOAD_GAME;
- this._helpItem.id = MenuItemId.HELP;
- this._backToFrontendItem.id = MenuItemId.BACK_TO_FRONTEND;
- this._difficultyItem.id = MenuItemId.DIFFICULTY;
- this._debugCheckpointsItem.id = MenuItemId.DEBUG_CHECKPOINTS;
- this._optionsItem.page.id = MenuPageId.OPTIONS;
- this._gameOptionsItem.page.id = MenuPageId.GAME_OPTIONS;
- this._videoOptionsItem.page.id = MenuPageId.VIDEO_OPTIONS;
- this._audioOptionsItem.page.id = MenuPageId.AUDIO_OPTIONS;
- this._inputMappingItem.page.id = MenuPageId.INPUT_MAPPING;
- this._missionCheckpointsItem.page.id = MenuPageId.MISSION_CHECKPOINTS;
- this._debugCheckpointsItem.page.id = MenuPageId.DEBUG_CHECKPOINTS;
- this._loadGameItem.page.id = MenuPageId.LOAD_GAME;
- }
- protected function setDescriptions() : void
- {
- 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"];
- this._optionsItem.description = "AI_UI_MENU_OPTIONS_DESC";
- this._quitGameItem.description = "AI_UI_MENU_QUIT_GAME_DESC";
- this._helpItem.description = "AI_UI_MENU_HELP_DESC";
- this._backToFrontendItem.description = "AI_UI_PAUSE_TO_FRONTEND_DESC";
- this._gameOptionsItem.description = "AI_UI_MENU_GAME_DESC";
- this._videoOptionsItem.description = "AI_UI_MENU_VIDEO_DESC";
- this._audioOptionsItem.description = "AI_UI_MENU_AUDIO_DESC";
- this._controllerOptionsItem.description = "AI_UI_MENU_GAMEPAD_PRESET";
- this._mouseSensitivityItem.description = "AI_UI_MENU_MOUSE_SPEED_DESC";
- this._cameraSensitivityItem.description = "AI_UI_MENU_CAMERA_SPEED_DESC";
- this._invertXAxisItem.description = "AI_UI_MENU_INVERT_X_DESC";
- this._invertYAxisItem.description = "AI_UI_MENU_INVERT_Y_DESC";
- this._aimAssistItem.description = "AI_UI_MENU_AIM_ASSIST_DESC";
- this._vibrationItem.description = "AI_UI_MENU_VIBRATION_DESC";
- this._gamepadPresetItem.description = "AI_UI_MENU_MOVEMENT_DETECTION_DESC";
- this._inputMappingItem.description = "AI_UI_MENU_INPUT_MAPPING_DESC";
- this._headTrackingItem.description = "AI_UI_MENU_HEAD_TRACKING_DESC";
- this._movementDetectionItem.description = "AI_UI_MENU_MOVEMENT_DETECTION_DESC";
- this._noiseDetectionItem.description = "AI_UI_MENU_NOISE_DETECTION_DESC";
- this._mementoMoriItem.description = "AI_UI_MENU_MEMENTO_MORI_DESC";
- this._headTrackingItem.visualsName = "HeadTrackingDiagram";
- this._movementDetectionItem.visualsName = "MovementDetectionDiagram";
- this._noiseDetectionItem.visualsName = "NoiseDetectionDiagram";
- this._mementoMoriItem.visualsName = "MementoMoriDiagram";
- this._adjustGammaItem.description = "AI_UI_MENU_GAMMA_DESC";
- this._applyVideoOptionsItem.description = "AI_UI_MENU_VIDEO_APPLY_DESC";
- this._subtitlesItem.description = "AI_UI_MENU_SUBTITLES_DESC";
- this._musicItem.description = "AI_UI_MENU_MUSIC";
- this._missionCheckpointsItem.description = "AI_UI_MENU_LOAD_MISSION_CHECKPOINT_DESC";
- this._loadGameItem.description = "AI_UI_MENU_LOAD_GAME_DESC";
- }
- protected function setTransitions() : void
- {
- this._optionsItem.page.transitionLabel = "test_transition";
- this._gameOptionsItem.page.transitionLabel = "test_transition";
- this._videoOptionsItem.page.transitionLabel = "test_transition";
- }
- protected function setVisibility() : void
- {
- this.setAdvancedVideoOptionsVisible(true);
- this._quitGameItem.visible = true;
- this._helpItem.visible = true;
- this._inputMappingItem.visible = true;
- this._mouseSensitivityItem.visible = true;
- this._headTrackingItem.visible = true;
- this._movementDetectionItem.visible = true;
- this._noiseDetectionItem.visible = true;
- this._mementoMoriItem.visible = true;
- this._dualShockSpeakerItem.visible = true;
- this._debugCheckpointsItem.visible = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment