diff --git a/sources/Runner/LobbyScene.cpp b/sources/Runner/LobbyScene.cpp index 49f0e948..bf6e3323 100644 --- a/sources/Runner/LobbyScene.cpp +++ b/sources/Runner/LobbyScene.cpp @@ -154,7 +154,7 @@ namespace BBM auto &aiLess = scene->addEntity("AI-") .addComponent(1920 / 1.75, 2.10 * 1080 / 3, 0) - .addComponent(false, "assets/buttons/cpu_remove.png") + .addComponent("assets/buttons/cpu_remove.png") .addComponent([](WAL::Entity &entity, WAL::Wal &wal) { wal.getSystem().removeAI(); @@ -173,7 +173,7 @@ namespace BBM for (int i = 0; i < 4; i++) { auto &playerTile = scene->addEntity("player tile") .addComponent(224 * (i + 1) + 200 * i, 1080 / 3, 0) - .addComponent(false, RAY::Vector2(224 * (i + 1) + 200 * i, 1080 / 3), RAY::Vector2(200, 200), RAY::Color(0, 0, 0, 0)); + .addComponent(RAY::Vector2(224 * (i + 1) + 200 * i, 1080 / 3), RAY::Vector2(200, 200), RAY::Color(0, 0, 0, 0)); auto &player = scene->addEntity("player") .addComponent(224 * (i + 1) + 200 * i, 1080 / 3, 0) .addComponent("assets/player/icons/none.png"); diff --git a/sources/Runner/MainMenuScene.cpp b/sources/Runner/MainMenuScene.cpp index 13104829..42067222 100644 --- a/sources/Runner/MainMenuScene.cpp +++ b/sources/Runner/MainMenuScene.cpp @@ -73,7 +73,7 @@ namespace BBM }); auto &exit = scene->addEntity("exit button") .addComponent(1920 / 2.5, 1080 - 180, 0) - .addComponent(false, "assets/buttons/button_exit.png") + .addComponent("assets/buttons/button_exit.png") .addComponent([](WAL::Entity &entity, WAL::Wal &) { RAY::Texture *texture = dynamic_cast(entity.getComponent().drawable.get()); diff --git a/sources/System/IntroAnimation/IntroAnimationSystem.cpp b/sources/System/IntroAnimation/IntroAnimationSystem.cpp index 13b56f8b..887a11d8 100644 --- a/sources/System/IntroAnimation/IntroAnimationSystem.cpp +++ b/sources/System/IntroAnimation/IntroAnimationSystem.cpp @@ -27,19 +27,19 @@ namespace BBM RAY2D::Text *text = nullptr; static auto &rayText = scene->addEntity("raylibtext Rectangle") .addComponent(1920 / 2 - 44, 1080 / 2 + 48, 0) - .addComponent(false, "", 50, RAY::Vector2(), BLACK); + .addComponent("", 50, RAY::Vector2(), BLACK); static auto &bottomRectangle = scene->addEntity("bottom Rectangle") .addComponent(1920 / 2 - 128, 1080 / 2 - 128, 0) - .addComponent(false, logoPos, RAY::Vector2(16, 16), BLACK); + .addComponent(logoPos, RAY::Vector2(16, 16), BLACK); static auto &leftRectangle = scene->addEntity("left Rectangle") .addComponent(1920 / 2 - 128, 1080 / 2 - 128, 0) - .addComponent(false, logoPos, RAY::Vector2(16, 16), BLACK); + .addComponent(logoPos, RAY::Vector2(16, 16), BLACK); static auto &rightRectangle = scene->addEntity("right Rectangle") .addComponent(1920 / 2 - 128, 1080 / 2 - 128, 0) - .addComponent(false, logoPos, RAY::Vector2(16, 16), BLACK); + .addComponent(logoPos, RAY::Vector2(16, 16), BLACK); static auto &topRectangle = scene->addEntity("top Rectangle") .addComponent(1920 / 2 - 128, 1080 / 2 - 128, 0) - .addComponent(false, logoPos, RAY::Vector2(16, 16), BLACK); + .addComponent(logoPos, RAY::Vector2(16, 16), BLACK); static short letterCounter = 0; switch (component.currentStep)