|
@@ -293,6 +293,7 @@ namespace GFGGame
|
|
|
|
|
|
if (_currentMenuType == ConstDressUpItemType.TAO_ZHUANG)
|
|
if (_currentMenuType == ConstDressUpItemType.TAO_ZHUANG)
|
|
{
|
|
{
|
|
|
|
+ // return;//套装有icon的监听
|
|
isDress = false;
|
|
isDress = false;
|
|
partsListScrollingPosY = _ui.m_partsList.m_list.scrollPane.scrollingPosY;
|
|
partsListScrollingPosY = _ui.m_partsList.m_list.scrollPane.scrollingPosY;
|
|
|
|
|
|
@@ -302,7 +303,8 @@ namespace GFGGame
|
|
}
|
|
}
|
|
else if (SuitCfgArray.Instance.CheckSuitHasAction(id) && DressUpMenuSuitDataManager.CheckSuitHasActionRes(id))
|
|
else if (SuitCfgArray.Instance.CheckSuitHasAction(id) && DressUpMenuSuitDataManager.CheckSuitHasActionRes(id))
|
|
{
|
|
{
|
|
- listItem.m_comAxtionSelect.target.visible = true;
|
|
|
|
|
|
+ // listItem.m_btnAni.visible = true;
|
|
|
|
+ // listItem.m_comAxtionSelect.target.visible = true;
|
|
UI_PartsListItem.ProxyEnd();
|
|
UI_PartsListItem.ProxyEnd();
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -368,7 +370,7 @@ namespace GFGGame
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(id);
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(id);
|
|
if (itemCfg != null)
|
|
if (itemCfg != null)
|
|
{
|
|
{
|
|
- if(!DressUpMenuItemDataManager.CheckHasItem(itemCfg.id))
|
|
|
|
|
|
+ if (!DressUpMenuItemDataManager.CheckHasItem(itemCfg.id))
|
|
{
|
|
{
|
|
PromptController.Instance.ShowFloatTextPrompt("还未获得这件装扮");
|
|
PromptController.Instance.ShowFloatTextPrompt("还未获得这件装扮");
|
|
return;
|
|
return;
|
|
@@ -728,7 +730,7 @@ namespace GFGGame
|
|
string iconRes = "";
|
|
string iconRes = "";
|
|
string partName = "";
|
|
string partName = "";
|
|
string ext = "png";
|
|
string ext = "png";
|
|
- listItem.m_comAxtionSelect.target.visible = false;
|
|
|
|
|
|
+ listItem.m_btnAni.visible = false;
|
|
if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG)
|
|
if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG)
|
|
{
|
|
{
|
|
SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(id);
|
|
SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(id);
|
|
@@ -741,21 +743,22 @@ namespace GFGGame
|
|
|
|
|
|
listItem.m_ScoreType.visible = false;
|
|
listItem.m_ScoreType.visible = false;
|
|
listItem.m_imgNew.visible = false;
|
|
listItem.m_imgNew.visible = false;
|
|
|
|
+ listItem.m_btnAni.visible = SuitCfgArray.Instance.CheckSuitHasAction(id) && DressUpMenuSuitDataManager.CheckSuitHasActionRes(id);
|
|
|
|
|
|
- listItem.m_comAxtionSelect.m_btnNormal.icon = ResPathUtil.GetIconPath(suitCfg.res, ext);
|
|
|
|
- listItem.m_comAxtionSelect.m_btnAction.icon = ResPathUtil.GetIconPath(suitCfg.res, ext);
|
|
|
|
|
|
+ // listItem.m_comAxtionSelect.m_btnNormal.icon = ResPathUtil.GetIconPath(suitCfg.res, ext);
|
|
|
|
+ // listItem.m_comAxtionSelect.m_btnAction.icon = ResPathUtil.GetIconPath(suitCfg.res, ext);
|
|
|
|
|
|
- if (listItem.m_comAxtionSelect.m_btnNormal.data == null)
|
|
|
|
|
|
+ if (listItem.m_icon.data == null)
|
|
{
|
|
{
|
|
- listItem.m_comAxtionSelect.m_btnNormal.onClick.Add(OnBtnNormalClick);
|
|
|
|
|
|
+ listItem.m_icon.onClick.Add(OnBtnNormalClick);
|
|
}
|
|
}
|
|
- listItem.m_comAxtionSelect.m_btnNormal.data = id;
|
|
|
|
|
|
+ listItem.m_icon.data = id;
|
|
|
|
|
|
- if (listItem.m_comAxtionSelect.m_btnAction.data == null)
|
|
|
|
|
|
+ if (listItem.m_btnAni.data == null)
|
|
{
|
|
{
|
|
- listItem.m_comAxtionSelect.m_btnAction.onClick.Add(OnBtnActionClick);
|
|
|
|
|
|
+ listItem.m_btnAni.onClick.Add(OnBtnActionClick);
|
|
}
|
|
}
|
|
- listItem.m_comAxtionSelect.m_btnAction.data = id;
|
|
|
|
|
|
+ listItem.m_btnAni.data = id;
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -844,6 +847,7 @@ namespace GFGGame
|
|
listItem.m_ScoreType.visible = true;
|
|
listItem.m_ScoreType.visible = true;
|
|
listItem.m_ScoreType.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + itemCfg.mainScore);
|
|
listItem.m_ScoreType.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + itemCfg.mainScore);
|
|
}
|
|
}
|
|
|
|
+ listItem.m_btnAni.visible = false;
|
|
listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, "png");
|
|
listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, "png");
|
|
listItem.m_txtTitle.text = partName;
|
|
listItem.m_txtTitle.text = partName;
|
|
listItem.target.data = id;
|
|
listItem.target.data = id;
|
|
@@ -871,7 +875,6 @@ namespace GFGGame
|
|
if (_currentMenuType == ConstDressUpItemType.TAO_ZHUANG)
|
|
if (_currentMenuType == ConstDressUpItemType.TAO_ZHUANG)
|
|
{
|
|
{
|
|
listItem.m_iconSelected.visible = suitId > 0 && id == suitId;
|
|
listItem.m_iconSelected.visible = suitId > 0 && id == suitId;
|
|
- listItem.m_comAxtionSelect.target.visible = id == selectSuitId && SuitCfgArray.Instance.CheckSuitHasAction(id);
|
|
|
|
}
|
|
}
|
|
else if (_currentMenuType == ConstDressUpItemType.DONG_ZUO)
|
|
else if (_currentMenuType == ConstDressUpItemType.DONG_ZUO)
|
|
{
|
|
{
|