I created a MainMenu window with three buttons called "Start", "Settings" and "Exit".
When you click on Settings, the MainWindow closes and a new Settings window opens up.
In the Settings window there are radiobuttons to choose the difficulty and a "save & exit" button.
Now I need to transfer the selected difficulty to the MainMenu in order to start the game in the selected difficulty.
Do you have an idea how I could realise that?
When you click on Settings, the MainWindow closes and a new Settings window opens up.
In the Settings window there are radiobuttons to choose the difficulty and a "save & exit" button.
Now I need to transfer the selected difficulty to the MainMenu in order to start the game in the selected difficulty.
Do you have an idea how I could realise that?