补充相关 UI

- 事件 UI:EventForm
    - 选项:OptionItem
- 仓库 UI:RepoForm
    - 组装槽:CombineSlotItem
    - 组件列表槽:RepoItem
This commit is contained in:
SepComet
2026-02-26 23:29:32 +08:00
parent 11e4c1c1f2
commit d9c118ace3
59 changed files with 5986 additions and 1055 deletions
@@ -0,0 +1,26 @@
using GameFramework;
using GameFramework.Event;
namespace GeometryTD.CustomEvent
{
public class CombineSlotClickedEventArgs : GameEventArgs
{
public static int EventId => typeof(CombineSlotClickedEventArgs).GetHashCode();
public override int Id => EventId;
public int SlotIndex { get; private set; } = -1;
public static CombineSlotClickedEventArgs Create(int slotIndex)
{
CombineSlotClickedEventArgs args = ReferencePool.Acquire<CombineSlotClickedEventArgs>();
args.SlotIndex = slotIndex;
return args;
}
public override void Clear()
{
SlotIndex = -1;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ba4b42e0bcec06040b873823cf1be8d8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,26 @@
using GameFramework;
using GameFramework.Event;
namespace GeometryTD.CustomEvent
{
public class RepoItemSelectedEventArgs : GameEventArgs
{
public static int EventId => typeof(RepoItemSelectedEventArgs).GetHashCode();
public override int Id => EventId;
public long ItemId { get; private set; }
public static RepoItemSelectedEventArgs Create(long itemId)
{
RepoItemSelectedEventArgs args = ReferencePool.Acquire<RepoItemSelectedEventArgs>();
args.ItemId = itemId;
return args;
}
public override void Clear()
{
ItemId = 0;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c5c0e535b0c3a4c4fa2a9e12f57c77ae
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: