feat(ui): 新增通用确认弹窗并重构英雄出售逻辑

1. 新增CommonPrompt通用确认弹窗组件,支持富文本内容、自定义按钮与弹窗动画
2. 在UIID配置中新增Window弹窗枚举与对应UI配置
3. 重构HeroBoxComp的出售逻辑,添加二次确认防止误触出售英雄
This commit is contained in:
panFD
2026-08-01 23:05:54 +08:00
parent 11ae66fe1d
commit 53fa0d7dc0
5 changed files with 659 additions and 268 deletions

View File

@@ -12,6 +12,8 @@ export enum UIID {
Loading = 1,
/** 加载与延时提示界面 */
Netinstable,
/** 公共确认窗口(标题 + 内容 + 确定/取消) */
Window,
/** 角色控制 */
Role_Controller,
Victory,
@@ -34,6 +36,7 @@ export enum UIID {
export var UIConfigData: { [key: number]: UIConfig } = {
[UIID.Loading]: { layer: LayerType.UI, prefab: "loading/prefab/loading", bundle: "resources" },
[UIID.Netinstable]: { layer: LayerType.PopUp, prefab: "common/prefab/netinstable" },
[UIID.Window]: { layer: LayerType.Dialog, prefab: "common/prefab/window" },
[UIID.Role_Controller]: { layer: LayerType.UI, prefab: "gui/role_controller" },
[UIID.Victory]: { layer: LayerType.UI, prefab: "gui/element/victory" },
[UIID.IBox]: { layer: LayerType.PopUp, prefab: "gui/element/ibox" },