首次提交

This commit is contained in:
Bob.Song
2026-03-05 18:07:55 +08:00
commit e125bb869e
4534 changed files with 563920 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using FairyGUI;
namespace NBF
{
public abstract class ListItemBase : GButton
{
public virtual void SetData(object showData)
{
OnSetData(showData);
}
protected abstract void OnSetData(object showData);
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 380c357d667646b69158440a7d7eecd9
timeCreated: 1747969715

View File

@@ -0,0 +1,25 @@
/**本脚本为自动生成每次生成会覆盖请勿手动修改生成插件文档及项目地址https://git.whoot.com/whoot-games/whoot.fguieditorplugin**/
using FairyGUI;
using FairyGUI.Utils;
using NBC;
namespace NBF
{
public partial class ListTitleItem
{
public const string URL = "ui://6hgkvlaush9ymc";
public Controller show;
public override void ConstructFromXML(XML xml)
{
base.ConstructFromXML(xml);
show = GetController("show");
OnInited();
UILanguage.TrySetComponentLanguage(this);
}
}
}

View File

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

View File

@@ -0,0 +1,23 @@
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
using UnityEngine;
using FairyGUI;
using NBC;
namespace NBF
{
public partial class ListTitleItem : GButton
{
private void OnInited()
{
}
public virtual void SetData(object showData)
{
if (showData is ClassifyListTitleData listTitleData)
{
this.SetLanguage(listTitleData.Title);
}
}
}
}

View File

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

View File

@@ -0,0 +1,35 @@
/**本脚本为自动生成每次生成会覆盖请勿手动修改生成插件文档及项目地址https://git.whoot.com/whoot-games/whoot.fguieditorplugin**/
using FairyGUI;
using FairyGUI.Utils;
using NBC;
namespace NBF
{
public partial class NoticeItem
{
public const string URL = "ui://6hgkvlaur03uj7";
public Controller style;
public GImage box;
public GTextField TextTitle;
public GTextField TextContent;
public GLoader icon;
public GButton BtnClose;
public override void ConstructFromXML(XML xml)
{
base.ConstructFromXML(xml);
style = GetController("style");
box = (GImage)GetChild("box");
TextTitle = (GTextField)GetChild("TextTitle");
TextContent = (GTextField)GetChild("TextContent");
icon = (GLoader)GetChild("icon");
BtnClose = (GButton)GetChild("BtnClose");
OnInited();
UILanguage.TrySetComponentLanguage(this);
}
}
}

View File

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

View File

@@ -0,0 +1,21 @@
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
using UnityEngine;
using FairyGUI;
using NBC;
namespace NBF
{
public partial class NoticeItem : GComponent
{
private void OnInited()
{
}
public void SetData(string message, Notices.NoticeType noticeType)
{
style.selectedIndex = (int)noticeType;
TextContent.text = message;
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 35a52f92a85d4f440bc65751eb617655