Fixing play button color

This commit is contained in:
Zoe Roux
2021-06-20 12:36:25 +02:00
parent cddeeaf3f9
commit 4736d1790c
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -17,9 +17,7 @@
#include <Component/Tag/TagComponent.hpp>
#include <Drawables/Texture.hpp>
#include <System/Lobby/ResumeLobbySystem.hpp>
#include "System/Sound/PlayerSoundManagerSystem.hpp"
#include "System/Music/MusicSystem.hpp"
#include "System/Lobby/LobbySystem.hpp"
#include "Component/Lobby/LobbyComponent.hpp"
namespace RAY3D = RAY::Drawables::Drawables3D;
@@ -67,7 +65,7 @@ namespace BBM
return;
ResumeLobbySystem::resumeToGame(wal);
})
.addComponent<TagComponent<"PlayButton">>();
.addComponent<TagComponent<"ResumeButton">>();
auto &back = scene->addEntity("back to menu")
.addComponent<PositionComponent>(10, 1080 - 85, 0)
.addComponent<Drawable2DComponent, RAY::Texture>("assets/buttons/button_back.png")
+1 -1
View File
@@ -66,7 +66,7 @@ namespace BBM
void ResumeLobbySystem::onSelfUpdate(std::chrono::nanoseconds dtime)
{
auto &view = this->_wal.getScene()->view<TagComponent<"PlayButton">, Drawable2DComponent>();
auto &view = this->_wal.getScene()->view<TagComponent<"ResumeButton">, Drawable2DComponent>();
if (view.size() == 0)
return;
auto *texture = dynamic_cast<RAY::Texture *>(view.front().get<Drawable2DComponent>().drawable.get());