This commit is contained in:
2025-05-22 10:16:04 +08:00
parent b0abc1c30a
commit fa586fccac
115 changed files with 3440 additions and 19 deletions

View File

@@ -0,0 +1,22 @@
/**本脚本为自动生成每次生成会覆盖请勿手动修改生成插件文档及项目地址https://git.whoot.com/whoot-games/whoot.fguieditorplugin**/
using FairyGUI;
using FairyGUI.Utils;
using NBC;
using System.Collections.Generic;
namespace NBF
{
/// <summary> </summary>
public partial class FishingShop
{
public GObject this[string aKey] => ContentPane.GetChild(aKey);
[AutoFind(Name = "Banner")]
public GLabel Banner;
[AutoFind(Name = "BtnClose")]
public GButton BtnClose;
public override string[] GetDependPackages(){ return new string[] {"Common"}; }
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 77b9a0646693d344b8dd031f4537c3c8

View File

@@ -0,0 +1,44 @@
// 本脚本只在不存在时会生成一次。已存在不会再次生成覆盖
using FairyGUI;
using UnityEngine;
using NBC;
using UIPanel = NBC.UIPanel;
namespace NBF
{
public partial class FishingShop : UIPanel
{
public override string UIPackName => "Shop";
public override string UIResName => "FishingShop";
protected override void OnInit()
{
base.OnInit();
this.AutoAddClick(OnClick);
}
protected override void OnShow()
{
base.OnShow();
}
private void OnClick(GComponent btn)
{
if (btn == BtnClose)
{
Hide();
}
}
protected override void OnHide()
{
base.OnHide();
}
protected override void OnDestroy()
{
base.OnDestroy();
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: b9c7e605b14059445a8598c3cc8d3997