diff --git a/sources/Runner/LobbyScene.cpp b/sources/Runner/LobbyScene.cpp index c65819bb..bc181487 100644 --- a/sources/Runner/LobbyScene.cpp +++ b/sources/Runner/LobbyScene.cpp @@ -103,32 +103,8 @@ namespace BBM texture->use("assets/buttons/button_htp_hovered.png"); }); - auto &lavaOption = scene->addEntity("lava option text") - .addComponent(1920 / 6, 1.85 * 1080 / 3, 0) - .addComponent("Lava: Off", 70, RAY::Vector2(), BLACK) - .addComponent([](WAL::Entity &entity, WAL::Wal &wal) - { - RAY2D::Text *text = dynamic_cast(entity.getComponent().drawable.get()); - - if (text->getString().find("Off") != std::string::npos) { - text->setText("Lava: On"); - //do - } else { - text->setText("Lava: Off"); - //do - } - }) - .addComponent([](WAL::Entity &entity, WAL::Wal &) - { - entity.getComponent().drawable->setColor(BLACK); - }) - .addComponent([](WAL::Entity &entity, WAL::Wal &) - { - entity.getComponent().drawable->setColor(ORANGE); - }); - auto &heightOption = scene->addEntity("Height option text") - .addComponent(1920 / 6, 2.1 * 1080 / 3, 0) + .addComponent(1920 / 6, 2 * 1080 / 3, 0) .addComponent("2nd Level: Off", 70, RAY::Vector2(), BLACK) .addComponent([](WAL::Entity &entity, WAL::Wal &wal) { @@ -203,12 +179,11 @@ namespace BBM scene->addEntity("camera") .addComponent(-5, 0, -5) .addComponent(Vector3f(8, 0, 8)); - play.getComponent().setButtonLinks(&lavaOption, &back, &back, &howToPlay); + play.getComponent().setButtonLinks(&heightOption, &back, &back, &howToPlay); howToPlay.getComponent().setButtonLinks(&play, nullptr, &play); back.getComponent().setButtonLinks(&play, nullptr, nullptr, &play); - lavaOption.getComponent().setButtonLinks(nullptr, &heightOption, nullptr, &aiMore); - heightOption.getComponent().setButtonLinks(&lavaOption, &play, nullptr, &aiLess); - aiMore.getComponent().setButtonLinks(nullptr, &aiLess, &lavaOption, nullptr); + heightOption.getComponent().setButtonLinks(nullptr, &play, nullptr, &aiLess); + aiMore.getComponent().setButtonLinks(nullptr, &aiLess, &heightOption, nullptr); aiLess.getComponent().setButtonLinks(&aiMore, &play, &heightOption, nullptr); return scene; }