Figured out the easiest way to set a panel to be centered, but a lot of these config things need to be unified and cleaned up.
This commit is contained in:
parent
269af02993
commit
fc61ef42ac
6 changed files with 48 additions and 33 deletions
1
gui.cpp
1
gui.cpp
|
@ -209,6 +209,7 @@ GUI::GUI(DinkyECS::World &world, Map& game_map) :
|
|||
$sounds.load("combat_enemy_hit", "combat_enemy_hit.mp3");
|
||||
$sounds.load("combat_miss", "combat_miss.mp3");
|
||||
resize_map(MAX_FONT_SIZE);
|
||||
$renderer.center_panel($next_level_ui);
|
||||
init_shaders();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue