对UI进行调整

This commit is contained in:
2025-07-09 10:24:43 +08:00
parent da1db91368
commit f73badd5fc
14 changed files with 34341 additions and 34079 deletions

View File

@@ -108,7 +108,7 @@ export class CardComp extends CCComp {
this.do_card_bg_show(SkillSet[uuid].quality)
this.node.getChildByName("show").getChildByName("coins").active=false
this.skill_slot=data.slot
var icon_path = "game/skills/skill_icon"
var icon_path = "game/heros/cards"
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
const sprite = show.getChildByName("mask").getChildByName("skill").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(SkillSet[uuid].path);

View File

@@ -224,7 +224,7 @@ export class CardsCompComp extends CCComp {
tween().to(0.3, { position: v3(0, 0, 0) }, { easing: 'backIn' })
)
.call(()=>{
this.node.setPosition(v3(0, -1000, 0));
this.node.setPosition(v3(1500, 640, 0));
this.isShowing = false;
this.processQueue(); // 处理队列中的下一个卡牌
})

View File

@@ -156,7 +156,7 @@ export class EquipSkillComp extends CCComp {
this.skill1.cd_time=SkillSet[data.uuid].cd
let icon1 = this.boxs.getChildByName("skill1").getChildByName("icon")
icon1.active=true
var icon_path = "game/skills/skill_icon"
var icon_path = "game/heros/cards"
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
const sprite = icon1.getChildByName("skill").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(SkillSet[data.uuid].path);
@@ -170,7 +170,7 @@ export class EquipSkillComp extends CCComp {
this.skill2.cd_time=SkillSet[data.uuid].cd
let icon2 = this.boxs.getChildByName("skill2").getChildByName("icon")
icon2.active=true
var icon_path = "game/skills/skill_icon"
var icon_path = "game/heros/cards"
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
const sprite = icon2.getChildByName("skill").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(SkillSet[data.uuid].path);
@@ -184,7 +184,7 @@ export class EquipSkillComp extends CCComp {
this.skill3.cd_time=SkillSet[data.uuid].cd
let icon = this.boxs.getChildByName("skill3").getChildByName("icon")
icon.active=true
var icon_path = "game/skills/skill_icon"
var icon_path = "game/heros/cards"
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
const sprite = icon.getChildByName("skill").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(SkillSet[data.uuid].path);

View File

@@ -32,7 +32,7 @@ export class ItemInfoComp extends CCComp {
this.node.getChildByName("skill").active = true;
this.node.getChildByName("name").getComponent(Label).string=SkillSet[args.uuid].name+" 碎片"
this.node.getChildByName("info").getComponent(Label).string="「"+SkillSet[args.uuid].name+"」碎片,用于技能升阶"
var icon_path = "game/skills/skill_icon"
var icon_path = "game/heros/cards"
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
const sprite = this.node.getChildByName("skill").getChildByName("skill").getChildByName("icon").getComponent(Sprite);
// console.log("update_data",atlas,sprite)

View File

@@ -17,7 +17,7 @@ export class MSCard extends ecs.Entity {
}
load(uuid:number=1001,parent:any,zone:number=0) {
var path = "game/gui/MSCard";
var icon_path = "game/skills/skill_icon"
var icon_path = "game/heros/cards"
var prefab: Prefab = oops.res.get(path, Prefab)!;
console.log("load_hcard",prefab)
var node = instantiate(prefab);

View File

@@ -50,7 +50,7 @@ export class VictoryComp extends CCComp {
this.node.setPosition(v3(0,640,0))
}
hide(){
this.node.setPosition(v3(0,-1000,0))
this.node.setPosition(v3(-1500,640,0))
}
do_x10(){
this.clear_x1()