品质色块修改

This commit is contained in:
2025-10-23 22:59:04 +08:00
parent af7592331b
commit baa54a3f04
1617 changed files with 825 additions and 463 deletions

View File

@@ -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")]

View File

@@ -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); }

View File

@@ -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;