This commit is contained in:
SoulliesOfficial
2025-02-14 22:04:21 -05:00
parent 0bcc843740
commit 934d1b5aba
42 changed files with 5699 additions and 91 deletions

View File

@@ -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];
}