mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-01-12 14:14:52 +08:00
fix: test build
This commit is contained in:
parent
6f0dfba4aa
commit
4cffe30910
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user