|
@@ -358,7 +358,8 @@ namespace GFGGame
|
|
|
MyDressUpHelper.dressUpObj.AddOrRemove(id, true);
|
|
|
|
|
|
_ui.m_txtDressLimit.text = string.Format("饰品穿戴限制:{0}/{1}", MyDressUpHelper.GetCurrentOrnamentCount(), GlobalCfgArray.globalCfg.dressLimitCount);
|
|
|
- UpdateSearchListPartsSelected();
|
|
|
+ UpdateStepBtn(true);
|
|
|
+ // UpdateSearchListPartsSelected();
|
|
|
|
|
|
UpdateScore();
|
|
|
}
|
|
@@ -502,12 +503,12 @@ namespace GFGGame
|
|
|
|
|
|
private void OnClickBtnNext()
|
|
|
{
|
|
|
- if (!MyDressUpHelper.CheckPutOnFinish())
|
|
|
- {
|
|
|
- AlertUI.Show("只有换好衣服才能出门哦!")
|
|
|
- .SetRightButton(true, "好的");
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (!MyDressUpHelper.CheckPutOnFinish())
|
|
|
+ // {
|
|
|
+ // AlertUI.Show("只有换好衣服才能出门哦!")
|
|
|
+ // .SetRightButton(true, "好的");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
|
|
|
if (!CheckHasNeed())
|
|
|
{
|
|
@@ -1052,12 +1053,25 @@ namespace GFGGame
|
|
|
}
|
|
|
private void UpdateListPartsSelected()
|
|
|
{
|
|
|
- int count = _ui.m_partsList.m_list.numChildren;
|
|
|
+ GList list;
|
|
|
+ if (_ui.m_partsList.target.x == partsListX)
|
|
|
+ {
|
|
|
+ list = _ui.m_partsList.m_list;
|
|
|
+ }
|
|
|
+ else if (_ui.m_partsListSearch.target.x == partsListX)
|
|
|
+ {
|
|
|
+ list = _ui.m_partsListSearch.m_list;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ int count = list.numChildren;
|
|
|
int suitId = MyDressUpHelper.dressUpObj.suitId;
|
|
|
|
|
|
for (int i = 0; i < count; i++)
|
|
|
{
|
|
|
- UI_PartsListItem listItem = UI_PartsListItem.Proxy(_ui.m_partsList.m_list.GetChildAt(i));
|
|
|
+ UI_PartsListItem listItem = UI_PartsListItem.Proxy(list.GetChildAt(i));
|
|
|
int id = (int)listItem.target.data;
|
|
|
if (_currentMenuType == (int)ConstDressUpItemType.TAO_ZHUANG)
|
|
|
{
|