diff --git a/src/Decentralized/TerminalWindow.cs b/src/Decentralized/TerminalWindow.cs index f31cb7c..e91f087 100644 --- a/src/Decentralized/TerminalWindow.cs +++ b/src/Decentralized/TerminalWindow.cs @@ -1,6 +1,7 @@ using System; using System.Globalization; using System.Linq; +using UnityEngine; using Decentralized.Domain; namespace Decentralized @@ -58,8 +59,10 @@ namespace Decentralized b.AddLabel(L.T("trade.hint")); b.BeginRow(); b.AddLabel(L.T("trade.amount")); + b.BeginPanel(240f, -1f, TextAnchor.MiddleCenter, 0f, 0f); // 给输入框一个固定宽度,容得下大额数字 b.AddInput("0", _amount, s => _amount = s, "amount", s => _amount = s); b.End(); + b.End(); b.BeginRow(); b.AddButton(L.T("trade.deposit"), Deposit); b.AddButton(L.T("trade.withdraw"), Withdraw);