|
@@ -111,8 +111,18 @@ namespace GFGGame
|
|
|
UI_CompStoryLevelItem.ProxyEnd();
|
|
|
}
|
|
|
//Timers.inst.StartCoroutine(InitChapter());
|
|
|
- int levelCount = CimbingTowerLevelCfgArray.Instance.dataArray.Length - FieldWorkDataManager.Instance.CimbingTowerLevelInfoList.Count;
|
|
|
- indexY = 200.0f * Mathf.Max(0, (float)levelCount);
|
|
|
+ int isPassCount = 0;
|
|
|
+ foreach(var item in FieldWorkDataManager.Instance.CimbingTowerLevelInfoList)
|
|
|
+ {
|
|
|
+ if(item.Value.IsPass)
|
|
|
+ {
|
|
|
+ isPassCount++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ int levelCount = CimbingTowerLevelCfgArray.Instance.dataArray.Length - isPassCount;
|
|
|
+ float height = _ui.m_chapter.target.height;
|
|
|
+ float value = 300 / (_ui.m_chapter.target.height / 1080.0f);
|
|
|
+ indexY = value * Mathf.Max(0, (float)levelCount);
|
|
|
_ui.m_chapter.target.scrollPane.posY = indexY;
|
|
|
}
|
|
|
private void OnClickLevelItem(EventContext context)
|
|
@@ -177,8 +187,6 @@ namespace GFGGame
|
|
|
PromptController.Instance.ShowFloatTextPrompt("本周暂未参与该玩法,无法使用此功能!");
|
|
|
return;
|
|
|
}
|
|
|
- else
|
|
|
- {
|
|
|
AlertUI.Show("重置后当前关卡进度将被清空,每周可使用一次,是否重置?")
|
|
|
.SetLeftButton(true, "否").SetRightButton(true, "是", async (object data) =>
|
|
|
{
|
|
@@ -190,10 +198,9 @@ namespace GFGGame
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- PromptController.Instance.ShowFloatTextPrompt("没有重置次数!");
|
|
|
+ //PromptController.Instance.ShowFloatTextPrompt("没有重置次数!");
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
}
|
|
|
private void OnClickBtnSkip()
|
|
|
{
|
|
@@ -201,7 +208,15 @@ namespace GFGGame
|
|
|
int vip = CimbingTowerCfgArray.Instance.dataArray[0].VipClearanceLimit;
|
|
|
if (RoleDataManager.CheckIsMonthCardOpenByType(1) || RoleDataManager.CheckIsMonthCardOpenByType(1))
|
|
|
{
|
|
|
- if(FieldWorkDataManager.Instance.CimbingTowerLevelInfoList.Count > vip)
|
|
|
+ int isPassCount = 0;
|
|
|
+ foreach (var item in FieldWorkDataManager.Instance.CimbingTowerLevelInfoList)
|
|
|
+ {
|
|
|
+ if (item.Value.IsPass)
|
|
|
+ {
|
|
|
+ isPassCount++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (isPassCount >= FieldWorkDataManager.Instance.MaxLevelId)
|
|
|
{
|
|
|
PromptController.Instance.ShowFloatTextPrompt("通关数量已超过最大可通关数量!");
|
|
|
return;
|
|
@@ -209,20 +224,23 @@ namespace GFGGame
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- AlertUI.Show("一键通关不消耗服装和词牌的使用次数,每周可使用一次,是否快速通关?")
|
|
|
- .SetLeftButton(true, "否").SetRightButton(true, "是", async (object data) =>
|
|
|
+ if(FieldWorkDataManager.Instance.MaxLevelId != 0)
|
|
|
{
|
|
|
- bool result = await FieldWorkSproxy.ReqFieldWorkOneClickPass();
|
|
|
- if (result)
|
|
|
- {
|
|
|
- UpdateLevel();
|
|
|
- PromptController.Instance.ShowFloatTextPrompt("跳过成功!");
|
|
|
- }
|
|
|
- else
|
|
|
+ AlertUI.Show("一键通关不消耗服装和词牌的使用次数,每周可使用一次,是否快速通关?")
|
|
|
+ .SetLeftButton(true, "否").SetRightButton(true, "是", async (object data) =>
|
|
|
{
|
|
|
- PromptController.Instance.ShowFloatTextPrompt("暂未满足通关要求,无法使用此功能!");
|
|
|
- }
|
|
|
- });
|
|
|
+ bool result = await FieldWorkSproxy.ReqFieldWorkOneClickPass();
|
|
|
+ if (result)
|
|
|
+ {
|
|
|
+ UpdateLevel();
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("跳过成功!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("暂未满足通关要求,无法使用此功能!");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
private void CheckGuide(object param)
|