品质色块修改
This commit is contained in:
2
Assets/Scripts/UI/Bag/BagPanel.Designer.cs
generated
2
Assets/Scripts/UI/Bag/BagPanel.Designer.cs
generated
@@ -15,7 +15,7 @@ namespace NBF
|
||||
public override string UIResName => "BagPanel";
|
||||
|
||||
[AutoFind(Name = "back")]
|
||||
public GImage back;
|
||||
public GLabel back;
|
||||
[AutoFind(Name = "BottomMenu")]
|
||||
public BottomMenu BottomMenu;
|
||||
[AutoFind(Name = "ItemList")]
|
||||
|
||||
@@ -15,19 +15,21 @@ namespace NBF
|
||||
public override string UIResName => "ItemDetailsPanel";
|
||||
|
||||
[AutoFind(Name = "back")]
|
||||
public GImage back;
|
||||
public GLabel back;
|
||||
[AutoFind(Name = "BottomMenu")]
|
||||
public BottomMenu BottomMenu;
|
||||
[AutoFind(Name = "title")]
|
||||
public GComponent title;
|
||||
[AutoFind(Name = "modelBack")]
|
||||
public GImage modelBack;
|
||||
[AutoFind(Name = "Quality")]
|
||||
public GImage Quality;
|
||||
[AutoFind(Name = "Quality2")]
|
||||
public GImage Quality2;
|
||||
[AutoFind(Name = "Model")]
|
||||
public ModelTexture Model;
|
||||
[AutoFind(Name = "Content")]
|
||||
public ItemDetailsContent Content;
|
||||
[AutoFind(Name = "Quality")]
|
||||
public GImage Quality;
|
||||
public override string[] GetDependPackages(){ return new string[] {"Common"}; }
|
||||
|
||||
public static void Show(object param = null){ App.UI.OpenUI<ItemDetailsPanel>(param); }
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
using UnityEngine;
|
||||
using NBC;
|
||||
using NBF.Fishing2;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
@@ -18,16 +19,15 @@ namespace NBF
|
||||
protected override void OnShow()
|
||||
{
|
||||
ItemInfo = GetData() as ItemInfo;
|
||||
// Model.SetModel();
|
||||
// Instance = Object.Instantiate(prefab);
|
||||
// Debug.LogError($"预制体:{prefab.name} 实例={Instance}");
|
||||
// Model.SetModel(Instance);
|
||||
|
||||
Quality.SetQuality(ItemInfo.Config.Quality);
|
||||
|
||||
|
||||
Content.Basic.SetInfo(ItemInfo);
|
||||
Content.Basic.SetInfo(ItemInfo);
|
||||
|
||||
var model = PrefabsHelper.CreatePrefab(ItemInfo.Config.Model);
|
||||
Model.SetModel(model);
|
||||
// LoadModel(ItemInfo.Config.Model);
|
||||
|
||||
Game.Input.OnUICanceled += OnUICanceled;
|
||||
}
|
||||
@@ -49,6 +49,8 @@ namespace NBF
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected override void OnHide()
|
||||
{
|
||||
Game.Input.OnUICanceled -= OnUICanceled;
|
||||
|
||||
Reference in New Issue
Block a user