@@ -10,6 +10,7 @@ using System.Reflection;
|
||||
using System.Linq.Expressions;
|
||||
using Sirenix.Utilities;
|
||||
using System.Collections;
|
||||
using DG.Tweening;
|
||||
|
||||
//又在写大粪 ——神币
|
||||
namespace Ichni.Editor
|
||||
@@ -114,10 +115,18 @@ namespace Ichni.Editor
|
||||
if (Keyboard.current.backquoteKey.wasPressedThisFrame)
|
||||
{
|
||||
|
||||
ConsoleUI.SetActive(isHide);
|
||||
|
||||
|
||||
isHide = !isHide;
|
||||
if (!isHide) StartCoroutine(WindowAnim.ShowPanelOnScale(InputCommand.gameObject));
|
||||
if (!isHide)
|
||||
{
|
||||
ConsoleUI.SetActive(isHide);
|
||||
transform.DOScale(Vector3.one, 0.15f).SetEase(Ease.OutBack);
|
||||
}
|
||||
else transform.DOScale(Vector3.zero, 0.15f).SetEase(Ease.InCirc).OnComplete(() =>
|
||||
{
|
||||
ConsoleUI.SetActive(false);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -180,7 +189,7 @@ namespace Ichni.Editor
|
||||
{
|
||||
string getFloatorInt(string a)
|
||||
{
|
||||
return a.Contains(".") ? $"float.Parse({a})" : a;
|
||||
return a.Contains(".") ? $"{a}f" : a;
|
||||
}
|
||||
// 处理命令格式,适配 DynamicExpresso
|
||||
string trimmed = input.Trim();
|
||||
|
||||
Reference in New Issue
Block a user