feat(ui): 新增通知组件和配置

添加 Notity UI 组件,包括 TypeScript 脚本、预制体和 UI 配置,用于在游戏中显示通知信息。
This commit is contained in:
walkpan
2026-03-28 13:16:13 +08:00
parent 8006331308
commit 7a3d7dba2f
5 changed files with 784 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { _decorator, Component, Label, Node } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('Notity')
export class Notity extends Component {
@property(Label)
private lab_content: Label = null!;
start() {
}
update(deltaTime: number) {
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "9a391961-4220-481b-a970-a71df836cbdf",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -16,6 +16,7 @@ export enum UIID {
Role_Controller,
Victory,
IBox,
Notity,
}
/** 打开界面方式的配置数据 */
@@ -25,4 +26,5 @@ export var UIConfigData: { [key: number]: UIConfig } = {
[UIID.Role_Controller]: { layer: LayerType.UI, prefab: "gui/role_controller" },
[UIID.Victory]: { layer: LayerType.UI, prefab: "gui/element/victory" },
[UIID.IBox]: { layer: LayerType.UI, prefab: "gui/element/ibox" },
[UIID.Notity]: { layer: LayerType.UI, prefab: "gui/element/notity" },
}