示例#1
0
            private static void Postfix(Panel_OptionsMenu __instance)
            {
                InterfaceManager.m_Panel_OptionsMenu = __instance;
                ObjectPrefabs.Initialize(__instance);

                DateTime tStart = DateTime.UtcNow;

                try {
                    MelonLogger.Msg("Building Mod Settings GUI");
                    ModSettingsMenu.BuildGUI();
                } catch (Exception e) {
                    MelonLogger.Error("Exception while building Mod Settings GUI\n" + e.ToString());
                    return;
                }
                try {
                    MelonLogger.Msg("Building Custom Mode GUI");
                    CustomModeMenu.BuildGUI();
                } catch (Exception e) {
                    MelonLogger.Error("Exception while building Custom Mode GUI\n" + e.ToString());
                    return;
                }

                long timeMillis = (long)(DateTime.UtcNow - tStart).TotalMilliseconds;

                MelonLogger.Msg("Done! Took " + timeMillis + " ms. Have a nice day!");
            }
示例#2
0
            private static void Postfix()
            {
                DateTime tStart = DateTime.UtcNow;

                try {
                    Debug.Log("[ModSettings] Building Mod Settings GUI");
                    ModSettingsMenu.BuildGUI();
                } catch (Exception e) {
                    Debug.LogError("[ModSettings] Exception while building Mod Settings GUI\n" + e.ToString());
                    return;
                }
                try {
                    Debug.Log("[ModSettings] Building Custom Mode GUI");
                    CustomModeMenu.BuildGUI();
                } catch (Exception e) {
                    Debug.LogError("[ModSettings] Exception while building Custom Mode GUI\n" + e.ToString());
                    return;
                }

                long timeMillis = (long)(DateTime.UtcNow - tStart).TotalMilliseconds;

                Debug.Log("[ModSettings] Done! Took " + timeMillis + " ms. Have a nice day!");
            }
 private static void Prefix()
 {
     CustomModeMenu.CallOnConfirm();
 }
 private static void Prefix(bool enable)
 {
     CustomModeMenu.SetSettingsVisible(enable);
 }
示例#5
0
 public void AddToCustomModeMenu(Position position)
 {
     CustomModeMenu.RegisterSettings(this, position);
 }