mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Shift egui debug window right
This commit is contained in:
parent
16c72b8667
commit
3411ccc7ee
@ -14,7 +14,7 @@ use core::mem;
|
||||
use egui::{
|
||||
plot::{Plot, Value},
|
||||
widgets::plot::Curve,
|
||||
CollapsingHeader, Color32, Grid, Label, ScrollArea, Slider, Ui, Window,
|
||||
CollapsingHeader, Color32, Grid, Label, Pos2, ScrollArea, Slider, Ui, Window,
|
||||
};
|
||||
|
||||
fn two_col_row(ui: &mut Ui, label: impl Into<Label>, content: impl Into<Label>) {
|
||||
@ -202,7 +202,9 @@ pub fn maintain_egui_inner(
|
||||
}
|
||||
};
|
||||
|
||||
let start_pos = Pos2 { x: 300.0, y: 0.0 };
|
||||
egui::Window::new("Debug Control")
|
||||
.default_pos(start_pos)
|
||||
.default_width(200.0)
|
||||
.default_height(200.0)
|
||||
.show(&platform.context(), |ui| {
|
||||
|
@ -198,7 +198,8 @@ fn handle_main_events_cleared(
|
||||
#[cfg(feature = "egui-ui")]
|
||||
if last.egui_enabled()
|
||||
&& global_state.settings.interface.toggle_debug
|
||||
&& global_state.settings.interface.toggle_egui_debug {
|
||||
&& global_state.settings.interface.toggle_egui_debug
|
||||
{
|
||||
drawer.draw_egui(&mut global_state.egui_state.platform, scale_factor);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user