diff options
Diffstat (limited to 'client/src/interfaces')
-rw-r--r-- | client/src/interfaces/mod.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/interfaces/mod.rs b/client/src/interfaces/mod.rs index 9dfce63..9a68da7 100644 --- a/client/src/interfaces/mod.rs +++ b/client/src/interfaces/mod.rs @@ -17,8 +17,10 @@ pub mod prefabindex; pub mod profiler; -use crate::{download::Downloader, network::Network, scene_prepare::ScenePreparer}; -use egui::Widget; +use crate::{ + download::Downloader, network::Network, scene_prepare::ScenePreparer, ui::UI_POSITION_OFFSET, +}; +use egui::{Pos2, Widget}; use prefabindex::PrefabIndexInterface; use profiler::{Profiler, TimingProfiler}; use std::sync::{Arc, Mutex}; @@ -51,6 +53,7 @@ pub fn ui_selector(idata: Arc<InterfaceData>) -> impl Fn(&egui::Context) -> bool Interface::PrefabIndex(_) => "Prefab Index", }) .open(&mut open) + .default_pos(Pos2::new(UI_POSITION_OFFSET, UI_POSITION_OFFSET)) .show(ctx, |ui| match &mut *state { Interface::Selector => { if ui.button("Profiler").clicked() { |