1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 23:50:29 +01:00

Refactored collectedVehicles from Dictionary to List

This commit is contained in:
Rich Dunne 2020-08-27 15:01:57 -06:00
parent e8c5e2ca69
commit 95f65c792c
3 changed files with 62 additions and 60 deletions

View file

@ -8,7 +8,7 @@ namespace SceneManager
{
public static UIMenu settingsMenu { get; private set; }
public static UIMenuCheckboxItem debugGraphics = new UIMenuCheckboxItem("Enable 3D Waypoints", false),
hints = new UIMenuCheckboxItem("Enable Hints", true);
hints = new UIMenuCheckboxItem("Enable Hints", true); // Refactor this to be true/false based off the ini
public static UIMenuListScrollerItem<SpeedUnitsOfMeasure> speedUnits = new UIMenuListScrollerItem<SpeedUnitsOfMeasure>("Speed Unit of Measure", "", new[] { SpeedUnitsOfMeasure.MPH, SpeedUnitsOfMeasure.KPH });
public enum SpeedUnitsOfMeasure
{
@ -52,6 +52,7 @@ namespace SceneManager
if(checkboxItem == hints)
{
Hints.Enabled = hints.Checked ? true : false;
// Update the setting in the .ini when check state is changed
}
}