All of the UIs should be cleared out, and that just leaves the tests.
This commit is contained in:
parent
d5ff57e025
commit
564f9842a2
23 changed files with 126 additions and 145 deletions
18
gui/fsm.cpp
18
gui/fsm.cpp
|
@ -21,10 +21,6 @@ namespace gui {
|
|||
$window(sf::VideoMode({SCREEN_WIDTH, SCREEN_HEIGHT}), "Zed's Raycaster Thing"),
|
||||
$debug_ui(Game::get_the_manager()),
|
||||
$main_ui($window),
|
||||
$combat_ui(Game::current()),
|
||||
$status_ui(Game::current()),
|
||||
$map_ui(Game::current()),
|
||||
$loot_ui(Game::current()),
|
||||
$font{FONT_FILE_NAME},
|
||||
$dnd_loot($status_ui, $loot_ui, $window, $router)
|
||||
{
|
||||
|
@ -47,8 +43,7 @@ namespace gui {
|
|||
}
|
||||
|
||||
void FSM::START(Event ) {
|
||||
auto& level = Game::current();
|
||||
$main_ui.update_level(level);
|
||||
$main_ui.update_level();
|
||||
$main_ui.init();
|
||||
$loot_ui.init();
|
||||
|
||||
|
@ -545,13 +540,10 @@ namespace gui {
|
|||
}
|
||||
|
||||
void FSM::next_level() {
|
||||
auto& level = Game::create_level();
|
||||
|
||||
$status_ui.update_level(level);
|
||||
$map_ui.update_level(level);
|
||||
$combat_ui.update_level(level);
|
||||
$main_ui.update_level(level);
|
||||
$loot_ui.update_level(level);
|
||||
$status_ui.update_level();
|
||||
$combat_ui.update_level();
|
||||
$main_ui.update_level();
|
||||
$loot_ui.update_level();
|
||||
|
||||
$boss_fight_ui = Game::create_bossfight();
|
||||
$boss_fight_ui->init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue