Forgot to update the level in the RitualUI so nothing actually worked. Closes #41.
This commit is contained in:
parent
6a0725e401
commit
b603ef5a3f
3 changed files with 6 additions and 0 deletions
|
@ -241,6 +241,10 @@ namespace gui {
|
|||
}
|
||||
}
|
||||
|
||||
void UI::update_level(GameLevel& level) {
|
||||
$level = level;
|
||||
}
|
||||
|
||||
void UI::clear_craft_result() {
|
||||
$blanket.reset();
|
||||
$gui.close<Label>("result_text");
|
||||
|
|
|
@ -64,6 +64,7 @@ namespace gui {
|
|||
void run_crafting_engine();
|
||||
void complete_combine();
|
||||
void update_selection_state();
|
||||
void update_level(GameLevel &level);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,6 +97,7 @@ namespace gui {
|
|||
void StatusUI::update_level(GameLevel &level) {
|
||||
$level = level;
|
||||
init();
|
||||
$ritual_ui.update_level(level);
|
||||
}
|
||||
|
||||
bool StatusUI::place_slot(guecs::Entity gui_id, DinkyECS::Entity world_entity) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue