feat(ui): 新增通知组件和配置
添加 Notity UI 组件,包括 TypeScript 脚本、预制体和 UI 配置,用于在游戏中显示通知信息。
This commit is contained in:
19
assets/script/game/common/Notity.ts
Normal file
19
assets/script/game/common/Notity.ts
Normal 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) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
9
assets/script/game/common/Notity.ts.meta
Normal file
9
assets/script/game/common/Notity.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.24",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "9a391961-4220-481b-a970-a71df836cbdf",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -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" },
|
||||
}
|
||||
Reference in New Issue
Block a user