private void OnChangeWaterQuality() { var value = WaterQuality.value * 2.0f; QualityManager.SetWaterQuality(GameManager, (int)value); SetGraphicLevelText((int)value, WaterLevelLabel); }
private void Awake() { //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Expected O, but got Unknown //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00d0: Expected O, but got Unknown //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00e8: Expected O, but got Unknown string text = "START version: 0.1.0.6045 " + DateTime.Now.ToShortDateString(); Log.Info(text + "\n" + new string('-', 35 + text.Length), 40, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Main.cs"); Device.LogInfo(); Object.DontDestroyOnLoad(this.get_gameObject()); PlayerPreferences.Load(); ApplicationConfig.Read(); QualityManager.Load(); if (PlayerPreferences.graphicPresetIndex == -1) { PlayerPreferences.graphicPresetIndex = QualityManager.GetQualityPresetIndex(); PlayerPreferences.Save(); } QualityManager.SetQualityPresetIndex(PlayerPreferences.graphicPresetIndex); monoBehaviour = this; StateManager.RegisterInputDefinition(new InputKeyCodeDefinition(27, 1, 0, 0.4f, 0.1f)); StateManager.RegisterInputDefinition(new InputKeyCodeDefinition(13, 2, 0, 0.4f, 0.1f)); StateManager.RegisterInputDefinition(new InputKeyCodeDefinition(271, 3, 0, 0.4f, 0.1f)); StateManager.RegisterInputDefinition(new InputKeyCodeDefinition(9, 4, 0, 0.4f, 0.1f)); }
protected void Awake() { List <string> options = new List <string> { RuntimeData.FormattedText(9912), RuntimeData.FormattedText(68421) }; m_fullScreenDropdown.ClearOptions(); m_fullScreenDropdown.AddOptions(options); m_fullScreenDropdown.RefreshShownValue(); List <string> list = new List <string>(); List <QualityAsset> qualityPresets = QualityManager.GetQualityPresets(); for (int i = 0; i < qualityPresets.Count; i++) { QualityAsset val = qualityPresets[i]; string[] array = val.get_name().Split(new char[1] { '_' }); string item = (array.Length != 0) ? array[array.Length - 1] : val.get_name(); list.Add(item); } m_graphicPresetDropdown.ClearOptions(); m_graphicPresetDropdown.AddOptions(list); m_graphicPresetDropdown.RefreshShownValue(); }
private void Start() { instance = this; if (_optimize) { // Loop through all the enemies and add them one by one to our list if they are activated AIStateMachine[] stateMachines; if (_enemiesParent != null) { stateMachines = _enemiesParent.GetComponentsInChildren <AIStateMachine>(true); } else { stateMachines = FindObjectsOfType <AIStateMachine>(); } for (int i = 0; i < stateMachines.Length; i++) { _stateMachines.Add(stateMachines[i]); // Then we deactivate the enemy //stateMachines[i].SwitchState(AIState.AIStateType.Idle); stateMachines[i].gameObject.SetActive(false); } } GameManager.Instance.OnLocalPlayerJoined += (player) => { _playerTransform = player.transform; }; }
protected unsafe void OnEnable() { //IL_016e: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Expected O, but got Unknown //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01b0: Expected O, but got Unknown m_graphicPresetDropdown.value = QualityManager.GetQualityPresetIndex(); ScreenManager.UpdateDisplayInformation(); UpdateResolutionData(); m_fullScreenDropdown.value = ((!Device.fullScreen) ? 1 : 0); m_fullScreenDropdown.RefreshShownValue(); m_displayDropdown.get_transform().get_parent().get_parent() .get_gameObject() .SetActive(Device.fullScreen); m_defaultResolutionButton.get_transform().get_parent().get_gameObject() .SetActive(Device.fullScreen); UpdateDisplayList(); UpdateRatioList(); UpdateResolutionList(); m_currentFullScreenDropDownIndex = m_fullScreenDropdown.value; m_currentDisplayDropDownIndex = m_displayDropdown.value; m_currentRatioDropDownIndex = m_ratioDropdown.value; m_currentResolutionDropDownIndex = m_resolutionDropdown.value; m_currentGraphicPresetDropDownIndex = m_graphicPresetDropdown.value; UpdateDefaultResolutionButton(); m_fullScreenDropdown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); m_displayDropdown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); m_ratioDropdown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); m_resolutionDropdown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); m_defaultResolutionButton.get_onClick().AddListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); m_graphicPresetDropdown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); m_applyButton.get_onClick().AddListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); UpdateApplyButton(); }
public ActionResult Index() { string lang = FillLanguagesList(); var Quality = QualityManager.GetQualityList(lang, false); return(View(Quality)); }
public ActionResult EditQuality() { if (RouteData.Values["id"] != null) { int nid = 0; bool isnumber = int.TryParse(RouteData.Values["id"].ToString(), out nid); if (isnumber) { //ImageHelperNew.DestroyImageCashAndSession(600, 338); Quality editQuality = QualityManager.GetQualityById(nid); var languages = LanguageManager.GetLanguages(); var list = new SelectList(languages, "Culture", "Language"); ViewBag.LanguageList = list; return(View(editQuality)); } else { return(View()); } } else { return(View()); } }
private void OnChangeGraphicQuality() { var value = GraphicQuality.value * 3.0f; QualityManager.SetQuality(GameManager, (int)value); SetGraphicLevelText((int)value, GraphicLevelLabel); }
public JsonResult QualityEditStatus(int id) { string NowState; bool isupdate = QualityManager.UpdateStatus(id); return(Json(isupdate)); }
public JsonResult DeleteQuality(int id) { bool isdelete = QualityManager.Delete(id); //if (isdelete) return(Json(isdelete)); // else return false; }
private void Awake() { UIManager.Init( (prefabName) => Instantiate(PrefabManager.GetPrefab(prefabName)), Debug.LogError, () => ControlManager.Instance.Common_MouseLeft.Down, () => ControlManager.Instance.Common_MouseRight.Down, () => ControlManager.Instance.Common_Exit.Down, () => ControlManager.Instance.Common_Confirm.Down, () => ControlManager.Instance.Common_Tab.Down ); ConfigManager.Awake(); LayerManager.Awake(); PrefabManager.Awake(); GameObjectPoolManager.Init(new GameObject("GameObjectPoolRoot").transform); GameObjectPoolManager.Awake(); RoutineManager.LogErrorHandler = Debug.LogError; RoutineManager.Awake(); GameStateManager.Awake(); DebugConsole.OnDebugConsoleKeyDownHandler = () => ControlManager.Instance.Common_Debug.Down; DebugConsole.OnDebugConsoleToggleHandler = (enable) => { ControlManager.Instance.EnableBattleInputActions(!enable); ControlManager.Instance.EnableBuildingInputActions(!enable); }; BackpackManager.LoadBackpackItemConfigs(ConfigManager.BackpackGridSize); BackpackManager.Awake(); DragManager.Awake(); MouseHoverManager.Awake(); MouseHoverManager.Initialize( () => ControlManager.Instance.Common_MouseLeft.Down, () => ControlManager.Instance.Common_MouseLeft.Up, () => ControlManager.Instance.Common_MousePosition); InitMouseHoverManager(); DragExecuteManager.Init(); DragExecuteManager.Awake(); AIManager.Init(0.1f); AIManager.Awake(); ClientLevelManager.Init(); LevelManager.Init(); ClientLevelManager.Awake(); BattleManager.Awake(); ClientBattleManager.Awake(); FXManager.Awake(); UIBattleTipManager.Awake(); ClientProjectileManager.Init(new GameObject("ProjectileRoot").transform); ClientProjectileManager.Awake(); ControlManager.Awake(); QualityManager.Initialize(); }
public JsonResult SortRecords(string list) { JsonList psl = (new JavaScriptSerializer()).Deserialize <JsonList>(list); string[] idsList = psl.list; bool issorted = QualityManager.SortRecords(idsList); return(Json(issorted)); }
private async void btnSubstract_Clicked(object sender, EventArgs e) { QualityScore score = (sender as Button).BindingContext as QualityScore; score.ScoreOutOf10--; await QualityManager.UpdateQualityScoreAsync(score); loadPageAsync(); }
public ActionResult Index() { var news = QualityManager.GetQualityListForFront(lang); //var photos = PhotoManager.GetListForFront((int)web.Areas.Admin.Helpers.PhotoType.News, lang); // var photos = PhotoManager.GetListForFront((int)web.Areas.Admin.Helpers.PhotoType.News); // NewsWrapperModel m = new NewsWrapperModel(news, photos); return(View(news)); }
private void Awake() { if (Instance != null) { Destroy(gameObject); } else { Instance = this; } }
private void OnWizardUpdate() { if (data == null) { if (QualityManager.DATA == null) { Debug.LogWarning("Initializing QualityManager..."); QualityManager.LoadSettings(); } data = QualityManager.DATA; } }
private bool GetActiveBlurState() { //IL_000e: Unknown result type (might be due to invalid IL or missing references) if (!SystemInfo.get_supportsImageEffects()) { return(false); } if ((int)QualityManager.get_current().get_uiBlurQuality() == 0) { return(false); } return(true); }
private async Task loadPageAsync() { try { areaData = await QualityManager.GetAreaDataAsync(area.Id); } catch (Exception ex) { throw ex; } imgArea.Source = ImageSource.FromStream(() => new HttpClient().GetStreamAsync(areaData.imgMobile).Result); lblName.Text = areaData.Name; lblMayor.Text = areaData.Mayor; lblFullName.Text = areaData.FullName; lblContinent.Text = areaData.Continent; }
private void Start() { instance = this; if (_optimize) { // Loop through all the enemies and add them one by one to our list if they are activated AIStateMachine[] stateMachines; if (_enemiesParent != null) { stateMachines = _enemiesParent.GetComponentsInChildren <AIStateMachine>(true); } else { stateMachines = FindObjectsOfType <AIStateMachine>(); } for (int i = 0; i < stateMachines.Length; i++) { _stateMachines.Add(stateMachines[i]); // Then we deactivate the enemy stateMachines[i].ChangeState(AIStateType.Idle); stateMachines[i].gameObject.SetActive(false); } } if (_optimizeMeshRenderers) { MeshRenderer[] meshRenderers = FindObjectsOfType <MeshRenderer>(); for (int i = 0; i < meshRenderers.Length; i++) { if (meshRenderers[i].gameObject.activeSelf) { _meshRenderes.Add(meshRenderers[i]); } } } if (GoneWrong.Player.instance != null) { _player = GoneWrong.Player.instance.transform; } }
private void Initialize(MechaComponentInfo mechaComponentInfo, Mecha parentMecha) { SetLayer(LayerManager.Instance.GetLayerByMechaCamp(mechaComponentInfo.MechaInfo.MechaCamp)); mechaComponentInfo.OnRemoveMechaComponentInfoSuc += (mci) => { OnRemoveMechaComponentSuc?.Invoke(this); PoolRecycle(); }; mechaComponentInfo.OnHighLightColorChange += HighLightColorChange; HighLightColorChange(QualityManager.GetQuality(mechaComponentInfo.Quality).Color, mechaComponentInfo.CurrentPowerUpgradeData.HighLightColorIntensity); { mechaComponentInfo.InventoryItem.OnSetGridPosHandler = (gridPos_World) => { GridPosR.ApplyGridPosToLocalTrans(gridPos_World, transform, ConfigManager.GridSize); MechaInfo.MechaEditorInventory.RefreshConflictAndIsolation(); }; mechaComponentInfo.InventoryItem.OnIsolatedHandler = (shown) => { if (shown) { MechaComponentModelRoot.SetBuildingBasicEmissionColor(CommonUtils.HTMLColorToColor("#E42835")); } else { MechaComponentModelRoot.ResetBuildingBasicEmissionColor(); } MechaComponentGridRoot.SetIsolatedIndicatorShown(shown); }; mechaComponentInfo.InventoryItem.OnConflictedHandler = MechaComponentGridRoot.SetGridConflicted; mechaComponentInfo.InventoryItem.OnResetConflictHandler = MechaComponentGridRoot.ResetAllGridConflict; } MechaComponentInfo = mechaComponentInfo; GridPos.ApplyGridPosToLocalTransXZ(MechaComponentInfo.InventoryItem.GridPos_World, transform, ConfigManager.GridSize); Mecha = parentMecha; MechaComponentGridRoot.SetInBattle(true); Initialize_Fighting(); }
private async Task testModelsAsync() { List <Area> areas = await QualityManager.GetAreasAsync(); foreach (Area area in areas) { Debug.WriteLine($"naam: {area.Name}"); } AreaData areaData = await QualityManager.GetAreaDataAsync("744daf84-8b6d-4d50-9231-0f4a601f06af"); Debug.WriteLine($"Naam: {areaData.Name}, Land: {areaData.FullName}, Burgemeester: {areaData.Mayor}"); List <QualityScore> qualityScore = await QualityManager.GetQualityScoresAsync("744daf84-8b6d-4d50-9231-0f4a601f06af"); foreach (QualityScore qs in qualityScore) { Debug.WriteLine($"label: {qs.Topic}, score: {qs.ScoreOutOf10.ToString()}"); qs.ScoreOutOf10 = 7; QualityManager.UpdateQualityScoreAsync(qs); } }
void Awake() { foreach (GameObject obj in GameObject.FindGameObjectsWithTag("Manager")) { Managers mgr = obj.GetComponent <Managers>(); if (mgr != null && mgr.initialized) { Destroy(this.gameObject); return; } } DontDestroyOnLoad(gameObject); Audio = GetComponent <AudioManager>(); GameMode = GetComponent <GameModeManager>(); Backdrop = GetComponent <BackdropManager>(); Quality = GetComponent <QualityManager>(); _startSequence = new List <IGameManager>(); _startSequence.Add(Audio); _startSequence.Add(GameMode); _startSequence.Add(Backdrop); _startSequence.Add(Quality); StartCoroutine(StartupManagers()); }
private async Task loadPageAsync() { lvwAreas.ItemsSource = await QualityManager.GetAreasAsync(); }
protected void ApplyGraphicQuality() { m_currentGraphicPresetDropDownIndex = m_graphicPresetDropdown.value; QualityManager.SetQualityPresetIndex(m_currentGraphicPresetDropDownIndex); PlayerPreferences.graphicPresetIndex = m_currentGraphicPresetDropDownIndex; }
private async Task loadPageAsync() { lvwScores.ItemsSource = await QualityManager.GetQualityScoresAsync(area.Id); lblName.Text = area.Name; }
public void ApplySettings() { QualityManager.SaveSettings(); QualityManager.ApplySettings(); }
void Awake() { QualityManager.LoadSettings(); }
private void OnWizardCreate() { QualityManager.DATA = data; QualityManager.SaveSettings(); QualityManager.ApplySettings(); }
private void OnBlurChanged(int index) { QualityManager.get_current().set_uiBlurQuality(index); }
public QualityController() { _qualityMan = new QualityManager(); }