金币系统
This commit is contained in:
@@ -45,6 +45,8 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
gold:10,//金币
|
||||
refresh_gold:1,//刷新金币
|
||||
call_gold:3,//召唤金币
|
||||
add_gold:1,//金币增加
|
||||
change_gold:1,//金币变化
|
||||
exp:0,//经验
|
||||
skp:0,//技能点
|
||||
box:0,//宝箱
|
||||
|
||||
@@ -20,6 +20,8 @@ export enum UIID {
|
||||
ItemInfo,
|
||||
/**物品 */
|
||||
Victory,
|
||||
// /** 提示窗 */
|
||||
// Toast,
|
||||
}
|
||||
|
||||
/** 打开界面方式的配置数据 */
|
||||
@@ -30,4 +32,5 @@ export var UIConfigData: { [key: number]: UIConfig } = {
|
||||
[UIID.Role_Controller]: { layer: LayerType.UI, prefab: "gui/role_controller" },
|
||||
[UIID.ItemInfo]: { layer: LayerType.Dialog, prefab: "gui/element/item_info" },
|
||||
[UIID.Victory]: { layer: LayerType.Dialog, prefab: "gui/element/victory" },
|
||||
// [UIID.Toast]: { layer: LayerType.PopUp, prefab: "common/prefab/toast" },
|
||||
}
|
||||
22
assets/script/game/common/stoast.ts
Normal file
22
assets/script/game/common/stoast.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { _decorator, Component, Node } from 'cc';
|
||||
import { oops } from 'db://oops-framework/core/Oops';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('stoast')
|
||||
export class stoast extends Component {
|
||||
|
||||
|
||||
onAdded(args: any) {
|
||||
console.log("toast打开",args)
|
||||
}
|
||||
|
||||
private close() {
|
||||
oops.gui.removeByNode(this.node);
|
||||
}
|
||||
|
||||
onDestroy() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
9
assets/script/game/common/stoast.ts.meta
Normal file
9
assets/script/game/common/stoast.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "d26fa84f-22b4-4136-bb46-d7e978683365",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
Reference in New Issue
Block a user