为随机角色卡补 hover 反向链路

新增 SelectRoleClearEventArgs:hover 随机卡时清空选中状态,让上方属性区回到 _randomRoleCard。

- SelectRoleForm.OnRandomHoverEnter 上报事件
- SelectRoleUseCase.ClearSelection 重置 SelectedRoleId 并重建 RawData
- SelectRoleController 订阅事件并刷新 Context
- SelectRoleForm.prefab 随机卡 _onPointerEnterAction 绑定新方法
This commit is contained in:
SepComet
2026-06-16 17:09:21 +08:00
committed by basil
parent 0fb4ff01f9
commit 11621ee1c9
7 changed files with 98 additions and 14 deletions
+4 -4
View File
@@ -261,10 +261,10 @@ MonoBehaviour:
_onClickAction:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 0}
m_TargetAssemblyTypeName: UI.UGuiForm, Assembly-CSharp
m_MethodName: PlayUISound
m_Mode: 3
- m_Target: {fileID: 6873972826773845199}
m_TargetAssemblyTypeName: SepCore.UI.RoleItem, SepCore.Presentation
m_MethodName: OnHoverEnter
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine