|
@@ -79,10 +79,7 @@ namespace GFGGame
|
|
|
yield return new WaitForSeconds(0.1f);
|
|
|
if (gamey != null)
|
|
|
{
|
|
|
- int levelCount = CimbingTowerLevelCfgArray.Instance.dataArray.Length - FieldWorkDataManager.Instance.CimbingTowerLevelInfoList.Count;
|
|
|
- indexY = 212.0f * Mathf.Max(0, (float)levelCount);
|
|
|
- _ui.m_chapter.m_compChapterScroll.target.y = 0;
|
|
|
- gamey.transform.position = new Vector3(0, indexY, 0);
|
|
|
+ //gamey.transform.position = new Vector3(0, indexY, 0);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -113,8 +110,10 @@ namespace GFGGame
|
|
|
levelItem.target.onClick.Add(OnClickLevelItem);
|
|
|
UI_CompStoryLevelItem.ProxyEnd();
|
|
|
}
|
|
|
- Timers.inst.StartCoroutine(InitChapter());
|
|
|
- _ui.m_chapter.m_compChapterScroll.target.y = 1;
|
|
|
+ //Timers.inst.StartCoroutine(InitChapter());
|
|
|
+ int levelCount = CimbingTowerLevelCfgArray.Instance.dataArray.Length - FieldWorkDataManager.Instance.CimbingTowerLevelInfoList.Count;
|
|
|
+ indexY = 200.0f * Mathf.Max(0, (float)levelCount);
|
|
|
+ _ui.m_chapter.target.scrollPane.posY = indexY;
|
|
|
}
|
|
|
private void OnClickLevelItem(EventContext context)
|
|
|
{
|
|
@@ -125,6 +124,17 @@ namespace GFGGame
|
|
|
PromptController.Instance.ShowFloatTextPrompt("请通过前置关卡");
|
|
|
return;
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if(FieldWorkDataManager.Instance.CimbingTowerLevelInfoList.ContainsKey(levelCfgId))
|
|
|
+ {
|
|
|
+ if(FieldWorkDataManager.Instance.CimbingTowerLevelInfoList[levelCfgId].IsPass)
|
|
|
+ {
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("关卡已通过!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
UI_CompStoryLevelItem.ProxyEnd();
|
|
|
ViewManager.Show<FieldWorkLevelInfoView>(new object[] { levelCfgId });
|
|
|
}
|
|
@@ -156,34 +166,63 @@ namespace GFGGame
|
|
|
{
|
|
|
ViewManager.Show<StoreView>(new object[] { ConstStoreTabId.STORE_EXCHANGE, 3 });
|
|
|
}
|
|
|
- private async void OnClickBtnReSet()
|
|
|
+ private void OnClickBtnReSet()
|
|
|
{
|
|
|
if (GuideDataManager.IsGuideFinish(ConstGuideId.FIELD) <= 0)
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
- bool result = await FieldWorkSproxy.ReqFieldWorkReset();
|
|
|
- if (result)
|
|
|
+ if (FieldWorkDataManager.Instance.CimbingTowerLevelInfoList.Count == 0)
|
|
|
{
|
|
|
- UpdateLevel();
|
|
|
- PromptController.Instance.ShowFloatTextPrompt("重置成功!");
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("本周暂未参与该玩法,无法使用此功能!");
|
|
|
+ return;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- PromptController.Instance.ShowFloatTextPrompt("没有重置次数!");
|
|
|
+ AlertUI.Show("重置后当前关卡进度将被清空,每周可使用一次,是否重置?")
|
|
|
+ .SetLeftButton(true, "否").SetRightButton(true, "是", async (object data) =>
|
|
|
+ {
|
|
|
+ bool result = await FieldWorkSproxy.ReqFieldWorkReset();
|
|
|
+ if (result)
|
|
|
+ {
|
|
|
+ UpdateLevel();
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("重置成功!");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("没有重置次数!");
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
- private async void OnClickBtnSkip()
|
|
|
+ private void OnClickBtnSkip()
|
|
|
{
|
|
|
- bool result = await FieldWorkSproxy.ReqFieldWorkOneClickPass();
|
|
|
- if (result)
|
|
|
+ int normal = CimbingTowerCfgArray.Instance.dataArray[0].ClearanceLimit;
|
|
|
+ int vip = CimbingTowerCfgArray.Instance.dataArray[0].VipClearanceLimit;
|
|
|
+ if (RoleDataManager.CheckIsMonthCardOpenByType(1) || RoleDataManager.CheckIsMonthCardOpenByType(1))
|
|
|
{
|
|
|
- UpdateLevel();
|
|
|
- PromptController.Instance.ShowFloatTextPrompt("跳过成功!");
|
|
|
+ if(FieldWorkDataManager.Instance.CimbingTowerLevelInfoList.Count > vip)
|
|
|
+ {
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("通关数量已超过最大可通关数量!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- PromptController.Instance.ShowFloatTextPrompt("每周仅一次!");
|
|
|
+ AlertUI.Show("一键通关不消耗服装和词牌的使用次数,每周可使用一次,是否快速通关?")
|
|
|
+ .SetLeftButton(true, "否").SetRightButton(true, "是", async (object data) =>
|
|
|
+ {
|
|
|
+ bool result = await FieldWorkSproxy.ReqFieldWorkOneClickPass();
|
|
|
+ if (result)
|
|
|
+ {
|
|
|
+ UpdateLevel();
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("跳过成功!");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("暂未满足通关要求,无法使用此功能!");
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
private void CheckGuide(object param)
|
|
@@ -200,8 +239,10 @@ namespace GFGGame
|
|
|
protected override void UpdateToCheckGuide(object param)
|
|
|
{
|
|
|
if (!ViewManager.CheckIsTopView(this.viewCom)) return;
|
|
|
- GuideController.TryGuide(_ui.m_resetBtn.target, ConstGuideId.FIELD, 2, "可重置关卡数据,每周一次!");
|
|
|
+ GuideController.TryGuide(_ui.m_listTag, ConstGuideId.FIELD, 2, "每周主题标签将会获得额外的属性加成!");
|
|
|
GuideController.TryGuide(objGuide, ConstGuideId.FIELD, 3, "点击开始挑战!");
|
|
|
+ GuideController.TryGuide(_ui.m_resetBtn.target, ConstGuideId.FIELD, 15, "每周一5:00可以获得一次重置的机会,若遇到困难时可以考虑重置后再试试哦!", -1, true, _ui.target.height - 600);
|
|
|
+ GuideController.TryCompleteGuide(ConstGuideId.FIELD, 15);
|
|
|
}
|
|
|
}
|
|
|
}
|