mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-02 12:32:40 +02:00
fix pause button. I'm not sure why I removed that ...
This commit is contained in:
@@ -403,6 +403,7 @@ GameView::GameView():
|
|||||||
};
|
};
|
||||||
pauseButton = new ui::Button(ui::Point(Size.X-16, Size.Y-16), ui::Point(15, 15), "", "Pause/Resume the simulation"); //Pause
|
pauseButton = new ui::Button(ui::Point(Size.X-16, Size.Y-16), ui::Point(15, 15), "", "Pause/Resume the simulation"); //Pause
|
||||||
pauseButton->SetIcon(IconPause);
|
pauseButton->SetIcon(IconPause);
|
||||||
|
pauseButton->SetTogglable(true);
|
||||||
pauseButton->SetActionCallback(new PauseAction(this));
|
pauseButton->SetActionCallback(new PauseAction(this));
|
||||||
AddComponent(pauseButton);
|
AddComponent(pauseButton);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user