添加序列帧动画

This commit is contained in:
2025-06-09 20:00:33 +08:00
parent ea0084b8c6
commit 62a69f1596
321 changed files with 1124 additions and 528 deletions

View File

@@ -190,7 +190,6 @@ export class DailyChallenge extends Laya.Script {
const nowDay = new Date().getDate()
ResourceManager.getInstance().loadTexture(info.icon_res, this.trophy_icon)
ResourceManager.getInstance().loadTexture(respath.dc_render_texture, this.trophy_light)
// 设置背景
if (user.get_trophyRecord(info.year, info.month)) {
ResourceManager.getInstance().loadTexture(respath.dc_top_bg_finish, this.bg_dc)

View File

@@ -3,6 +3,7 @@ import { config } from "../../constants/config"
import { MONTH_LIST } from "../../models/DCManager"
import { ResourceManager } from "../../models/ResourceManager"
import { Utility_EaseOut_2 } from "../../utils/utility"
import { UISequenceAnimation } from "../common/UISequenceAnimation"
const { regClass, property } = Laya
@@ -28,9 +29,21 @@ export class TrophyClaim extends Laya.Script {
Laya.Tween.to(this.mask, {alpha: 0.8}, 600)
this.center = this.owner.getChildByName("center") as Laya.Box
this.center.scaleX = 0
this.center.scaleY = 0
Laya.Tween.to(this.center, {scaleX: 1, scaleY: 1}, 200, Utility_EaseOut_2, null, 200)
const light = this.center.getChildByName("light") as Laya.Image
light.scaleX = 0
light.scaleY = 0
Laya.Tween.to(light, {scaleX: 1, scaleY: 1}, 200, Utility_EaseOut_2, null, 200)
const trophy = this.center.getChildByName("trophy") as Laya.Image
trophy.scaleX = 0
trophy.scaleY = 0
Laya.Tween.to(trophy, {scaleX: 1, scaleY: 1}, 200, Utility_EaseOut_2, null, 200)
const blossom = trophy.getChildByName("blossom").getComponent(UISequenceAnimation)
Laya.timer.once(400, this, ()=>{
blossom.onSetRunning(true)
})
const label_titlle = this.center.getChildByName("label_titlle") as Laya.Label
label_titlle.alpha = 0