英雄卡牌++
This commit is contained in:
@@ -4074,7 +4074,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 3.364,
|
||||
"y": 7.476,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -4260,7 +4260,7 @@
|
||||
"a": 255
|
||||
},
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "49c583b3-d566-4c79-9e4c-bd0ca4a4b717@3e941",
|
||||
"__uuid__": "49c583b3-d566-4c79-9e4c-bd0ca4a4b717@600b8",
|
||||
"__expectedType__": "cc.SpriteFrame"
|
||||
},
|
||||
"_type": 0,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -15437,8 +15437,8 @@
|
||||
"rawHeight": 69,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"borderLeft": 94,
|
||||
"borderRight": 94,
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { _decorator, Animation, AnimationClip, Component, Label, Node, resources } from 'cc';
|
||||
import { HeroInfo, HQuality } from '../common/config/heroSet';
|
||||
import { HeroInfo, HQuality, HType } from '../common/config/heroSet';
|
||||
import { smc } from '../common/SingletonModuleComp';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -38,6 +38,9 @@ export class HCardUICom extends Component {
|
||||
this.node.getChildByName("pg").active=hero_data.quality==HQuality.PURPLE
|
||||
this.node.getChildByName("y").active=hero_data.quality==HQuality.ORANGE
|
||||
this.node.getChildByName("yg").active=hero_data.quality==HQuality.ORANGE
|
||||
this.node.getChildByName("type").getChildByName("w").active=hero_data.type==HType.warrior
|
||||
this.node.getChildByName("type").getChildByName("r").active=hero_data.type==HType.remote
|
||||
this.node.getChildByName("type").getChildByName("m").active=hero_data.type==HType.mage
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user