|
@@ -1,3 +1,4 @@
|
|
|
|
+using ET;
|
|
using FairyGUI;
|
|
using FairyGUI;
|
|
namespace GFGGame
|
|
namespace GFGGame
|
|
{
|
|
{
|
|
@@ -59,6 +60,11 @@ namespace GFGGame
|
|
private void UpdateView()
|
|
private void UpdateView()
|
|
{
|
|
{
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(_itemData.id);
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(_itemData.id);
|
|
|
|
+ if(itemCfg == null)
|
|
|
|
+ {
|
|
|
|
+ Log.Error($"使用了一个不存在的物品 {_itemData.id}!");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
_loaIcon.url = ResPathUtil.GetIconPath(itemCfg);
|
|
_loaIcon.url = ResPathUtil.GetIconPath(itemCfg);
|
|
RarityIconController.UpdateRarityIcon(_loaRarity, _itemData.id, false);
|
|
RarityIconController.UpdateRarityIcon(_loaRarity, _itemData.id, false);
|
|
// _imgGot.visible = false;
|
|
// _imgGot.visible = false;
|