|
@@ -26,6 +26,7 @@ namespace GFGGame
|
|
private int _currentSuitId;
|
|
private int _currentSuitId;
|
|
private StoryLevelCfg _levelCfg;
|
|
private StoryLevelCfg _levelCfg;
|
|
private StoryFightCfg _fightCfg;
|
|
private StoryFightCfg _fightCfg;
|
|
|
|
+ private int scoreType = 0; //目标分数类型保存
|
|
|
|
|
|
private const int SORT_BY_HIGH_SCORE = 0;
|
|
private const int SORT_BY_HIGH_SCORE = 0;
|
|
private const int SORT_BY_LOW_SCORE = 1;
|
|
private const int SORT_BY_LOW_SCORE = 1;
|
|
@@ -149,9 +150,12 @@ namespace GFGGame
|
|
_fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID);
|
|
_fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID);
|
|
if (_levelCfg.type == ConstInstanceZonesType.Field)
|
|
if (_levelCfg.type == ConstInstanceZonesType.Field)
|
|
{
|
|
{
|
|
- _fightCfg.scoreType = FieldDataManager.Instance.fieldInfos.theme;
|
|
|
|
|
|
+ scoreType = FieldDataManager.Instance.fieldInfos.theme;
|
|
_ui.m_btnAutoPlay.visible = false;
|
|
_ui.m_btnAutoPlay.visible = false;
|
|
}
|
|
}
|
|
|
|
+ else {
|
|
|
|
+ scoreType = _fightCfg.scoreType;
|
|
|
|
+ }
|
|
InstanceZonesDataManager.FightScene = _levelCfg.type;
|
|
InstanceZonesDataManager.FightScene = _levelCfg.type;
|
|
|
|
|
|
_ui.m_compNeed.target.visible = _fightCfg.needItemId > 0 || _fightCfg.needSuitId > 0 || _fightCfg.needTagsArr.Length > 0;
|
|
_ui.m_compNeed.target.visible = _fightCfg.needItemId > 0 || _fightCfg.needSuitId > 0 || _fightCfg.needTagsArr.Length > 0;
|
|
@@ -177,7 +181,7 @@ namespace GFGGame
|
|
_ui.m_compNeed.m_imgGot.visible = false;
|
|
_ui.m_compNeed.m_imgGot.visible = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- InstanceZonesDataManager.currentScoreType = _fightCfg.scoreType;
|
|
|
|
|
|
+ InstanceZonesDataManager.currentScoreType = scoreType;
|
|
//一级菜单
|
|
//一级菜单
|
|
_ui.m_comListType1.m_listType.RemoveChildrenToPool();
|
|
_ui.m_comListType1.m_listType.RemoveChildrenToPool();
|
|
_ui.m_comListType1.m_listType.numItems = DressUpMenuItemCfg1Array.Instance.dataArray.Length - 3;
|
|
_ui.m_comListType1.m_listType.numItems = DressUpMenuItemCfg1Array.Instance.dataArray.Length - 3;
|
|
@@ -192,7 +196,7 @@ namespace GFGGame
|
|
_ui.m_partsList.target.x = _ui.target.width;
|
|
_ui.m_partsList.target.x = _ui.target.width;
|
|
_ui.m_partsList2.target.x = _ui.target.width;
|
|
_ui.m_partsList2.target.x = _ui.target.width;
|
|
_ui.m_partsListSearch.target.x = _ui.target.width;
|
|
_ui.m_partsListSearch.target.x = _ui.target.width;
|
|
- _ui.m_scoreType.url = "ui://CommonGame/kp_sx_" + _fightCfg.scoreType;
|
|
|
|
|
|
+ _ui.m_scoreType.url = "ui://CommonGame/kp_sx_" + scoreType;
|
|
this.showListType1();
|
|
this.showListType1();
|
|
if (_sceneObject == null)
|
|
if (_sceneObject == null)
|
|
{
|
|
{
|
|
@@ -293,7 +297,7 @@ namespace GFGGame
|
|
|
|
|
|
private void OnClickBtnClothingShop()
|
|
private void OnClickBtnClothingShop()
|
|
{
|
|
{
|
|
- ViewManager.Show<ClothingShopView>(new object[] { null, _fightCfg.scoreType }, null, false, true);
|
|
|
|
|
|
+ ViewManager.Show<ClothingShopView>(new object[] { null, scoreType }, null, false, true);
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickListType1Item(EventContext context)
|
|
private void OnClickListType1Item(EventContext context)
|
|
@@ -566,7 +570,7 @@ namespace GFGGame
|
|
if (CardDataManager.GetCardListByRarity(0).Count > 0)
|
|
if (CardDataManager.GetCardListByRarity(0).Count > 0)
|
|
{
|
|
{
|
|
|
|
|
|
- ViewManager.Show<StoryCardChoose>(_fightCfg.scoreType);
|
|
|
|
|
|
+ ViewManager.Show<StoryCardChoose>(scoreType);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -997,7 +1001,7 @@ namespace GFGGame
|
|
}
|
|
}
|
|
listItem.m_btnAni.visible = false;
|
|
listItem.m_btnAni.visible = false;
|
|
listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, ext);
|
|
listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, ext);
|
|
- listItem.m_ScoreType.url = "ui://CommonGame/kp_sx_" + _fightCfg.scoreType;
|
|
|
|
|
|
+ listItem.m_ScoreType.url = "ui://CommonGame/kp_sx_" + scoreType;
|
|
listItem.m_txtTitle.text = partName;
|
|
listItem.m_txtTitle.text = partName;
|
|
listItem.target.data = id;
|
|
listItem.target.data = id;
|
|
listItem.m_imgNeed.visible = _fightCfg.needItemId == id || _fightCfg.needSuitId == id;
|
|
listItem.m_imgNeed.visible = _fightCfg.needItemId == id || _fightCfg.needSuitId == id;
|
|
@@ -1031,8 +1035,8 @@ namespace GFGGame
|
|
// int mainScore;
|
|
// int mainScore;
|
|
// int mainValuel;
|
|
// int mainValuel;
|
|
// ItemDataManager.GetMainScore(id, out mainScore, out mainValuel);
|
|
// ItemDataManager.GetMainScore(id, out mainScore, out mainValuel);
|
|
- listItem.m_ScoreType.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + _fightCfg.scoreType);
|
|
|
|
- listItem.m_txtScore.text = "" + ItemDataManager.GetItemAdditionScore(id, _fightCfg.scoreType, _fightCfg.needTagsArr);
|
|
|
|
|
|
+ listItem.m_ScoreType.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + scoreType);
|
|
|
|
+ listItem.m_txtScore.text = "" + ItemDataManager.GetItemAdditionScore(id, scoreType, _fightCfg.needTagsArr);
|
|
|
|
|
|
listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, ext);
|
|
listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, ext);
|
|
listItem.m_txtTitle.text = partName;
|
|
listItem.m_txtTitle.text = partName;
|