图标修改

This commit is contained in:
walkpan
2024-12-19 13:59:46 +08:00
parent f8f8eccd5a
commit ea46830731
8 changed files with 3701 additions and 9543 deletions

View File

@@ -52,7 +52,7 @@ export class SingletonModuleComp extends ecs.Comp {
9003:{uuid:9003,lv:3,exp:0,slv:2,stone:0,num:90,x1:3,x10:0},
};
goods:any={
free: [ {uuid:9001,num:100000}, {uuid:1001,num:10}, {uuid:1002,num:10}, {uuid:1007,num:10},],
free: [ {uuid:9001,num:100000}, {uuid:9002,num:10}, {uuid:9003,num:10}],
goods1:[ {uuid:1001,num:100}, {uuid:9002,num:1} ],
herochips:[ {uuid:9001,num:2}, {uuid:9002,num:1} ],
skillchips:[ {uuid:1001,num:100}, {uuid:1002,num:1} ],

View File

@@ -7,9 +7,9 @@ type:
export const Items={
1001:{uuid: 1001,path: "9002",type:1,lv:2,name: "宝箱",info:"打开宝箱获得随机奖励", },
1002:{uuid: 1002,path: "9003",type:1,lv:3,name: "稀有宝箱",info:"打开宝箱获得随机奖励", },
1003:{uuid: 1003,path: "9004",type:1,lv:4,name: "传说宝箱",info:"打开宝箱获得随机奖励", },
1001:{uuid: 1001,path: "1001",type:1,lv:2,name: "宝箱",info:"打开宝箱获得随机奖励", },
1002:{uuid: 1002,path: "1002",type:1,lv:3,name: "稀有宝箱",info:"打开宝箱获得随机奖励", },
1003:{uuid: 1003,path: "1003",type:1,lv:4,name: "传说宝箱",info:"打开宝箱获得随机奖励", },
1004:{uuid: 1004,path: "1004",type:1,lv:3,name: "xxx",info:"英雄升级三星需要的凭证", },
1005:{uuid: 1005,path: "1005",type:1,lv:3,name: "xxx",info:"英雄升级四星需要的凭证", },
1006:{uuid: 1006,path: "1006",type:1,lv:4,name: "xxx",info:"英雄升级五星需要的凭证", },
@@ -24,7 +24,7 @@ export const Items={
1015:{uuid: 1015,path: "1015",type:1,lv:3,name: "稀有生命石",info:"增加装备生命值50,成功几率40%", },
1016:{uuid: 1016,path: "1016",type:1,lv:4,name: "传说生命石",info:"增加装备生命值50,成功几率50%", },
9001:{uuid: 9001,path: "9001",type:1,lv:0,name: "金币",info:"金币不是万能的,但是没有金币是万万不能的", },
9002:{uuid: 9002,path: "1001",type:1,lv:1,name: "经验叶子",info:"提升英雄等级的神奇叶子", },
9003:{uuid: 1007,path: "1007",type:1,lv:1,name: "能量石",info:"充满能量的神秘石头,可以提升战场技能等级", },
9002:{uuid: 9002,path: "9002",type:1,lv:1,name: "叶子",info:"提升英雄等级的神奇叶子", },
9003:{uuid: 9003,path: "9003",type:1,lv:1,name: "经验石",info:"提升英雄等级的神秘石头", },
}

View File

@@ -1,7 +1,8 @@
import { _decorator, instantiate, Prefab } from "cc";
import { _decorator, instantiate, Prefab ,Node, Label} from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
import { smc } from "../common/SingletonModuleComp";
const { ccclass, property } = _decorator;
@@ -9,12 +10,25 @@ const { ccclass, property } = _decorator;
@ccclass('LuckHomeCompComp')
@ecs.register('LuckHomeComp', false)
export class LuckHomeCompComp extends CCComp {
@property({ type: Node })
sbn: Node = null;
@property({ type: Node })
mbn: Node | null = null;
@property({ type: Node })
lbn: Node | null = null;
/** 视图层逻辑代码分离演示 */
start() {
// var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象
// this.on(ModuleEvent.Cmd, this.onHandler, this);
}
check_num(){
this.sbn.getChildByName("num").getComponent(Label).string = smc.items[1001].num.toString();
this.mbn.getChildByName("num").getComponent(Label).string = smc.items[1002].num.toString();
this.lbn.getChildByName("num").getComponent(Label).string = smc.items[1003].num.toString();
}
show_bbox() {
var parent = this.node.getChildByName("bbox")
var path = "game/gui/bbox";