修改配件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

@@ -0,0 +1,20 @@
using FairyGUI;
namespace NBF
{
public static class GListExtensions
{
public static void AutoHeight(this GList list)
{
if (list.numItems < 1)
{
list.height = 100;
return;
}
var item = list.GetChildAt(0);
var listHeight = list.numItems * item.height + list.lineGap * list.numItems;
list.height = listHeight;
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 5bb71cdaee584b00a50ea53c6023ea79
timeCreated: 1761876194