|
@@ -69,6 +69,7 @@ namespace GFGGame
|
|
_ui.m_ComBtn.m_c1.selectedIndex = LauncherConfig.netType == LauncherConfig.EnumNetType.LOCAL ? 0 : 1;
|
|
_ui.m_ComBtn.m_c1.selectedIndex = LauncherConfig.netType == LauncherConfig.EnumNetType.LOCAL ? 0 : 1;
|
|
_ui.m_ComBtn.m_txtArenaGrade.text = "";
|
|
_ui.m_ComBtn.m_txtArenaGrade.text = "";
|
|
_ui.m_ComBtn.m_txtArenaRank.text = "";
|
|
_ui.m_ComBtn.m_txtArenaRank.text = "";
|
|
|
|
+ InitChapterText();
|
|
}
|
|
}
|
|
|
|
|
|
protected override void OnHide()
|
|
protected override void OnHide()
|
|
@@ -231,13 +232,20 @@ namespace GFGGame
|
|
OnClickBtnGetAllCardItem();
|
|
OnClickBtnGetAllCardItem();
|
|
_ui.m_ComBtn.m_txtRoleLv.text = "99";
|
|
_ui.m_ComBtn.m_txtRoleLv.text = "99";
|
|
OnClickBtnSetLv();
|
|
OnClickBtnSetLv();
|
|
- _ui.m_ComBtn.m_txtChapter.text = "5";
|
|
|
|
- _ui.m_ComBtn.m_txtChapterLv.text = "1";
|
|
|
|
|
|
+ InitChapterText();
|
|
OnClickBtnSetChapter();
|
|
OnClickBtnSetChapter();
|
|
OnClickBtnSkipCheckOpen();
|
|
OnClickBtnSkipCheckOpen();
|
|
OnClickBtnMaterials();
|
|
OnClickBtnMaterials();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private void InitChapterText()
|
|
|
|
+ {
|
|
|
|
+ var chapterCount = StoryChapterCfgArray.Instance.GetCfgsBysubType(ConstInstanceZonesSubType.Normal).Count;
|
|
|
|
+ _ui.m_ComBtn.m_txtChapter.text = "" + chapterCount;
|
|
|
|
+ StoryChapterCfg storyChapterCfg = StoryChapterCfgArray.Instance.GetCfgBysubTypeAndorder(ConstInstanceZonesSubType.Normal, chapterCount);
|
|
|
|
+ _ui.m_ComBtn.m_txtChapterLv.text = "" + storyChapterCfg.levelCount;
|
|
|
|
+ }
|
|
|
|
+
|
|
private void OnClickBtnMaxFightSpeed()
|
|
private void OnClickBtnMaxFightSpeed()
|
|
{
|
|
{
|
|
FightDataManager.Instance.maxFightSpeed = 8;
|
|
FightDataManager.Instance.maxFightSpeed = 8;
|