点击预览位置,alt——上下挪动位置

Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
2026-02-13 17:40:50 +08:00
parent c21dc74576
commit 96a2c60e16
34 changed files with 23940 additions and 211416 deletions

View File

@@ -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(() =>
{

View File

@@ -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()