细化一些UI
我觉得TimelineCanvas可以利用一下 比如把note放在上面?
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user