mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
add button to see host options in main menu
This commit is contained in:
parent
d4fcb68e94
commit
bc37fe7ecf
1 changed files with 8 additions and 0 deletions
|
@ -489,6 +489,7 @@ pub struct App {
|
||||||
end_run_confirmation: bool,
|
end_run_confirmation: bool,
|
||||||
appearance: PlayerAppearance,
|
appearance: PlayerAppearance,
|
||||||
connected_menu: ConnectedMenu,
|
connected_menu: ConnectedMenu,
|
||||||
|
show_host_settings: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn filled_group<R>(ui: &mut Ui, add_contents: impl FnOnce(&mut Ui) -> R) -> InnerResponse<R> {
|
fn filled_group<R>(ui: &mut Ui, add_contents: impl FnOnce(&mut Ui) -> R) -> InnerResponse<R> {
|
||||||
|
@ -625,6 +626,7 @@ impl App {
|
||||||
end_run_confirmation: false,
|
end_run_confirmation: false,
|
||||||
appearance,
|
appearance,
|
||||||
connected_menu: ConnectedMenu::Normal,
|
connected_menu: ConnectedMenu::Normal,
|
||||||
|
show_host_settings: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -832,6 +834,12 @@ impl App {
|
||||||
ui.set_min_size(ui.available_size());
|
ui.set_min_size(ui.available_size());
|
||||||
ScrollArea::both().auto_shrink(false).show(ui, |ui| {
|
ScrollArea::both().auto_shrink(false).show(ui, |ui| {
|
||||||
self.show_local_settings(ui);
|
self.show_local_settings(ui);
|
||||||
|
if ui.button("Show host settings").clicked() {
|
||||||
|
self.show_host_settings = !self.show_host_settings
|
||||||
|
}
|
||||||
|
if self.show_host_settings {
|
||||||
|
self.app_saved_state.game_settings.show_editor(ui)
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue