快捷键重构
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改,生成插件文档及项目地址: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://6hgkvlauoomea";
|
||||
|
||||
public GImage back;
|
||||
|
||||
public override void ConstructFromXML(XML xml)
|
||||
{
|
||||
base.ConstructFromXML(xml);
|
||||
|
||||
back = (GImage)GetChild("back");
|
||||
OnInited();
|
||||
UILanguage.TrySetComponentLanguage(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8042079334b43394ca275c4a2189dbfb
|
||||
@@ -1,27 +0,0 @@
|
||||
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
|
||||
|
||||
using UnityEngine;
|
||||
using FairyGUI;
|
||||
using NBC;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public partial class ListTitleItem : ListItemBase
|
||||
{
|
||||
public ListClassifyData ClassifyData;
|
||||
private void OnInited()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnSetData(object showData)
|
||||
{
|
||||
width = parent.width - 40;
|
||||
ClassifyData = showData as ListClassifyData;
|
||||
if (ClassifyData == null)
|
||||
{
|
||||
ClassifyData = new ListClassifyData(string.Empty);
|
||||
}
|
||||
title = ClassifyData.Title;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d1c42293e0f4ae546ba4419aa2ed199c
|
||||
@@ -1,30 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class TabListData
|
||||
{
|
||||
public string TabName;
|
||||
public bool Selected;
|
||||
public List<object> ListData;
|
||||
|
||||
public void AddTestData(int index)
|
||||
{
|
||||
ListData = new List<object>();
|
||||
TabName = $"标题-{index + 1}";
|
||||
var count1 = Random.Range(5, 10);
|
||||
var count2 = Random.Range(10, 30);
|
||||
for (int i = 0; i < count1; i++)
|
||||
{
|
||||
ListData.Add(new ListClassifyData($"Title-{i}"));
|
||||
for (int j = 0; j < count2; j++)
|
||||
{
|
||||
var item = new ShopGearData();
|
||||
item.title = $"Item {i}-" + j;
|
||||
ListData.Add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 47a09808fe3440d59857224bdc01a91f
|
||||
timeCreated: 1747970638
|
||||
Reference in New Issue
Block a user