|
@@ -119,6 +119,7 @@ namespace GFGGame
|
|
|
_ui.m_partsList.target.x = _ui.target.width;
|
|
|
_ui.m_partsList2.target.x = _ui.target.width;
|
|
|
this.showListType1();
|
|
|
+
|
|
|
if (_sceneObject == null)
|
|
|
{
|
|
|
_sceneObject = GameObject.Instantiate(_scenePrefab);
|
|
@@ -324,6 +325,7 @@ namespace GFGGame
|
|
|
if (_currentList2 != null)
|
|
|
{
|
|
|
this.showListType2();
|
|
|
+ // _ui.m_comListType2.m_listType.numItems = _ui.m_comListType2.m_listType.numItems;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -336,6 +338,8 @@ namespace GFGGame
|
|
|
this.showListType1();
|
|
|
this.hideListType2();
|
|
|
}
|
|
|
+ // _ui.m_comListType1.m_listType.numItems = _ui.m_comListType1.m_listType.numItems;
|
|
|
+ // this.ShowSubList();
|
|
|
}
|
|
|
|
|
|
private void OnClickBtnDelete()
|
|
@@ -387,11 +391,16 @@ namespace GFGGame
|
|
|
_ui.m_comListType1.m_listType.height = maxHeight;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ // private void ShowSubList()
|
|
|
+ // {
|
|
|
+ // _ui.m_comListType1.m_listType.numItems = _ui.m_comListType1.m_listType.numItems;
|
|
|
+ // _ui.m_comListType2.m_listType.numItems = _ui.m_comListType2.m_listType.numItems;
|
|
|
+ // }
|
|
|
private void showListType1()
|
|
|
{
|
|
|
_currentList2 = null;
|
|
|
currentListType = DressUpListType.List1;
|
|
|
+ _ui.m_comListType1.m_listType.numItems = DressUpMenuItemCfg1Array.Instance.dataArray.Length;
|
|
|
GTween.To(_ui.target.width, listType1X, 0.5f)
|
|
|
.SetTarget(_ui.m_comListType1.target)
|
|
|
.OnUpdate((GTweener t) =>
|
|
@@ -540,7 +549,7 @@ namespace GFGGame
|
|
|
_ui.m_partsList2.target.x = t.value.x;
|
|
|
});
|
|
|
}
|
|
|
- /********************************************************************************************************************************************/
|
|
|
+ /****************************************************************************************************************************/
|
|
|
private void ListType1Item(int index, GObject item)
|
|
|
{
|
|
|
UI_TypeItem typeItem = UI_TypeItem.Proxy(item);
|
|
@@ -585,7 +594,7 @@ namespace GFGGame
|
|
|
listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + suitCfg.rarity;
|
|
|
|
|
|
listItem.m_ScoreType.visible = false;
|
|
|
-
|
|
|
+ listItem.m_imgNew.visible = false;
|
|
|
}
|
|
|
else
|
|
|
{
|