去掉了item+ 小强化 动画

This commit is contained in:
2025-08-01 23:32:39 +08:00
parent 3c349f4195
commit 9d0fdfc0f8
17 changed files with 3128 additions and 9467 deletions

View File

@@ -1,4 +1,4 @@
import { _decorator,Button,EventHandler,EventTouch,Label,NodeEventType,resources,Sprite,SpriteAtlas,tween,UITransform,v3, Vec3,Animation, UI } from "cc";
import { _decorator,Button,EventHandler,EventTouch,Label,NodeEventType,resources,Sprite,SpriteAtlas,tween,UITransform,v3, Vec3,Animation, UI, instantiate, Prefab } 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 { smc } from "../common/SingletonModuleComp";
@@ -293,15 +293,23 @@ export class MissionComp extends CCComp {
}
call_func_card(){
let mission_data=smc.vmdata.mission_data
if(mission_data.gold < (mission_data.refresh_gold+mission_data.buff_refresh_gold)){
oops.gui.toast("金币不足", false);
return
}
oops.message.dispatchEvent(GameEvent.FuncSelect)
mission_data.gold-=(mission_data.refresh_gold+mission_data.buff_refresh_gold)
this.show_lucky_gold()
}
show_lucky_gold(){
var path = "game/gui/lcard";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.setScale(0,0,0)
node.parent = this.node
node.setPosition(v3(this.node.getChildByName("luckybox").position.x,this.node.getChildByName("luckybox").position.y));
tween(node) .to(0.5, {
scale: v3(1,1,1),
position: v3(0,this.node.getChildByName("luckybox").position.y+200),
}, {easing:"backOut"})
.start();
}
private cleanComponents() {
ecs.query(ecs.allOf(HeroViewComp)).forEach(entity => {entity.remove(HeroViewComp);entity.destroy()});
}