Exemple #1
0
 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());
     }
 }
Exemple #2
0
        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());
            }
        }
Exemple #3
0
 public void SettingsPanel_Start(On.RoR2.UI.SettingsPanelController.orig_Start o, RoR2.UI.SettingsPanelController s)
 {
     o(s);
     TmpStuff.HideTextArea(StageStatsTextAreaName);
 }
Exemple #4
0
 // 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);
 }
Exemple #5
0
 private void CreatePlayerStatsArea()
 {
     TmpStuff.CreateTextArea(new Rect(0.05f, 0.75f, 1000f, 6000f), 24f, Color.green, TmpStuff.MainCanvasName, PlayerStatsTextAreaName, true, GetPlayerStats());
 }
Exemple #6
0
 private void CreateMainInfoArea()
 {
     TmpStuff.CreateTextArea(new Rect(0.81f, 0.65f, 1000f, 6000f), 24f, Color.white, TmpStuff.MainCanvasName, StageStatsTextAreaName, true, GetStageStats());
 }