From ce95ec923d88478754a633942f5a83f8324782f6 Mon Sep 17 00:00:00 2001 From: ZHU MINCHAO <48154958+MinchaoZhu@users.noreply.github.com> Date: Tue, 3 Nov 2026 15:15:19 +0800 Subject: [PATCH] Terminal: fixed-width amount field --- src/Decentralized/TerminalWindow.cs | 3 +++ 1 file changed, 3 insertions(+) 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);