From 17e63aa8264ee70ef6f6014a0656c6f573c67729 Mon Sep 17 00:00:00 2001 From: Katchan <35238981+KatchanNve@users.noreply.github.com> Date: Thu, 9 Dec 2021 12:46:40 +0100 Subject: [PATCH] Add stage icon --- client/src/main/java/fr/lnl/game/client/view/Cell.java | 3 +++ client/src/main/java/fr/lnl/game/client/view/Window.java | 1 + 2 files changed, 4 insertions(+) diff --git a/client/src/main/java/fr/lnl/game/client/view/Cell.java b/client/src/main/java/fr/lnl/game/client/view/Cell.java index 7cb48e5..7e3c3d6 100644 --- a/client/src/main/java/fr/lnl/game/client/view/Cell.java +++ b/client/src/main/java/fr/lnl/game/client/view/Cell.java @@ -82,4 +82,7 @@ public class Cell extends Rectangle { return sp; } + public static Image getPlayerImage() { + return PLAYER_IMAGE; + } } diff --git a/client/src/main/java/fr/lnl/game/client/view/Window.java b/client/src/main/java/fr/lnl/game/client/view/Window.java index 5a19a77..8a8c12f 100644 --- a/client/src/main/java/fr/lnl/game/client/view/Window.java +++ b/client/src/main/java/fr/lnl/game/client/view/Window.java @@ -47,6 +47,7 @@ public class Window extends AbstractView { Scene scene = new Scene(createContent()); stage.setScene(scene); stage.setTitle("Game"); + stage.getIcons().add(Cell.getPlayerImage()); stage.setResizable(false); stage.sizeToScene(); stage.show();