Timeline
This commit is contained in:
@@ -13,6 +13,8 @@ using System.Linq;
|
||||
using Unity.VisualScripting;
|
||||
using Ichni.RhythmGame;
|
||||
using Sirenix.Utilities;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
//又在写大粪 ——神币
|
||||
namespace Ichni.Editor
|
||||
{
|
||||
@@ -44,13 +46,13 @@ namespace Ichni.Editor
|
||||
}catch(Exception e){Debug.LogWarning("WTF Command! "+e);}
|
||||
}
|
||||
private void Update(){
|
||||
if(Input.GetKeyDown(KeyCode.BackQuote)){
|
||||
if(Keyboard.current.backquoteKey.wasPressedThisFrame){
|
||||
hierarchy.gameObject.SetActive(isHide);
|
||||
inspector.gameObject.SetActive(isHide);
|
||||
isHide=!isHide;
|
||||
}
|
||||
if(InputCommand.isFocused){
|
||||
if(Input.GetKeyDown(KeyCode.DownArrow)){
|
||||
if(Keyboard.current.downArrowKey.wasPressedThisFrame){
|
||||
if(historyCommand.Count-1>historycount){
|
||||
historycount++;
|
||||
InputCommand.text=historyCommand[historycount];}
|
||||
@@ -60,7 +62,7 @@ namespace Ichni.Editor
|
||||
}
|
||||
|
||||
}
|
||||
if(Input.GetKeyDown(KeyCode.UpArrow)&&historycount!=0){
|
||||
if(Keyboard.current.upArrowKey.wasPressedThisFrame && historycount!=0){
|
||||
historycount--;
|
||||
InputCommand.text=historyCommand[historycount];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user