|
@@ -121,15 +121,15 @@ namespace GFGGame
|
|
{
|
|
{
|
|
_selectedItemId = (int)objs[2];//从物品来源面板跳转到商店,需要物品id方便打开界面时做选中处理
|
|
_selectedItemId = (int)objs[2];//从物品来源面板跳转到商店,需要物品id方便打开界面时做选中处理
|
|
_selectedItemCount = (int)objs[3];
|
|
_selectedItemCount = (int)objs[3];
|
|
- ShopCfg[] dataArray = ShopCfgClothingArray.Instance.dataArray;
|
|
|
|
|
|
+ ShopCfg[] dataArray = ClothingShopCfgManager.Instance.GetShopCfgs(_storeId);
|
|
for (int i = 0; i < dataArray.Length; i++)
|
|
for (int i = 0; i < dataArray.Length; i++)
|
|
{
|
|
{
|
|
if (dataArray[i].itemID == _selectedItemId)
|
|
if (dataArray[i].itemID == _selectedItemId)
|
|
{
|
|
{
|
|
_selectedType = dataArray[i].typeIndex;
|
|
_selectedType = dataArray[i].typeIndex;
|
|
_selectedItemClothingId = dataArray[i].id;
|
|
_selectedItemClothingId = dataArray[i].id;
|
|
- ShopCfg clothingShopCfg = ShopCfgClothingArray.Instance.GetCfg(_selectedItemClothingId);
|
|
|
|
- _ui.m_listType.selectedIndex = clothingShopCfg.typeIndex;
|
|
|
|
|
|
+ // ShopCfg clothingShopCfg = ShopCfgClothingArray.Instance.GetCfg(_selectedItemClothingId);
|
|
|
|
+ _ui.m_listType.selectedIndex = _selectedType;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -272,7 +272,7 @@ namespace GFGGame
|
|
|
|
|
|
if (_ui.m_listShop.numItems > 0)
|
|
if (_ui.m_listShop.numItems > 0)
|
|
{
|
|
{
|
|
- ShopCfg clothingShopCfg = ShopCfgClothingArray.Instance.GetCfg(_selectedItemClothingId);
|
|
|
|
|
|
+ ShopCfg clothingShopCfg = ClothingShopCfgManager.Instance.GetShopCfg(_selectedItemClothingId, _storeId);// ShopCfgClothingArray.Instance.GetCfg(_selectedItemClothingId);
|
|
int itemIndex = 0;
|
|
int itemIndex = 0;
|
|
if (_selectedItemId > 0 && clothingShopCfg != null)
|
|
if (_selectedItemId > 0 && clothingShopCfg != null)
|
|
{
|
|
{
|
|
@@ -373,5 +373,8 @@ namespace GFGGame
|
|
|
|
|
|
GuideController.TryGuide(_ui.m_btnBack, ConstGuideId.BUY_CLOTHING, 6, "回到换装", -1, true, 140);
|
|
GuideController.TryGuide(_ui.m_btnBack, ConstGuideId.BUY_CLOTHING, 6, "回到换装", -1, true, 140);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|