@@ -193,7 +193,11 @@ namespace Ichni
|
||||
cameraManager.SetUpInspector();
|
||||
var oo = inspector.GenerateContainer("Grid");
|
||||
var p = oo.GenerateSubcontainer(3);
|
||||
var po = inspector.GenerateToggle(this, p, "Enable Grid", nameof(gridController) + "." + nameof(gridController.gameObject) + ".activeSelf");
|
||||
var po = inspector.GenerateToggle(this, p, "Enable Grid");
|
||||
po.AddListenerFunction(() =>
|
||||
{
|
||||
gridController.gameObject.SetActive(po.toggle.isOn);
|
||||
});
|
||||
var o = inspector.GenerateInputField(p, "Grid Size", (gridController.baseGridSize * 10).ToString());
|
||||
o.AddListenerFunction(() =>
|
||||
{
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Ichni.RhythmGame;
|
||||
using Sirenix.Utilities;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
@@ -257,6 +258,25 @@ namespace Ichni.Editor
|
||||
EditorManager.instance.operationManager.CopyPasteDeleteModule.DeleteElement(EditorManager.instance.operationManager.currentSelectedElements[0]);
|
||||
}
|
||||
}
|
||||
if (Keyboard.current.leftAltKey.isPressed)
|
||||
{
|
||||
if (Keyboard.current.upArrowKey.wasPressedThisFrame)
|
||||
{
|
||||
|
||||
if (EditorManager.instance.operationManager.currentSelectedElements.Count == 1)
|
||||
{
|
||||
EditorManager.instance.operationManager.currentSelectedElements[0]?.connectedTab?.MoveTab(true);
|
||||
}
|
||||
}
|
||||
else if (Keyboard.current.downArrowKey.wasPressedThisFrame)
|
||||
{
|
||||
|
||||
if (EditorManager.instance.operationManager.currentSelectedElements.Count == 1)
|
||||
{
|
||||
EditorManager.instance.operationManager.currentSelectedElements[0]?.connectedTab?.MoveTab(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void ResolutionHintsOperation()
|
||||
|
||||
Reference in New Issue
Block a user