mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 15:40:29 +01:00
Refactored menu item initializations, updated public methods to internal
This commit is contained in:
parent
d60c9ff105
commit
d29e38f25c
1 changed files with 5 additions and 6 deletions
|
|
@ -7,22 +7,21 @@ namespace SceneManager
|
|||
{
|
||||
class SettingsMenu
|
||||
{
|
||||
public static UIMenu settingsMenu { get; set; }
|
||||
public static UIMenuCheckboxItem threeDWaypoints = new UIMenuCheckboxItem("Enable 3D Waypoints", Settings.Enable3DWaypoints),
|
||||
internal static UIMenu settingsMenu = new UIMenu("Scene Manager", "~o~Plugin Settings");
|
||||
internal static UIMenuCheckboxItem threeDWaypoints = new UIMenuCheckboxItem("Enable 3D Waypoints", Settings.Enable3DWaypoints),
|
||||
mapBlips = new UIMenuCheckboxItem("Enable Map Blips", Settings.EnableMapBlips),
|
||||
hints = new UIMenuCheckboxItem("Enable Hints", Settings.EnableHints);
|
||||
private static SpeedUnits[] speedArray = {SpeedUnits.MPH, SpeedUnits.KPH };
|
||||
public static UIMenuListScrollerItem<SpeedUnits> speedUnits = new UIMenuListScrollerItem<SpeedUnits>("Speed Unit of Measure", "", new[] { SpeedUnits.MPH, SpeedUnits.KPH });
|
||||
public static UIMenuItem saveSettings = new UIMenuItem("Save settings to .ini", "Updates the plugin's .ini file with the current settings so the next time the plugin is loaded, it will use these settings.");
|
||||
internal static UIMenuListScrollerItem<SpeedUnits> speedUnits = new UIMenuListScrollerItem<SpeedUnits>("Speed Unit of Measure", "", new[] { SpeedUnits.MPH, SpeedUnits.KPH });
|
||||
internal static UIMenuItem saveSettings = new UIMenuItem("Save settings to .ini", "Updates the plugin's .ini file with the current settings so the next time the plugin is loaded, it will use these settings.");
|
||||
|
||||
internal static void InstantiateMenu()
|
||||
{
|
||||
settingsMenu = new UIMenu("Scene Manager", "~o~Plugin Settings");
|
||||
settingsMenu.ParentMenu = MainMenu.mainMenu;
|
||||
MenuManager.menuPool.Add(settingsMenu);
|
||||
}
|
||||
|
||||
public static void BuildSettingsMenu()
|
||||
internal static void BuildSettingsMenu()
|
||||
{
|
||||
settingsMenu.AddItem(threeDWaypoints);
|
||||
settingsMenu.AddItem(mapBlips);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue