|
@@ -242,7 +242,7 @@ namespace GFGGame
|
|
SendLog();
|
|
SendLog();
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- var teapartyRoleCfg = TeapartyRoleCfgArray.Instance.GetCfgsByid(1); //LeagueDataManager.Instance.TeaPartyId
|
|
|
|
|
|
+ var teapartyRoleCfg = TeapartyRoleCfgArray.Instance.GetCfgsByid(LeagueDataManager.Instance.TeaPartyId);
|
|
_ui.m_txtTeaPartyName.text = teapartyRoleCfg[objData.teaPartID - 1].name;
|
|
_ui.m_txtTeaPartyName.text = teapartyRoleCfg[objData.teaPartID - 1].name;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1043,13 +1043,34 @@ namespace GFGGame
|
|
ItemCfg itemCfg = (ItemCfg)item.parent.data;
|
|
ItemCfg itemCfg = (ItemCfg)item.parent.data;
|
|
UI_ComTagItem listItem = UI_ComTagItem.Proxy(item);
|
|
UI_ComTagItem listItem = UI_ComTagItem.Proxy(item);
|
|
string name = itemCfg.tagsArr[index][0].ToString();
|
|
string name = itemCfg.tagsArr[index][0].ToString();
|
|
|
|
+ string score = itemCfg.tagsArr[index][1];
|
|
int tagType = TagCfgArray.Instance.GetCfg(name).type;
|
|
int tagType = TagCfgArray.Instance.GetCfg(name).type;
|
|
UI.CommonGame.UI_ComTag itemTag = UI.CommonGame.UI_ComTag.Proxy(listItem.m_loaTag);
|
|
UI.CommonGame.UI_ComTag itemTag = UI.CommonGame.UI_ComTag.Proxy(listItem.m_loaTag);
|
|
itemTag.m_txtTag.text = name;
|
|
itemTag.m_txtTag.text = name;
|
|
itemTag.m_loaTag.url = ResPathUtil.GetCommonGameResPath("fzd_bqbq_" + tagType);
|
|
itemTag.m_loaTag.url = ResPathUtil.GetCommonGameResPath("fzd_bqbq_" + tagType);
|
|
itemTag.m_loaTag.scale = new Vector2(0.8f, 0.8f);
|
|
itemTag.m_loaTag.scale = new Vector2(0.8f, 0.8f);
|
|
UI.CommonGame.UI_ComTag.ProxyEnd();
|
|
UI.CommonGame.UI_ComTag.ProxyEnd();
|
|
- listItem.m_txtScore.text = itemCfg.tagsArr[index][1];
|
|
|
|
|
|
+ listItem.m_txtScore.text = score;
|
|
|
|
+ UI_ComTagItem.ProxyEnd();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private void ListSuitTagItem(int index, GObject item)
|
|
|
|
+ {
|
|
|
|
+ Dictionary<int, Dictionary<string, int>> tagsArr = (Dictionary<int, Dictionary<string, int>>)item.parent.data;
|
|
|
|
+ UI_ComTagItem listItem = UI_ComTagItem.Proxy(item);
|
|
|
|
+ string name = "";
|
|
|
|
+ string score = "";
|
|
|
|
+ foreach (var info in tagsArr[index].Keys) {
|
|
|
|
+ name = info;
|
|
|
|
+ score = tagsArr[index][info].ToString();
|
|
|
|
+ }
|
|
|
|
+ int tagType = TagCfgArray.Instance.GetCfg(name).type;
|
|
|
|
+ UI.CommonGame.UI_ComTag itemTag = UI.CommonGame.UI_ComTag.Proxy(listItem.m_loaTag);
|
|
|
|
+ itemTag.m_txtTag.text = name;
|
|
|
|
+ itemTag.m_loaTag.url = ResPathUtil.GetCommonGameResPath("fzd_bqbq_" + tagType);
|
|
|
|
+ itemTag.m_loaTag.scale = new Vector2(0.8f, 0.8f);
|
|
|
|
+ UI.CommonGame.UI_ComTag.ProxyEnd();
|
|
|
|
+ listItem.m_txtScore.text = score;
|
|
UI_ComTagItem.ProxyEnd();
|
|
UI_ComTagItem.ProxyEnd();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1066,7 +1087,22 @@ namespace GFGGame
|
|
iconRes = suitCfg.res;
|
|
iconRes = suitCfg.res;
|
|
partName = suitCfg.name;
|
|
partName = suitCfg.name;
|
|
listItem.m_iconSelected.visible = false;
|
|
listItem.m_iconSelected.visible = false;
|
|
- listItem.m_txtScore.text = "" + SuitUtil.GetSuitScore(id);
|
|
|
|
|
|
+ if (!IsTeaPart)
|
|
|
|
+ {
|
|
|
|
+ listItem.m_txtScore.text = "" + SuitUtil.GetSuitScore(id);
|
|
|
|
+ listItem.m_itemType.selectedIndex = 0;
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ if (listItem.m_ListTag.data == null)
|
|
|
|
+ listItem.m_ListTag.itemRenderer = ListSuitTagItem;
|
|
|
|
+
|
|
|
|
+ var tagCfg = DressUpMenuSuitDataManager.GetSuitTagCfgArray(id);
|
|
|
|
+ listItem.m_ListTag.data = tagCfg;
|
|
|
|
+ listItem.m_ListTag.numItems = tagCfg.Count;
|
|
|
|
+ listItem.m_itemType.selectedIndex = 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
RarityIconController.UpdateRarityIcon(listItem.m_rarity, id, false, true);
|
|
RarityIconController.UpdateRarityIcon(listItem.m_rarity, id, false, true);
|
|
listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + suitCfg.rarity;
|
|
listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + suitCfg.rarity;
|
|
listItem.m_imgNew.visible = false;
|
|
listItem.m_imgNew.visible = false;
|
|
@@ -1077,15 +1113,17 @@ namespace GFGGame
|
|
iconRes = itemCfg.res;
|
|
iconRes = itemCfg.res;
|
|
partName = itemCfg.name;
|
|
partName = itemCfg.name;
|
|
listItem.m_iconSelected.visible = MyDressUpHelper.dressUpObj.CheckDressUpItemIsOn(id);
|
|
listItem.m_iconSelected.visible = MyDressUpHelper.dressUpObj.CheckDressUpItemIsOn(id);
|
|
- if (!IsTeaPart)
|
|
|
|
|
|
+ if (!IsTeaPart) {
|
|
listItem.m_txtScore.text = "" + ItemDataManager.GetItemAdditionScore(id, InstanceZonesDataManager.currentScoreType, _fightCfg.needTagsArr);
|
|
listItem.m_txtScore.text = "" + ItemDataManager.GetItemAdditionScore(id, InstanceZonesDataManager.currentScoreType, _fightCfg.needTagsArr);
|
|
|
|
+ listItem.m_itemType.selectedIndex = 0;
|
|
|
|
+ }
|
|
else {
|
|
else {
|
|
if (listItem.m_ListTag.data == null)
|
|
if (listItem.m_ListTag.data == null)
|
|
- {
|
|
|
|
listItem.m_ListTag.itemRenderer = ListTagItem;
|
|
listItem.m_ListTag.itemRenderer = ListTagItem;
|
|
- }
|
|
|
|
|
|
+
|
|
listItem.m_ListTag.data = itemCfg;
|
|
listItem.m_ListTag.data = itemCfg;
|
|
listItem.m_ListTag.numItems = itemCfg.tagsArr.Length;
|
|
listItem.m_ListTag.numItems = itemCfg.tagsArr.Length;
|
|
|
|
+ listItem.m_itemType.selectedIndex = 1;
|
|
}
|
|
}
|
|
|
|
|
|
listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + itemCfg.rarity;
|
|
listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + itemCfg.rarity;
|
|
@@ -1106,11 +1144,6 @@ namespace GFGGame
|
|
_listLongPress.Add(longPressGesture);
|
|
_listLongPress.Add(longPressGesture);
|
|
}
|
|
}
|
|
|
|
|
|
- if (!IsTeaPart)
|
|
|
|
- listItem.m_itemType.selectedIndex = 0;
|
|
|
|
- else
|
|
|
|
- listItem.m_itemType.selectedIndex = 1;
|
|
|
|
-
|
|
|
|
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_" + scoreType;
|
|
listItem.m_ScoreType.url = "ui://CommonGame/kp_sx_" + scoreType;
|
|
@@ -1139,6 +1172,18 @@ namespace GFGGame
|
|
iconRes = itemCfg.res;
|
|
iconRes = itemCfg.res;
|
|
partName = itemCfg.name;
|
|
partName = itemCfg.name;
|
|
listItem.m_iconSelected.visible = MyDressUpHelper.dressUpObj.CheckDressUpItemIsOn(id);
|
|
listItem.m_iconSelected.visible = MyDressUpHelper.dressUpObj.CheckDressUpItemIsOn(id);
|
|
|
|
+
|
|
|
|
+ if (!IsTeaPart)
|
|
|
|
+ listItem.m_txtScore.text = "" + ItemDataManager.GetItemAdditionScore(id, InstanceZonesDataManager.currentScoreType, _fightCfg.needTagsArr);
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ if (listItem.m_ListTag.data == null)
|
|
|
|
+ listItem.m_ListTag.itemRenderer = ListTagItem;
|
|
|
|
+
|
|
|
|
+ listItem.m_ListTag.data = itemCfg;
|
|
|
|
+ listItem.m_ListTag.numItems = itemCfg.tagsArr.Length;
|
|
|
|
+ }
|
|
|
|
+
|
|
listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + itemCfg.rarity;
|
|
listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + itemCfg.rarity;
|
|
RarityIconController.UpdateRarityIcon(listItem.m_rarity, id, false);
|
|
RarityIconController.UpdateRarityIcon(listItem.m_rarity, id, false);
|
|
ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType, true);
|
|
ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType, true);
|
|
@@ -1148,8 +1193,10 @@ namespace GFGGame
|
|
// 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_" + scoreType);
|
|
listItem.m_ScoreType.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + scoreType);
|
|
- if (!IsTeaPart)
|
|
|
|
|
|
+ if (!IsTeaPart) {
|
|
listItem.m_txtScore.text = "" + ItemDataManager.GetItemAdditionScore(id, InstanceZonesDataManager.currentScoreType, _fightCfg.needTagsArr);
|
|
listItem.m_txtScore.text = "" + ItemDataManager.GetItemAdditionScore(id, InstanceZonesDataManager.currentScoreType, _fightCfg.needTagsArr);
|
|
|
|
+ listItem.m_itemType.selectedIndex = 0;
|
|
|
|
+ }
|
|
else
|
|
else
|
|
{
|
|
{
|
|
if (listItem.m_ListTag.data == null)
|
|
if (listItem.m_ListTag.data == null)
|
|
@@ -1158,8 +1205,9 @@ namespace GFGGame
|
|
}
|
|
}
|
|
listItem.m_ListTag.data = itemCfg;
|
|
listItem.m_ListTag.data = itemCfg;
|
|
listItem.m_ListTag.numItems = itemCfg.tagsArr.Length;
|
|
listItem.m_ListTag.numItems = itemCfg.tagsArr.Length;
|
|
|
|
+ listItem.m_itemType.selectedIndex = 1;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
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;
|
|
listItem.target.data = id;
|
|
listItem.target.data = id;
|
|
@@ -1260,7 +1308,15 @@ namespace GFGGame
|
|
{
|
|
{
|
|
_ui.m_btnClose.visible = true;
|
|
_ui.m_btnClose.visible = true;
|
|
_ui.m_grpTips.visible = true;
|
|
_ui.m_grpTips.visible = true;
|
|
- _ui.m_txtHint.text = _levelCfg.hint;
|
|
|
|
|
|
+ string str = "";
|
|
|
|
+ if (!IsTeaPart)
|
|
|
|
+ str = _levelCfg.hint;
|
|
|
|
+ else {
|
|
|
|
+ var teapartyRoleCfg = TeapartyRoleCfgArray.Instance.GetCfgsByid(LeagueDataManager.Instance.TeaPartyId);
|
|
|
|
+ str = teapartyRoleCfg[_TeaPartyID - 1].hint;
|
|
|
|
+ }
|
|
|
|
+ _ui.m_txtHint.text = str;
|
|
|
|
+
|
|
if (this._ui.m_txtHint.textHeight > this._ui.m_txtHint.textFormat.size * 2)
|
|
if (this._ui.m_txtHint.textHeight > this._ui.m_txtHint.textFormat.size * 2)
|
|
{
|
|
{
|
|
this._ui.m_txtHint.align = AlignType.Left;
|
|
this._ui.m_txtHint.align = AlignType.Left;
|