mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Add option to toggle egui debug
This commit is contained in:
parent
e99a885bfe
commit
abf5a7e136
@ -196,7 +196,9 @@ fn handle_main_events_cleared(
|
|||||||
last.render(&mut drawer, &global_state.settings);
|
last.render(&mut drawer, &global_state.settings);
|
||||||
|
|
||||||
#[cfg(feature = "egui-ui")]
|
#[cfg(feature = "egui-ui")]
|
||||||
if last.egui_enabled() && global_state.settings.interface.toggle_debug {
|
if last.egui_enabled()
|
||||||
|
&& global_state.settings.interface.toggle_debug
|
||||||
|
&& global_state.settings.interface.toggle_egui_debug {
|
||||||
drawer.draw_egui(&mut global_state.egui_state.platform, scale_factor);
|
drawer.draw_egui(&mut global_state.egui_state.platform, scale_factor);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -10,6 +10,7 @@ use vek::*;
|
|||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub struct InterfaceSettings {
|
pub struct InterfaceSettings {
|
||||||
pub toggle_debug: bool,
|
pub toggle_debug: bool,
|
||||||
|
pub toggle_egui_debug: bool,
|
||||||
pub toggle_hitboxes: bool,
|
pub toggle_hitboxes: bool,
|
||||||
pub toggle_chat: bool,
|
pub toggle_chat: bool,
|
||||||
pub sct: bool,
|
pub sct: bool,
|
||||||
@ -46,6 +47,7 @@ impl Default for InterfaceSettings {
|
|||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
toggle_debug: false,
|
toggle_debug: false,
|
||||||
|
toggle_egui_debug: false,
|
||||||
toggle_hitboxes: false,
|
toggle_hitboxes: false,
|
||||||
toggle_chat: true,
|
toggle_chat: true,
|
||||||
sct: true,
|
sct: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user