Answer the question
In order to leave comments, you need to log in
How to make a choice of the difficulty of the game using the buttons?
I need to make a choice of the difficulty of the game using the UI buttons easy middle hard extreme
In general, when you press, for example, the Easy button, it changes color and becomes non-interactive (not clickable), which means the level of the game is Easy. But after pressing the Middle buttons, it becomes not interactive and with a different color, and the Easy button returned to its previous state (Interactive and old color). Please help)
Answer the question
In order to leave comments, you need to log in
There is a ready-made UI component Toggle
and ToggleGroup
so that they change state just inside the group. But something seems strange to me that you were able to implement a different complexity of the game, but could not in the buttons. And it was worth starting with this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question