Changeset f809ae6 in opengl-game for gui/game-screen.cpp
- Timestamp:
- Jun 10, 2020, 9:44:02 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master
- Children:
- 6bfd91c
- Parents:
- 699e83a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/game-screen.cpp
r699e83a rf809ae6 9 9 #include "button.hpp" 10 10 #include "panel.hpp" 11 #include "ui-value.hpp" 11 12 12 13 using namespace std; … … 20 21 Screen(renderer, gameInfo) { 21 22 Panel *statsPanel = new Panel(10, 50, 95, 46, 0x161616FF, this->renderer); 23 24 statsPanel->addUIElement(new UIValue(0, 0, "Score: ", this->gameInfo.score, 25 this->gameInfo.proggyFont, 0xFFFFFFFF, this->renderer)); 26 statsPanel->addUIElement(new UIValue(14, 19, "FPS: ", this->gameInfo.fps, 27 this->gameInfo.proggyFont, 0xFFFFFFFF, this->renderer)); 22 28 23 29 // TODO: Add the button to the panel it's in, not directly to the window
Note:
See TracChangeset
for help on using the changeset viewer.