Adding a restart timer when resuming the game

This commit is contained in:
Zoe Roux
2021-06-18 17:56:34 +02:00
parent 6015b62664
commit a55b1543c9
7 changed files with 47 additions and 11 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ namespace BBM
.addComponent<Drawable2DComponent, RAY2D::Text>("Debug Mode: Off", 70, RAY::Vector2(), BLACK)
.addComponent<OnClickComponent>([](WAL::Entity &entity, WAL::Wal &wal)
{
RAY2D::Text *text = dynamic_cast<RAY2D::Text *>(entity.getComponent<Drawable2DComponent>().drawable.get());
auto *text = dynamic_cast<RAY2D::Text *>(entity.getComponent<Drawable2DComponent>().drawable.get());
if (text->getString().find("Off") != std::string::npos) {
text->setText("Debug Mode: On");