修改配件item

This commit is contained in:
Bob.Song
2025-10-31 18:03:31 +08:00
parent e0b9d6cd91
commit b2cf8cdb88
92 changed files with 225 additions and 112 deletions

View File

@@ -19,11 +19,17 @@ namespace NBF
protected override void OnShow()
{
ItemInfo = GetData() as ItemInfo;
if (ItemInfo == null || ItemInfo.Config == null)
{
Hide();
return;
}
Quality.SetQuality(ItemInfo.Config.Quality);
Content.Gear.visible = false;
Content.Basic.SetInfo(ItemInfo);
Content.Basic.SetInfo(ItemInfo);
Content.Gear.SetInfo(ItemInfo);
// var model = PrefabsHelper.CreatePrefab(ItemInfo.Config.Model);
Model.SetData(ItemInfo.Config);