mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
Changed foreground color of menu options user can select
This commit is contained in:
parent
5e73f89792
commit
c60fc5c032
3 changed files with 16 additions and 0 deletions
|
|
@ -22,7 +22,9 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
editPathMenu.AddItem(togglePath = new UIMenuCheckboxItem("Disable Path", false));
|
editPathMenu.AddItem(togglePath = new UIMenuCheckboxItem("Disable Path", false));
|
||||||
editPathMenu.AddItem(editPathWaypoints = new UIMenuItem("Edit Waypoints"));
|
editPathMenu.AddItem(editPathWaypoints = new UIMenuItem("Edit Waypoints"));
|
||||||
|
editPathWaypoints.ForeColor = Color.Gold;
|
||||||
editPathMenu.AddItem(deletePath = new UIMenuItem("Delete Path"));
|
editPathMenu.AddItem(deletePath = new UIMenuItem("Delete Path"));
|
||||||
|
deletePath.ForeColor = Color.Gold;
|
||||||
|
|
||||||
editPathMenu.RefreshIndex();
|
editPathMenu.RefreshIndex();
|
||||||
editPathMenu.OnItemSelect += EditPath_OnItemSelected;
|
editPathMenu.OnItemSelect += EditPath_OnItemSelected;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
@ -54,7 +55,9 @@ namespace SceneManager
|
||||||
editWaypointMenu.AddItem(changeCollectorRadius = new UIMenuListItem("Change Collection Radius", collectorRadii, collectorRadii.IndexOf(currentPath.Waypoints[editWaypoint.Index].CollectorRadius)));
|
editWaypointMenu.AddItem(changeCollectorRadius = new UIMenuListItem("Change Collection Radius", collectorRadii, collectorRadii.IndexOf(currentPath.Waypoints[editWaypoint.Index].CollectorRadius)));
|
||||||
editWaypointMenu.AddItem(updateWaypointPosition = new UIMenuCheckboxItem("Update Waypoint Position", false));
|
editWaypointMenu.AddItem(updateWaypointPosition = new UIMenuCheckboxItem("Update Waypoint Position", false));
|
||||||
editWaypointMenu.AddItem(editUpdateWaypoint = new UIMenuItem("Update Waypoint"));
|
editWaypointMenu.AddItem(editUpdateWaypoint = new UIMenuItem("Update Waypoint"));
|
||||||
|
editUpdateWaypoint.ForeColor = Color.Gold;
|
||||||
editWaypointMenu.AddItem(editRemoveWaypoint = new UIMenuItem("Remove Waypoint"));
|
editWaypointMenu.AddItem(editRemoveWaypoint = new UIMenuItem("Remove Waypoint"));
|
||||||
|
editRemoveWaypoint.ForeColor = Color.Gold;
|
||||||
|
|
||||||
EditPathMenu.editPathMenu.Visible = false;
|
EditPathMenu.editPathMenu.Visible = false;
|
||||||
editWaypointMenu.RefreshIndex();
|
editWaypointMenu.RefreshIndex();
|
||||||
|
|
@ -83,7 +86,9 @@ namespace SceneManager
|
||||||
editWaypointMenu.AddItem(changeCollectorRadius = new UIMenuListItem("Change Collection Radius", collectorRadii, collectorRadii.IndexOf(currentPath.Waypoints[editWaypoint.Index].CollectorRadius)));
|
editWaypointMenu.AddItem(changeCollectorRadius = new UIMenuListItem("Change Collection Radius", collectorRadii, collectorRadii.IndexOf(currentPath.Waypoints[editWaypoint.Index].CollectorRadius)));
|
||||||
editWaypointMenu.AddItem(updateWaypointPosition = new UIMenuCheckboxItem("Update Waypoint Position", false));
|
editWaypointMenu.AddItem(updateWaypointPosition = new UIMenuCheckboxItem("Update Waypoint Position", false));
|
||||||
editWaypointMenu.AddItem(editUpdateWaypoint = new UIMenuItem("Update Waypoint"));
|
editWaypointMenu.AddItem(editUpdateWaypoint = new UIMenuItem("Update Waypoint"));
|
||||||
|
editUpdateWaypoint.ForeColor = Color.Gold;
|
||||||
editWaypointMenu.AddItem(editRemoveWaypoint = new UIMenuItem("Remove Waypoint"));
|
editWaypointMenu.AddItem(editRemoveWaypoint = new UIMenuItem("Remove Waypoint"));
|
||||||
|
editRemoveWaypoint.ForeColor = Color.Gold;
|
||||||
editWaypointMenu.RefreshIndex();
|
editWaypointMenu.RefreshIndex();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,11 +41,16 @@ namespace SceneManager
|
||||||
pathMainMenu.Clear();
|
pathMainMenu.Clear();
|
||||||
|
|
||||||
pathMainMenu.AddItem(createNewPath = new UIMenuItem("Create New Path"));
|
pathMainMenu.AddItem(createNewPath = new UIMenuItem("Create New Path"));
|
||||||
|
createNewPath.ForeColor = Color.Gold;
|
||||||
pathMainMenu.AddItem(editPath = new UIMenuListScrollerItem<int>("Edit Path", "", pathsNum));
|
pathMainMenu.AddItem(editPath = new UIMenuListScrollerItem<int>("Edit Path", "", pathsNum));
|
||||||
|
editPath.ForeColor = Color.Gold;
|
||||||
pathMainMenu.AddItem(disableAllPaths = new UIMenuCheckboxItem("Disable All Paths", false));
|
pathMainMenu.AddItem(disableAllPaths = new UIMenuCheckboxItem("Disable All Paths", false));
|
||||||
pathMainMenu.AddItem(deleteAllPaths = new UIMenuItem("Delete All Paths"));
|
pathMainMenu.AddItem(deleteAllPaths = new UIMenuItem("Delete All Paths"));
|
||||||
|
deleteAllPaths.ForeColor = Color.Gold;
|
||||||
pathMainMenu.AddItem(directDriver = new UIMenuListScrollerItem<int>("Direct nearest driver to path", "", pathsNum));
|
pathMainMenu.AddItem(directDriver = new UIMenuListScrollerItem<int>("Direct nearest driver to path", "", pathsNum));
|
||||||
|
directDriver.ForeColor = Color.Gold;
|
||||||
pathMainMenu.AddItem(dismissDriver = new UIMenuListScrollerItem<string>("Dismiss nearest driver", "", dismissOptions));
|
pathMainMenu.AddItem(dismissDriver = new UIMenuListScrollerItem<string>("Dismiss nearest driver", "", dismissOptions));
|
||||||
|
dismissDriver.ForeColor = Color.Gold;
|
||||||
|
|
||||||
if (paths.Count == 8)
|
if (paths.Count == 8)
|
||||||
{
|
{
|
||||||
|
|
@ -82,9 +87,13 @@ namespace SceneManager
|
||||||
trafficRemoveWaypoint.Enabled = true;
|
trafficRemoveWaypoint.Enabled = true;
|
||||||
pathMainMenu.Clear();
|
pathMainMenu.Clear();
|
||||||
pathMainMenu.AddItem(createNewPath = new UIMenuItem("Continue Creating Current Path"));
|
pathMainMenu.AddItem(createNewPath = new UIMenuItem("Continue Creating Current Path"));
|
||||||
|
createNewPath.ForeColor = Color.Gold;
|
||||||
pathMainMenu.AddItem(deleteAllPaths = new UIMenuItem("Delete All Paths"));
|
pathMainMenu.AddItem(deleteAllPaths = new UIMenuItem("Delete All Paths"));
|
||||||
|
deleteAllPaths.ForeColor = Color.Gold;
|
||||||
pathMainMenu.AddItem(directDriver = new UIMenuListScrollerItem<int>("Direct nearest driver to path", ""));
|
pathMainMenu.AddItem(directDriver = new UIMenuListScrollerItem<int>("Direct nearest driver to path", ""));
|
||||||
|
directDriver.ForeColor = Color.Gold;
|
||||||
pathMainMenu.AddItem(dismissDriver = new UIMenuListScrollerItem<string>("Dismiss nearest driver", ""));
|
pathMainMenu.AddItem(dismissDriver = new UIMenuListScrollerItem<string>("Dismiss nearest driver", ""));
|
||||||
|
dismissDriver.ForeColor = Color.Gold;
|
||||||
|
|
||||||
if (GetPaths().Count == 8)
|
if (GetPaths().Count == 8)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue