Exemple #1
0
 public virtual void GoToOptionsScreen()
 {
     UFE.StartOptionsScreen();
 }
Exemple #2
0
 public virtual void GoToControlsScreen()
 {
     if (UFE.config.inputOptions.inputManagerType == InputManagerType.cInput && UFE.isCInputInstalled)
     {
         UFE.SearchClass("cGUI").GetMethod(
             "ToggleGUI",
             BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy,
             null,
             new Type[] { },
             null
             ).Invoke(null, null);
     }
     else if (UFE.config.inputOptions.inputManagerType == InputManagerType.Rewired && UFE.isRewiredInstalled)
     {
         if (RewiredInputController.inputConfiguration != null)
         {
             RewiredInputController.inputConfiguration.ShowInputConfigurationUI(() => UFE.StartOptionsScreen(0.1f)); // show the config screen and return to Options screen when screen is closed
             Destroy(this.gameObject);                                                                               // close options screen when control config UI is opened to prevent UFEScreen navigation system from interfering
         }
     }
 }