|
@@ -219,7 +219,7 @@ namespace GFGGame
|
|
|
if (this.currentListType == DressUpListType.List4)
|
|
|
{
|
|
|
this.hideListParts2();
|
|
|
- this.showListParts(ConstDressUpItemType.TAO_ZHUANG);
|
|
|
+ this.showListParts(ConstDressUpItemType.TAO_ZHUANG, true);
|
|
|
}
|
|
|
else if (this.currentListType == DressUpListType.List3)
|
|
|
{
|
|
@@ -346,7 +346,7 @@ namespace GFGGame
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- private void showListParts(int type)
|
|
|
+ private void showListParts(int type, bool selectItem = false)
|
|
|
{
|
|
|
_currentMenuType = type;
|
|
|
if (type == (int)ConstDressUpItemType.TAO_ZHUANG)
|
|
@@ -368,6 +368,15 @@ namespace GFGGame
|
|
|
{
|
|
|
_ui.m_partsList.m_list.height = maxHeight;
|
|
|
}
|
|
|
+ if (selectItem)
|
|
|
+ {
|
|
|
+ int itemId = EquipDataCache.cacher.GetItemIdBuyType(_currentMenuType);
|
|
|
+ if (itemId > 0)
|
|
|
+ {
|
|
|
+ int index = _currentList3.IndexOf(itemId);
|
|
|
+ _ui.m_partsList.m_list.ScrollToView(index);
|
|
|
+ }
|
|
|
+ }
|
|
|
currentListType = DressUpListType.List3;
|
|
|
GTween.To(_ui.target.width, partsListX, 0.5f)
|
|
|
.SetTarget(_ui.m_partsList)
|
|
@@ -610,7 +619,6 @@ namespace GFGGame
|
|
|
|
|
|
_ui.m_partsList.m_list.RemoveChildrenToPool();
|
|
|
_ui.m_partsList.m_list.numItems = _currentList3.Count;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private void UpdateSuitPartsListSort()
|