From 2189b0e39ed3fb36c1a3082e87a7280227f4c9e2 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 07 十一月 2025 19:07:31 +0800
Subject: [PATCH] 0312 官职任务点击优化
---
Main/System/OfficialRank/OfficialUpCell.cs | 31 ++++++++++++++++++++++++-------
1 files changed, 24 insertions(+), 7 deletions(-)
diff --git a/Main/System/OfficialRank/OfficialUpCell.cs b/Main/System/OfficialRank/OfficialUpCell.cs
index 75f8ef1..f94e2c4 100644
--- a/Main/System/OfficialRank/OfficialUpCell.cs
+++ b/Main/System/OfficialRank/OfficialUpCell.cs
@@ -52,19 +52,36 @@
taskProcessText.text = process + "/" + total;
int itemID = config.AwardItemList[0][0];
taskReward.Init(new ItemCellModel(itemID, false, config.AwardItemList[0][1]));
- // taskReward.button.AddListener(() =>
- // {
- // ItemTipUtility.Show(itemID);
- // });
-
- getBtn.AddListener(() =>
+ taskReward.button.AddListener(() =>
{
- if (state != 1)
+ if (state == 0)
{
UIManager.Instance.CloseWindow<OfficialUpWin>();
NewBieCenter.Instance.StartNewBieGuide(OfficialRankManager.Instance.guideDict[type]);
return;
}
+ else if (state == 2)
+ {
+ ItemTipUtility.Show(itemID);
+ return;
+ }
+
+ OfficialRankManager.Instance.RequestAllAwards(id);
+
+ });
+
+ getBtn.AddListener(() =>
+ {
+ if (state == 0)
+ {
+ UIManager.Instance.CloseWindow<OfficialUpWin>();
+ NewBieCenter.Instance.StartNewBieGuide(OfficialRankManager.Instance.guideDict[type]);
+ return;
+ }
+ else if (state == 2)
+ {
+ return;
+ }
OfficialRankManager.Instance.RequestAllAwards(id);
});
--
Gitblit v1.8.0