补全 UI 设计
- `ItemDescForm` 道具详细信息面板,目前还未添加 DescText 内容的赋值 - `RepoForm` 道具入槽逻辑调整,为了适应 `ItemDescForm` 的点击打开逻辑,点击道具自动匹配槽位改成拖动道具到相应槽位 - 添加了一系列图片素材
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace GeometryTD.CustomEvent
|
||||
{
|
||||
public class RepoFormReturnEventArgs : GameEventArgs
|
||||
{
|
||||
public static int EventId => typeof(RepoFormReturnEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
|
||||
public static RepoFormReturnEventArgs Create()
|
||||
{
|
||||
return ReferencePool.Acquire<RepoFormReturnEventArgs>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 715637c38a07476890901dd8737fc052
|
||||
timeCreated: 1772595255
|
||||
@@ -0,0 +1,31 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
using UnityEngine;
|
||||
|
||||
namespace GeometryTD.CustomEvent
|
||||
{
|
||||
public class RepoItemDetailRequestedEventArgs : GameEventArgs
|
||||
{
|
||||
public static int EventId => typeof(RepoItemDetailRequestedEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public long ItemId { get; private set; }
|
||||
|
||||
public Vector3 TargetPos { get; private set; }
|
||||
|
||||
public static RepoItemDetailRequestedEventArgs Create(long itemId, Vector3 targetPos)
|
||||
{
|
||||
var args = ReferencePool.Acquire<RepoItemDetailRequestedEventArgs>();
|
||||
args.ItemId = itemId;
|
||||
args.TargetPos = targetPos;
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
ItemId = 0;
|
||||
TargetPos = Vector3.zero;
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c5c0e535b0c3a4c4fa2a9e12f57c77ae
|
||||
guid: 6e6a01b06c4b4a468d40356dc05e003f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -8,4 +8,4 @@ MonoImporter:
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,30 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace GeometryTD.CustomEvent
|
||||
{
|
||||
public class RepoItemDragEndedEventArgs : GameEventArgs
|
||||
{
|
||||
public static int EventId => typeof(RepoItemDragEndedEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public long ItemId { get; private set; }
|
||||
|
||||
public bool Assigned { get; private set; }
|
||||
|
||||
public static RepoItemDragEndedEventArgs Create(long itemId, bool assigned)
|
||||
{
|
||||
RepoItemDragEndedEventArgs args = ReferencePool.Acquire<RepoItemDragEndedEventArgs>();
|
||||
args.ItemId = itemId;
|
||||
args.Assigned = assigned;
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
ItemId = 0;
|
||||
Assigned = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: de9c832a47e04d39b84c3fb561602bb3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,26 +0,0 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user