Forgot to update the level in the RitualUI so nothing actually worked. Closes #41.

master
Zed A. Shaw 17 hours ago
parent 6a0725e401
commit b603ef5a3f
  1. 4
      gui/ritual_ui.cpp
  2. 1
      gui/ritual_ui.hpp
  3. 1
      gui/status_ui.cpp

@ -241,6 +241,10 @@ namespace gui {
} }
} }
void UI::update_level(GameLevel& level) {
$level = level;
}
void UI::clear_craft_result() { void UI::clear_craft_result() {
$blanket.reset(); $blanket.reset();
$gui.close<Label>("result_text"); $gui.close<Label>("result_text");

@ -64,6 +64,7 @@ namespace gui {
void run_crafting_engine(); void run_crafting_engine();
void complete_combine(); void complete_combine();
void update_selection_state(); void update_selection_state();
void update_level(GameLevel &level);
}; };
} }
} }

@ -97,6 +97,7 @@ namespace gui {
void StatusUI::update_level(GameLevel &level) { void StatusUI::update_level(GameLevel &level) {
$level = level; $level = level;
init(); init();
$ritual_ui.update_level(level);
} }
bool StatusUI::place_slot(guecs::Entity gui_id, DinkyECS::Entity world_entity) { bool StatusUI::place_slot(guecs::Entity gui_id, DinkyECS::Entity world_entity) {

Loading…
Cancel
Save