Terminal: fixed-width amount field
This commit is contained in:
1 parent
0560c34231
commit
ce95ec923d
1 file changed
+3
@@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using UnityEngine;
|
||||||
using Decentralized.Domain;
|
using Decentralized.Domain;
|
||||||
|
|
||||||
namespace Decentralized
|
namespace Decentralized
|
||||||
@@ -58,8 +59,10 @@ namespace Decentralized
|
|||||||
b.AddLabel(L.T("trade.hint"));
|
b.AddLabel(L.T("trade.hint"));
|
||||||
b.BeginRow();
|
b.BeginRow();
|
||||||
b.AddLabel(L.T("trade.amount"));
|
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.AddInput("0", _amount, s => _amount = s, "amount", s => _amount = s);
|
||||||
b.End();
|
b.End();
|
||||||
|
b.End();
|
||||||
b.BeginRow();
|
b.BeginRow();
|
||||||
b.AddButton(L.T("trade.deposit"), Deposit);
|
b.AddButton(L.T("trade.deposit"), Deposit);
|
||||||
b.AddButton(L.T("trade.withdraw"), Withdraw);
|
b.AddButton(L.T("trade.withdraw"), Withdraw);
|
||||||
|
|||||||
Reference in new issue
Block a user