|
@@ -87,6 +87,8 @@ namespace GFGGame
|
|
_ui.m_compItemInfo.m_listTag.itemRenderer = RenderListTagItem;
|
|
_ui.m_compItemInfo.m_listTag.itemRenderer = RenderListTagItem;
|
|
|
|
|
|
EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdateItemChange);
|
|
EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdateItemChange);
|
|
|
|
+ EventAgent.AddEventListener(ConstMessage.MONEY_CHANGE, UpdateItemChange);
|
|
|
|
+ // EventAgent.DispatchEvent(ConstMessage.MONEY_CHANGE, RoleDataManager.gold);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -202,6 +204,8 @@ namespace GFGGame
|
|
GuideController.TryGuideClothingShopViewBtnBack(_ui.m_btnBack);
|
|
GuideController.TryGuideClothingShopViewBtnBack(_ui.m_btnBack);
|
|
|
|
|
|
UpdateCJGoodsCount();
|
|
UpdateCJGoodsCount();
|
|
|
|
+ UpdateList(false);
|
|
|
|
+
|
|
}
|
|
}
|
|
private void UpdateCJGoodsCount()
|
|
private void UpdateCJGoodsCount()
|
|
{
|
|
{
|
|
@@ -307,8 +311,8 @@ namespace GFGGame
|
|
RarityIconController.UpdateRarityIcon(listItem.m_rarity, cfg.itemID, false);
|
|
RarityIconController.UpdateRarityIcon(listItem.m_rarity, cfg.itemID, false);
|
|
ItemCfg costItemCfg = ItemCfgArray.Instance.GetCfg(cfg.costID);
|
|
ItemCfg costItemCfg = ItemCfgArray.Instance.GetCfg(cfg.costID);
|
|
listItem.m_iconPrice.url = "ui://CommonGame/" + costItemCfg.res;
|
|
listItem.m_iconPrice.url = "ui://CommonGame/" + costItemCfg.res;
|
|
- listItem.m_txtPrice.text = "" + cfg.costNum;
|
|
|
|
listItem.m_imgOwned.visible = ItemDataManager.GetItemNum(cfg.itemID) > 0;
|
|
listItem.m_imgOwned.visible = ItemDataManager.GetItemNum(cfg.itemID) > 0;
|
|
|
|
+ listItem.m_txtPrice.text = ItemDataManager.GetItemNum(cfg.costID) >= cfg.costNum ? StringUtil.GetColorText(cfg.costNum.ToString(), "#DD994A") : StringUtil.GetColorText(cfg.costNum.ToString(), "#F2989B");
|
|
}
|
|
}
|
|
|
|
|
|
private void UpdateSelectedItemInfo(GComponent listItem, bool tween)
|
|
private void UpdateSelectedItemInfo(GComponent listItem, bool tween)
|