将 DisplayItemInfoForm 更名为 ItemTooltipForm
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class ItemTooltipHideEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(ItemTooltipHideEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public bool Force = false;
|
||||
|
||||
public ItemTooltipHideEventArgs()
|
||||
{
|
||||
Force = false;
|
||||
}
|
||||
|
||||
public static ItemTooltipHideEventArgs Create(bool force = false)
|
||||
{
|
||||
var args = ReferencePool.Acquire<ItemTooltipHideEventArgs>();
|
||||
args.Force = force;
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
Force = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a515c94c54304c79b0fa4761f07a732d
|
||||
timeCreated: 1771071838
|
||||
@@ -0,0 +1,27 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class ItemTooltipLockEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(ItemTooltipLockEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public ItemTooltipLockEventArgs()
|
||||
{
|
||||
}
|
||||
|
||||
public static ItemTooltipLockEventArgs Create()
|
||||
{
|
||||
var args = ReferencePool.Acquire<ItemTooltipLockEventArgs>();
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 17754f00ac924fc29b3604cfed7a5efe
|
||||
timeCreated: 1771488601
|
||||
@@ -0,0 +1,36 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class ItemTooltipRecycleEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(ItemTooltipRecycleEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int Index;
|
||||
public int Price;
|
||||
|
||||
public ItemTooltipRecycleEventArgs()
|
||||
{
|
||||
Index = -1;
|
||||
Price = 0;
|
||||
}
|
||||
|
||||
public static ItemTooltipRecycleEventArgs Create(int index, int price)
|
||||
{
|
||||
var args = ReferencePool.Acquire<ItemTooltipRecycleEventArgs>();
|
||||
args.Index = index;
|
||||
args.Price = price;
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
Index = -1;
|
||||
Price = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b959bd91b2fade47990fed6ce898f4f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,41 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
using UnityEngine;
|
||||
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class ItemTooltipShowEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(ItemTooltipShowEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int Index { get; private set; }
|
||||
|
||||
public bool IsWeapon { get; private set; }
|
||||
|
||||
public Vector3 TargetPos { get; private set; }
|
||||
|
||||
public ItemTooltipShowEventArgs()
|
||||
{
|
||||
Index = -1;
|
||||
IsWeapon = false;
|
||||
}
|
||||
|
||||
public static ItemTooltipShowEventArgs Create(int index, bool isWeapon, Vector3 targetPos)
|
||||
{
|
||||
var args = ReferencePool.Acquire<ItemTooltipShowEventArgs>();
|
||||
args.Index = index;
|
||||
args.IsWeapon = isWeapon;
|
||||
args.TargetPos = targetPos;
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
Index = -1;
|
||||
IsWeapon = false;
|
||||
TargetPos = Vector3.zero;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 51bff2c6818f44398b4b8f7d1448b310
|
||||
timeCreated: 1771071724
|
||||
Reference in New Issue
Block a user