|
@@ -15,6 +15,7 @@ namespace GFGGame
|
|
|
private List<StoryLevelCfg> _storyLevelCfgs;
|
|
|
private int _viewData = 0;
|
|
|
private int itemIndex = 0;
|
|
|
+ private List<string> nameString = new List<string> { "壹", "贰", "叁", "肆", "伍" };
|
|
|
|
|
|
public override void Dispose()
|
|
|
{
|
|
@@ -41,7 +42,7 @@ namespace GFGGame
|
|
|
isReturnView = true;
|
|
|
_valueBarController = new ValueBarController(_ui.m_comValueBar);
|
|
|
|
|
|
- _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("bg_fhl");
|
|
|
+ _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("gzs_fb_bg");
|
|
|
_ui.m_btnChageLine.url = ResPathUtil.GetCommonGameResPath("zsx_fl");
|
|
|
|
|
|
_ui.m_list.itemRenderer = RenderListItem;
|
|
@@ -116,7 +117,7 @@ namespace GFGGame
|
|
|
var limitCfg = LimitCfgArray.Instance.GetCfg(this._studioCfg.limit);
|
|
|
_ui.m_btnAdd.visible = limitCfg.itemID > 0;
|
|
|
_ui.m_role.url = ResPathUtil.GetStudioFilingPicPath(_studioCfg.res); //ResPathUtil.GetBgImgPath(_studioCfg.res);
|
|
|
- _ui.m_btnChange.title = _studioCfg.name;
|
|
|
+ _ui.m_btnChange.icon = "ui://Studio/gzs_" + _studioCfg.res;
|
|
|
_ui.m_txtNum.text = string.Format("剩余次数:{0}/{1}", limitData.TotalPlayMax - limitData.PlayTimes, limitData.MaxStorageCount);
|
|
|
|
|
|
_ui.m_type.SetSelectedIndex(0);
|
|
@@ -139,7 +140,7 @@ namespace GFGGame
|
|
|
// int _index = _storyLevelCfgs.Count - index - 1;
|
|
|
UI_ListLevelItem item = UI_ListLevelItem.Proxy(obj);
|
|
|
//item.m_c1.selectedIndex = index % 2 == 0 ? 0 : 1;
|
|
|
- item.m_txtName.text = _storyLevelCfgs[index].name;
|
|
|
+ item.m_txtName.text = _storyLevelCfgs[index].name + "-" + nameString[index];
|
|
|
bool isFight = string.IsNullOrEmpty(_storyLevelCfgs[index].storyStartID);
|
|
|
string resBg = isFight ? "cyjd_di_1" : "cyjd_di_2";
|
|
|
//item.m_loaBg.url = string.Format("ui://Studio/{0}", resBg);
|
|
@@ -147,6 +148,7 @@ namespace GFGGame
|
|
|
if (isFight)
|
|
|
{
|
|
|
//item.m_loaBg.url = "ui://Studio/cyjd_di_1";
|
|
|
+ item.m_flow.visible = true;
|
|
|
item.m_loaIcon.visible = false;
|
|
|
item.m_loaItem.visible = true;
|
|
|
StoryFightCfg storyFightCfg = StoryFightCfgArray.Instance.GetCfg(_storyLevelCfgs[index].fightID);
|
|
@@ -162,12 +164,14 @@ namespace GFGGame
|
|
|
else
|
|
|
{
|
|
|
//item.m_loaBg.url = "ui://Studio/cyjd_di_2";
|
|
|
+ item.m_flow.visible = false;
|
|
|
item.m_loaItem.visible = false;
|
|
|
item.m_loaIcon.visible = true;
|
|
|
item.m_loaIcon.url = string.Format("ui://Studio/{0}", _studioCfg.res);
|
|
|
}
|
|
|
item.m_grpLock.visible = index > 0 && !InstanceZonesDataManager.CheckLevelPass(_storyLevelCfgs[index - 1].id);
|
|
|
- item.m_comFlower.m_c1.selectedIndex = InstanceZonesDataManager.GetStarCountHistory(_storyLevelCfgs[index].id);
|
|
|
+ item.m_comFlower.m_c1.selectedIndex = 0;//InstanceZonesDataManager.GetStarCountHistory(_storyLevelCfgs[index].id);
|
|
|
+ item.m_c2.selectedIndex = InstanceZonesDataManager.GetStarCountHistory(_storyLevelCfgs[index].id);
|
|
|
if (item.m_loaBg.data == null)
|
|
|
{
|
|
|
item.m_loaBg.onClick.Add(OnListItemClick);
|
|
@@ -239,7 +243,7 @@ namespace GFGGame
|
|
|
private void UpdateRedDot()
|
|
|
{
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnReward, StudioDataManager.Instance.GetFilingRewardState(StudioDataManager.Instance.filingChapterId));
|
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_btnChange, RedDotDataManager.Instance.GetStudioFilingRed(false));
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnChange, RedDotDataManager.Instance.GetStudioFilingRed(false),"",-27);
|
|
|
}
|
|
|
|
|
|
private void CheckGuide(object param)
|