public void Update() { if (Input.GetKeyDown(KeyCode.F9)) { Run.instance.AdvanceStage(Run.instance.nextStageScene); } if (Input.GetKeyDown(KeyCode.F1)) { TmpStuff.UpdateText(StageStatsTextAreaName, GetStageStats()); TmpStuff.UpdateText(PlayerStatsTextAreaName, GetPlayerStats()); } }
private void UpdateTextArea(string textAreaName) { if (!TmpStuff.textAreas.ContainsKey(StageStatsTextAreaName)) { CreateMainInfoArea(); } else { TmpStuff.UpdateText(StageStatsTextAreaName, GetStageStats()); } if (!TmpStuff.textAreas.ContainsKey(PlayerStatsTextAreaName)) { CreatePlayerStatsArea(); } else { TmpStuff.UpdateText(PlayerStatsTextAreaName, GetPlayerStats()); } }
public void SettingsPanel_Start(On.RoR2.UI.SettingsPanelController.orig_Start o, RoR2.UI.SettingsPanelController s) { o(s); TmpStuff.HideTextArea(StageStatsTextAreaName); }
// Gets called at the main menu; public void Main_MenuStart(On.RoR2.UI.MainMenu.MainMenuController.orig_Start o, RoR2.UI.MainMenu.MainMenuController m) { o(m); TmpStuff.HideTextArea(StageStatsTextAreaName); }
private void CreatePlayerStatsArea() { TmpStuff.CreateTextArea(new Rect(0.05f, 0.75f, 1000f, 6000f), 24f, Color.green, TmpStuff.MainCanvasName, PlayerStatsTextAreaName, true, GetPlayerStats()); }
private void CreateMainInfoArea() { TmpStuff.CreateTextArea(new Rect(0.81f, 0.65f, 1000f, 6000f), 24f, Color.white, TmpStuff.MainCanvasName, StageStatsTextAreaName, true, GetStageStats()); }