Terminal: fixed-width amount field

This commit is contained in:
ZHU MINCHAO committed 2026-11-03 15:15:19 +08:00
1 parent 0560c34231
commit ce95ec923d
1 file changed
+3
+3
View File
@@ -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);