细化一些UI

我觉得TimelineCanvas可以利用一下
比如把note放在上面?
This commit is contained in:
2025-02-20 15:25:42 +08:00
parent a00797dc99
commit 4d9694db60
22 changed files with 5808 additions and 1996 deletions

View File

@@ -21,7 +21,7 @@ namespace Ichni.Editor
{
public partial class EditorConsole : MonoBehaviour
{
public Canvas[] scaleParts;
public Interpreter functionInterpreter;
public TMP_InputField InputCommand;
private Dictionary<int,string> historyCommand=new Dictionary<int,string>();
@@ -52,6 +52,19 @@ namespace Ichni.Editor
isHide=!isHide;
}
if(Keyboard.current.leftCtrlKey.isPressed&&Keyboard.current.upArrowKey.wasPressedThisFrame){
foreach(Canvas i in scaleParts){
var canvasScaler = i.GetComponent<CanvasScaler>();
canvasScaler.referenceResolution = new Vector2(canvasScaler.referenceResolution.x + 100, canvasScaler.referenceResolution.y);
}
}else
if(Keyboard.current.leftCtrlKey.isPressed&&Keyboard.current.downArrowKey.wasPressedThisFrame){
foreach(Canvas i in scaleParts){
var canvasScaler = i.GetComponent<CanvasScaler>();
canvasScaler.referenceResolution = new Vector2(canvasScaler.referenceResolution.x - 100, canvasScaler.referenceResolution.y);
}
}
if(InputCommand.isFocused){
if(Keyboard.current.downArrowKey.wasPressedThisFrame){
if(historyCommand.Count-1>historycount){