第十阶段 stage 1(一):解锁物品放前台、首页帮助入口、鉴定手册用原版文档模型、涡轮不能作用于矿机
This commit is contained in:
1 parent
00a000e3f9
commit
ad60b07ca9
19 files changed
+118
-53
No files matched your search
@@ -93,9 +93,12 @@ namespace Decentralized
|
||||
if (CustomUIManager.Instance != null && CustomUIManager.Instance.IsOpen(Id)) Open();
|
||||
}
|
||||
|
||||
private static void Entry(CustomUIBuilder b, string icon, string name, string line1, string line2, Page target)
|
||||
private static void Entry(CustomUIBuilder b, string icon, string name, string line1, string line2, Page target) =>
|
||||
Entry(b, icon, name, line1, line2, L.T("home.enter"), () => Go(target));
|
||||
|
||||
private static void Entry(CustomUIBuilder b, string icon, string name, string line1, string line2, string button, Action onEnter)
|
||||
{
|
||||
b.BeginPanel((ScreenW - 80f) / 3f, 250f + (ScreenH - 578f) * 0.25f, TextAnchor.UpperCenter, 10f, 6f);
|
||||
b.BeginPanel((ScreenW - 80f) / 4f, 250f + (ScreenH - 578f) * 0.25f, TextAnchor.UpperCenter, 10f, 6f);
|
||||
var cardImg = b.Last.image;
|
||||
cardImg.sprite = MachineryStyle.White;
|
||||
cardImg.color = PledgerSkin.RowNormal;
|
||||
@@ -104,7 +107,7 @@ namespace Decentralized
|
||||
b.AddLabel(line1);
|
||||
if (line2 != null) b.AddLabel(line2, "entry_l2_dim");
|
||||
b.AddFlexibleSpace();
|
||||
b.AddButton(L.T("home.enter"), () => Go(target));
|
||||
b.AddButton(button, onEnter);
|
||||
b.End();
|
||||
}
|
||||
|
||||
@@ -118,6 +121,7 @@ namespace Decentralized
|
||||
Entry(b, "ui_bank", L.T("entry.bank"), L.T("entry.bank.l1"), L.T("entry.bank.l2", PlayerStore.Instance.playerCash), Page.Bank);
|
||||
Entry(b, "ui_poinbase", L.T("entry.poinbase"), L.T("entry.poinbase.l1"), null, Page.Poinbase);
|
||||
Entry(b, "ui_web3", L.T("entry.web3"), L.T("entry.web3.l1"), L.T("entry.web3.l2", Fmt.Credits(chain)), Page.Web3);
|
||||
Entry(b, "ui_help", L.T("entry.help"), L.T("entry.help.l1"), null, L.T("home.open"), HandbookWindow.Open);
|
||||
b.End();
|
||||
b.AddSpace(8f);
|
||||
b.AddSeparator();
|
||||
|
||||
Reference in new issue
Block a user