Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When returning to the main menu from the game menu, the mouse style is lost #1398

Open
wonderfulLand opened this issue Jan 20, 2025 · 0 comments

Comments

@wonderfulLand
Copy link
Contributor

1. Describe the bug

When returning to the main menu from the game menu, the mouse style is lost

2.To Reproduce

Image

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

Image

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);
    }
} 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant