mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
Renamed togglePath checkbox item to disablePath
This commit is contained in:
parent
0320497fde
commit
e756ecb60f
1 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
public static UIMenu editPathMenu { get; private set; }
|
public static UIMenu editPathMenu { get; private set; }
|
||||||
private static UIMenuItem editPathWaypoints, deletePath;
|
private static UIMenuItem editPathWaypoints, deletePath;
|
||||||
public static UIMenuCheckboxItem togglePath;
|
public static UIMenuCheckboxItem disablePath;
|
||||||
|
|
||||||
internal static void InstantiateMenu()
|
internal static void InstantiateMenu()
|
||||||
{
|
{
|
||||||
|
|
@ -20,7 +20,7 @@ namespace SceneManager
|
||||||
|
|
||||||
public static void BuildEditPathMenu()
|
public static void BuildEditPathMenu()
|
||||||
{
|
{
|
||||||
editPathMenu.AddItem(togglePath = new UIMenuCheckboxItem("Disable Path", false));
|
editPathMenu.AddItem(disablePath = new UIMenuCheckboxItem("Disable Path", false));
|
||||||
editPathMenu.AddItem(editPathWaypoints = new UIMenuItem("Edit Waypoints"));
|
editPathMenu.AddItem(editPathWaypoints = new UIMenuItem("Edit Waypoints"));
|
||||||
editPathWaypoints.ForeColor = Color.Gold;
|
editPathWaypoints.ForeColor = Color.Gold;
|
||||||
editPathMenu.AddItem(deletePath = new UIMenuItem("Delete Path"));
|
editPathMenu.AddItem(deletePath = new UIMenuItem("Delete Path"));
|
||||||
|
|
@ -48,10 +48,10 @@ namespace SceneManager
|
||||||
|
|
||||||
private static void EditPath_OnCheckboxChange(UIMenu sender, UIMenuCheckboxItem checkboxItem, bool @checked)
|
private static void EditPath_OnCheckboxChange(UIMenu sender, UIMenuCheckboxItem checkboxItem, bool @checked)
|
||||||
{
|
{
|
||||||
if (checkboxItem == togglePath)
|
if (checkboxItem == disablePath)
|
||||||
{
|
{
|
||||||
var currentPath = PathMainMenu.GetPaths()[PathMainMenu.editPath.Index];
|
var currentPath = PathMainMenu.GetPaths()[PathMainMenu.editPath.Index];
|
||||||
if (togglePath.Checked)
|
if (disablePath.Checked)
|
||||||
{
|
{
|
||||||
currentPath.DisablePath();
|
currentPath.DisablePath();
|
||||||
Game.LogTrivial($"Path {currentPath.Number} disabled.");
|
Game.LogTrivial($"Path {currentPath.Number} disabled.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue