-
-
Notifications
You must be signed in to change notification settings - Fork 621
Open
Labels
type:bugDoesn't behave according to specificationDoesn't behave according to specification
Description
1. Describe the bug
When returning to the main menu from the game menu, the mouse style is lost
2.To Reproduce
1.As shown in the image above, click the button "main menu" on the game page to reproduce it
2.Repeat it a few times and it will appear
3.Screenshots
Bug As shown in the image above, the mouse style has been lost
4.Context and environment variables
4.1 System operation
chip:m4
os: 15.1
The latest mac computer, mac mini4
4.2 jdk version
java version "21.0.5" 2024-10-15 LTS
Java(TM) SE Runtime Environment (build 21.0.5+9-LTS-239)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.5+9-LTS-239, mixed mode, sharing)
4.3 fxgl version
<dependency>
<groupId>com.github.almasb</groupId>
<artifactId>fxgl</artifactId>
<version>21</version>
</dependency>
4.4 game code
package com.fx.cursor;
import com.almasb.fxgl.app.GameApplication;
import com.almasb.fxgl.app.GameSettings;
import com.almasb.fxgl.dsl.FXGL;
import javafx.scene.paint.Color;
public class HelloApplication extends GameApplication {
@Override
protected void initSettings(GameSettings settings) {
settings.setMainMenuEnabled(true);
settings.setGameMenuEnabled(true);
}
@Override
protected void initGame() {
FXGL.getGameScene().setBackgroundColor(Color.BLACK);
}
public static void main(String[] args) {
GameApplication.launch(args);
}
}
Metadata
Metadata
Assignees
Labels
type:bugDoesn't behave according to specificationDoesn't behave according to specification