fix: test build

This commit is contained in:
huanghongxun 2022-01-23 15:06:22 +08:00
parent 6f0dfba4aa
commit 4cffe30910
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ public abstract class SkinCanvasSupport implements Consumer<SkinCanvas> {
Stage stage = new Stage();
stage.setTitle(title);
SkinCanvas canvas = Test.createSkinCanvas();
canvas.updateSkin(new Image(input), skin.getName().contains("[alex]"));
canvas.updateSkin(new Image(input), skin.getName().contains("[alex]"), null);
Scene scene = new Scene(canvas);
stage.setScene(scene);
stage.show();

View File

@ -17,7 +17,7 @@ public class Test extends Application {
public static SkinCanvas createSkinCanvas() {
SkinCanvas canvas = new SkinCanvas(SkinCanvas.STEVE, 400, 400, true);
canvas.getAnimationplayer().addSkinAnimation(new SkinAniWavingArms(100, 2000, 7.5, canvas), new SkinAniRunning(100, 100, 30, canvas));
canvas.getAnimationPlayer().addSkinAnimation(new SkinAniWavingArms(100, 2000, 7.5, canvas), new SkinAniRunning(100, 100, 30, canvas));
FunctionHelper.alwaysB(Consumer<SkinCanvas>::accept, canvas, new SkinCanvasSupport.Mouse(.5), new SkinCanvasSupport.Drag(TITLE));
return canvas;
}