|
@@ -51,7 +51,7 @@ namespace GFGGame
|
|
int has = ItemDataManager.GetItemNum(cfg.costId);
|
|
int has = ItemDataManager.GetItemNum(cfg.costId);
|
|
int need = cfg.costNum;
|
|
int need = cfg.costNum;
|
|
UI_ComConsumeCurrency comConsume = UI_ComConsumeCurrency.Proxy(_ui.m_ComConsume);
|
|
UI_ComConsumeCurrency comConsume = UI_ComConsumeCurrency.Proxy(_ui.m_ComConsume);
|
|
- comConsume.m_txtNeed.text = StringUtil.GetColorText(has.ToString(), has >= need ? "#FFF8EA" : "#C9F1A5");
|
|
|
|
|
|
+ comConsume.m_txtNeed.text = StringUtil.GetColorText(need.ToString(), has >= need ? "#FFF8EA" : "#C9F1A5");
|
|
comConsume.m_txtLine.text = "";
|
|
comConsume.m_txtLine.text = "";
|
|
if (_canFoster && has < need) _canFoster = false;
|
|
if (_canFoster && has < need) _canFoster = false;
|
|
|
|
|
|
@@ -80,7 +80,7 @@ namespace GFGGame
|
|
private void OnListMaterialsItem(EventContext context)
|
|
private void OnListMaterialsItem(EventContext context)
|
|
{
|
|
{
|
|
int itemId = (int)(context.data as GComponent).data;
|
|
int itemId = (int)(context.data as GComponent).data;
|
|
- GoodsItemTipsController.ShowItemTips(itemId);
|
|
|
|
|
|
+ // GoodsItemTipsController.ShowItemTips(itemId);
|
|
ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { itemId, new object[] { typeof(SuitFosterView).FullName, this.viewData } });
|
|
ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { itemId, new object[] { typeof(SuitFosterView).FullName, this.viewData } });
|
|
|
|
|
|
}
|
|
}
|