/// <summary> /// Load the keybinds. /// </summary> public override void OnLoad() { Keybind.Add(this, menuKey); CreateSettingsUI(); settings.setVisibility(false); LoadBinds(); }
public override void ModSettings() { instance = this; Keybind.Add(this, menuKey); if (ModLoader.devMode) { Settings.AddHeader(this, "DevMode Settings", new Color32(101, 34, 18, 255), new Color32(254, 254, 0, 255)); Settings.AddCheckBox(this, dm_disabler); Settings.AddCheckBox(this, dm_logST); Settings.AddCheckBox(this, dm_operr); Settings.AddCheckBox(this, dm_warn); Settings.AddCheckBox(this, dm_pcon); } Settings.AddHeader(this, "Basic Settings", new Color32(0, 128, 0, 255)); Settings.AddText(this, "All basic settings for MSCLoader"); Settings.AddCheckBox(this, expWarning); Settings.AddCheckBox(this, modPath); Settings.AddCheckBox(this, modSetButton); Settings.AddCheckBox(this, forceMenuVsync); Settings.AddCheckBox(this, openLinksOverlay); Settings.AddCheckBox(this, showCoreModsDf); Settings.AddCheckBox(this, skipGameIntro); Settings.AddText(this, $"If for whatever reason you want to save half a second of mods loading time, enable below option.{Environment.NewLine}(Loading progress <b>cannot</b> be displayed in synchronous mode)"); Settings.AddCheckBox(this, syncLoad); Settings.AddHeader(this, "Mod Update Check", new Color32(0, 128, 0, 255)); Settings.AddText(this, "Check for mod updates:"); Settings.AddCheckBox(this, checkLaunch, "cfmu_set"); Settings.AddCheckBox(this, checkDaily, "cfmu_set"); Settings.AddCheckBox(this, checkWeekly, "cfmu_set"); Settings.AddHeader(this, "Experimental Scaling", new Color32(101, 34, 18, 255), new Color32(254, 254, 0, 255)); Settings.AddText(this, "This option enables <color=orange>experimental UI scaling</color> for <color=orange>ultra-widescreen monitor setup</color>. Turn on this checkbox first, then run game in ultra-widescreen resolution. You can then tune scaling using slider below, but default value (1) should be ok."); Settings.AddCheckBox(this, expUIScaling); Settings.AddSlider(this, tuneScaling, 0f, 1f); }
public override void ModSettings() { Keybind.Add(this, consoleKey); Settings.AddHeader(this, "Console Settings", new Color32(0, 128, 0, 255)); Settings.AddText(this, "Basic settings for console"); Settings.AddCheckBox(this, typing); Settings.AddSlider(this, ConsoleFontSize, 10, 20); }
/// <summary> /// Load built-in console commands. /// </summary> public override void OnLoad() { IsOpen = false; Keybind.Add(this, consoleKey); ConsoleCommand.Add(new CommandClear()); ConsoleCommand.Add(new CommandHelp()); }
public override void OnLoad() { Keybind.Add(this, consoleKey); Keybind.Add(this, consoleSizeKey); CreateConsoleUI(); console.setVisibility(false); ConsoleCommand.Add(new CommandClear()); ConsoleCommand.Add(new CommandHelp()); ConsoleCommand.Add(new CommandLogAll()); }
public override void OnMenuLoad() { Keybind.Add(this, consoleKey); CreateConsoleUI(); console.controller = new ConsoleController(); ConsoleCommand.cc = console.controller; console.setVisibility(false); console.viewContainer.transform.GetChild(4).gameObject.GetComponent <ConsoleUIResizer>().LoadConsoleSize(); ConsoleCommand.Add(new CommandVersion()); ConsoleCommand.Add(new CommandLogAll()); }
public override void OnLoad() { Keybind.Add(this, consoleKey); //Keybind.Add(this, consoleSizeKey); CreateConsoleUI(); console.console = new ConsoleController(); ConsoleCommand.cc = console.console; console.setVisibility(false); UI.GetComponent <ConsoleView>().viewContainer.transform.GetChild(4).gameObject.GetComponent <ConsoleUIResizer>().LoadConsoleSize(); ConsoleCommand.Add(new CommandClear()); ConsoleCommand.Add(new CommandHelp()); ConsoleCommand.Add(new CommandLogAll()); }
// Load the keybinds. public override void OnLoad() { try { GameObject go = new GameObject(); ModSettingsUI ui = go.AddComponent <ModSettingsUI>(); ui.ms = this; ui.LoadUI(); } catch (Exception e) { ModConsole.Print(e.Message); //debug only } Keybind.Add(this, menuKey); LoadBinds(); }
public override void ModSettings() { instance = this; Keybind.Add(this, menuKey); Settings.AddHeader(this, "Basic Settings", new Color32(0, 128, 0, 255)); //Settings.AddText(this, "All basic settings for MSCLoader"); //Settings.AddCheckBox(this, expWarning); //Settings.AddCheckBox(this, modPath); //Settings.AddCheckBox(this, modSetButton); Settings.AddCheckBox(this, forceMenuVsync); Settings.AddHeader(this, "Mod Update Check", new Color32(0, 128, 0, 255)); Settings.AddButton(this, updateButton, "Check for mod updates."); //Settings.AddHeader(this, "Experimental Scaling", new Color32(101, 34, 18, 255), new Color32(254, 254, 0, 255)); //Settings.AddText(this, "This option enables <color=orange>experimental UI scaling</color> for <color=orange>ultra-widescreen monitor setup</color>. Turn on this checkbox first, then run game in ultra-widescreen resolution. You can then tune scaling using slider below, but default value (1) should be ok."); //Settings.AddCheckBox(this, expUIScaling); //Settings.AddSlider(this, tuneScaling, 0f, 1f); LoadSettings(); }
/// <summary> /// Load the keybinds. /// </summary> public override void OnLoad() { Keybind.Add(this, menuKey); }
public override void OnMenuLoad() { CreateSettingsUI(); Keybind.Add(this, menuKey); }