为随机角色卡补 hover 反向链路
新增 SelectRoleClearEventArgs:hover 随机卡时清空选中状态,让上方属性区回到 _randomRoleCard。 - SelectRoleForm.OnRandomHoverEnter 上报事件 - SelectRoleUseCase.ClearSelection 重置 SelectedRoleId 并重建 RawData - SelectRoleController 订阅事件并刷新 Context - SelectRoleForm.prefab 随机卡 _onPointerEnterAction 绑定新方法
This commit is contained in:
@@ -30,6 +30,12 @@ namespace SepCore.UI
|
||||
return BuildModel(roleId);
|
||||
}
|
||||
|
||||
public SelectRoleRawData ClearSelection()
|
||||
{
|
||||
SelectedRoleId = 0;
|
||||
return BuildModel(0);
|
||||
}
|
||||
|
||||
public bool ConfirmSelectedRole()
|
||||
{
|
||||
DRRole[] roles = _roleDataTable != null ? _roleDataTable.GetAllDataRows() : null;
|
||||
|
||||
Reference in New Issue
Block a user