将 DisplayItemInfoForm 更名为 ItemTooltipForm

This commit is contained in:
SepComet
2026-06-15 11:23:44 +08:00
parent bba17bbac2
commit 44498e5859
27 changed files with 108 additions and 110 deletions
@@ -57,7 +57,7 @@ namespace SepCore.Definition
/// <summary>
/// 物品信息展示页
/// </summary>
DisplayItemInfoForm = 205,
ItemTooltipForm = 205,
/// <summary>
/// 虚拟摇杆。
@@ -1,27 +0,0 @@
using GameFramework;
using GameFramework.Event;
namespace SepCore.Event
{
public class DisplayItemInfoLockEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(DisplayItemInfoLockEventArgs).GetHashCode();
public override int Id => EventId;
public DisplayItemInfoLockEventArgs()
{
}
public static DisplayItemInfoLockEventArgs Create()
{
var args = ReferencePool.Acquire<DisplayItemInfoLockEventArgs>();
return args;
}
public override void Clear()
{
}
}
}
@@ -3,22 +3,22 @@ using GameFramework.Event;
namespace SepCore.Event
{
public class DisplayItemInfoHideEventArgs : GameEventArgs
public class ItemTooltipHideEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(DisplayItemInfoHideEventArgs).GetHashCode();
public static readonly int EventId = typeof(ItemTooltipHideEventArgs).GetHashCode();
public override int Id => EventId;
public bool Force = false;
public DisplayItemInfoHideEventArgs()
public ItemTooltipHideEventArgs()
{
Force = false;
}
public static DisplayItemInfoHideEventArgs Create(bool force = false)
public static ItemTooltipHideEventArgs Create(bool force = false)
{
var args = ReferencePool.Acquire<DisplayItemInfoHideEventArgs>();
var args = ReferencePool.Acquire<ItemTooltipHideEventArgs>();
args.Force = force;
return args;
@@ -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()
{
}
}
}
@@ -3,24 +3,24 @@ using GameFramework.Event;
namespace SepCore.Event
{
public class DisplayItemInfoRecycleEventArgs : GameEventArgs
public class ItemTooltipRecycleEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(DisplayItemInfoRecycleEventArgs).GetHashCode();
public static readonly int EventId = typeof(ItemTooltipRecycleEventArgs).GetHashCode();
public override int Id => EventId;
public int Index;
public int Price;
public DisplayItemInfoRecycleEventArgs()
public ItemTooltipRecycleEventArgs()
{
Index = -1;
Price = 0;
}
public static DisplayItemInfoRecycleEventArgs Create(int index, int price)
public static ItemTooltipRecycleEventArgs Create(int index, int price)
{
var args = ReferencePool.Acquire<DisplayItemInfoRecycleEventArgs>();
var args = ReferencePool.Acquire<ItemTooltipRecycleEventArgs>();
args.Index = index;
args.Price = price;
@@ -4,9 +4,9 @@ using UnityEngine;
namespace SepCore.Event
{
public class DisplayItemShowEventArgs : GameEventArgs
public class ItemTooltipShowEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(DisplayItemShowEventArgs).GetHashCode();
public static readonly int EventId = typeof(ItemTooltipShowEventArgs).GetHashCode();
public override int Id => EventId;
@@ -16,15 +16,15 @@ namespace SepCore.Event
public Vector3 TargetPos { get; private set; }
public DisplayItemShowEventArgs()
public ItemTooltipShowEventArgs()
{
Index = -1;
IsWeapon = false;
}
public static DisplayItemShowEventArgs Create(int index, bool isWeapon, Vector3 targetPos)
public static ItemTooltipShowEventArgs Create(int index, bool isWeapon, Vector3 targetPos)
{
var args = ReferencePool.Acquire<DisplayItemShowEventArgs>();
var args = ReferencePool.Acquire<ItemTooltipShowEventArgs>();
args.Index = index;
args.IsWeapon = isWeapon;
args.TargetPos = targetPos;
@@ -38,4 +38,4 @@ namespace SepCore.Event
TargetPos = Vector3.zero;
}
}
}
}