mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 21:11:47 +01:00
Add Main UI, Fuel meter. Add particles to player digging
This commit is contained in:
@@ -57,6 +57,9 @@ void Game::Draw() const {
|
||||
|
||||
void Game::ProcessKeyDownEvent(const SDL_KeyboardEvent& e) {
|
||||
//std::cout << "KEYDOWN event: " << e.keysym.sym << std::endl;
|
||||
if(e.keysym.sym == SDLK_BACKQUOTE) {
|
||||
m_imGui = !m_imGui;
|
||||
}
|
||||
}
|
||||
|
||||
void Game::ProcessKeyUpEvent(const SDL_KeyboardEvent& e) {
|
||||
@@ -83,5 +86,7 @@ void Game::ProcessMouseWheelEvent(const SDL_MouseWheelEvent& e) {
|
||||
m_Camera.SetScale(newScale);
|
||||
}
|
||||
void Game::ProcessImGui() {
|
||||
m_pCurrentLevel->ProcessImGui();
|
||||
if(m_imGui) {
|
||||
m_pCurrentLevel->ProcessImGui();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user