how can I change the name of a toolbar button, when I clicking it?
For instance:
I have a button called “Pause”. If I´m clicking it, the game will freeze and the Button-Name is changing to “Resume”. If I´m clicking the Button “Resume”, the game will continue and the button-name is changing to “Pause”. And so on.
I know how to write a button with 2 functions (like pausing and resuming the game), but changing the name of the button? I really don´t know, how to do it.