WebGAL icon indicating copy to clipboard operation
WebGAL copied to clipboard

fix: changeFigure and changeBg duration

Open HardyNLee opened this issue 7 months ago • 0 comments

介绍

fix #701

主要更改

  • 现在, changeFigure 和 changeBg 的 duration 可以控制退场时长
    • 使用 changeFigure: none -duration=1000; 可以让指定立绘按给定时长退场
    • 使用 changeFigure: anonther_image.png -duration=1000; 顶替在场立绘时, 新立绘的出场动画与旧退场动画的时长相同
    • 同理, changeFigure: anonther_image.png -exit=<exit>; 也可以控制被顶替立绘的退场效果
  • changeFigure 和 changeBg 的 duration 可以为 0;
  • 进场动画与退场动画相关的 timeout 现在可跟随演出的结束而结束;
    • 提前结束演出会强制完成出场退场动画
    • IStageAnimationObject 新增 stopFunction, 在 removeAnimation 时调用

测试

label:loop;
changeBg:WebGAL_New_Enter_Image.png -duration=200-next;
:WebGAL_New_Enter_Image.png duration=200;
changeBg:bg.png -duration=5000 -next;
:bg.png duration=5000;
changeFigure:stand.png -duration=200 -next;
:stand.png duration=200;
changeFigure:none -duration=5000 -next;
: none 用鼠标触发提前执行此句|按理说现在退场动画要被强制完成 -duration=5000;
changeFigure:stand.png -duration=200 -next;
:stand.png duration=200;
changeFigure:stand2.png -duration=5000 -next;
:stand2.png duration=5000;
changeFigure:stand.png -duration=200 -next;
:stand.png duration=200;
jumpLabel:loop;

HardyNLee avatar Jun 14 '25 16:06 HardyNLee