dd
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { _decorator, Label } from "cc";
|
||||
import { _decorator, Color, Label, Sprite } 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 { MissionHomeComp } from "../map/MissionHomeComp";
|
||||
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
||||
import { smc } from "../common/SingletonModuleComp";
|
||||
import { GameSet } from "../common/config/BoxSet";
|
||||
import { ColorSet, GameSet } from "../common/config/BoxSet";
|
||||
import { HeroInfo } from "../common/config/heroSet";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -62,6 +63,17 @@ export class HeroSelectComp extends CCComp {
|
||||
slv.active=true
|
||||
slv.getChildByName("slv").getComponent(Label).string=smc.heros[this.h_uuid].slv.toString()
|
||||
}
|
||||
switch(HeroInfo[this.h_uuid].quality){
|
||||
case 1:
|
||||
this.node.getChildByName("bg").getComponent(Sprite).color= new Color().fromHEX(ColorSet["BLUE"]);
|
||||
break;
|
||||
case 2:
|
||||
this.node.getChildByName("bg").getComponent(Sprite).color= new Color().fromHEX(ColorSet["YELLOW"]);
|
||||
break;
|
||||
case 3:
|
||||
this.node.getChildByName("bg").getComponent(Sprite).color= new Color().fromHEX(ColorSet["RED"]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
/** 全局消息逻辑处理 */
|
||||
// private onHandler(event: string, args: any) {
|
||||
|
||||
Reference in New Issue
Block a user