mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 21:11:47 +01:00
Fix digging
This commit is contained in:
@@ -5,12 +5,12 @@ Screen::Screen(const std::string& filePath, Vector2f pos, Vector2f size, Texture
|
||||
m_Background = manager->GetTexture(filePath);
|
||||
}
|
||||
Screen::~Screen() {
|
||||
for (Button* b : m_Buttons) {
|
||||
for (GuiElement* b : m_Elements) {
|
||||
delete b;
|
||||
}
|
||||
}
|
||||
void Screen::Update(float elapsedSecs) {
|
||||
for (Button* b : m_Buttons) {
|
||||
for (GuiElement* b : m_Elements) {
|
||||
b->Update(elapsedSecs);
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ void Screen::Draw() const {
|
||||
Rectf src = Rectf(0, 0, m_Background->GetWidth(), m_Background->GetHeight());
|
||||
m_Background->Draw(dest, src, false);
|
||||
|
||||
for (Button* b : m_Buttons) {
|
||||
for (GuiElement* b : m_Elements) {
|
||||
b->Draw();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user