Skip to content

Commit 08caad1

Browse files
committed
add coding editor
1 parent db8fa5f commit 08caad1

6 files changed

Lines changed: 221 additions & 66 deletions

File tree

Cargo.lock

Lines changed: 151 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ winit = "0.30"
5050
egui = "0.31"
5151
egui_wgpu_backend = "0.34"
5252
egui_winit_platform = "0.26"
53-
egui_demo_lib = "0.31"
5453
egui_tiles = "0.12.0"
55-
egui_extras = "0.31.0"
54+
egui_extras = { version = "0.31.0", features = ["syntect"] }
5655
human_bytes = "0.4"
5756

5857
[dev-dependencies]

src/bin/drawing/ui.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use egui_wgpu_backend::ScreenDescriptor;
1414
use egui_winit_platform::PlatformDescriptor;
1515
use views::fps::view_fps;
1616
use views::location_finder::LocationFinderWindow;
17+
use views::panel_bottom::panel_bottom;
1718
use views::panel_left::PanelLeft;
1819
use views::panel_right::panel_right;
1920
use wgpu::SurfaceConfiguration;
@@ -162,6 +163,8 @@ impl HudUi {
162163
})
163164
});
164165

166+
panel_bottom(ctx, app_state);
167+
165168
panel_right(ctx, app_state);
166169

167170
self.side_panel.ui(ctx, app_state);

src/bin/drawing/ui/views.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ pub mod fps;
22
pub mod inspector;
33
pub mod layer_toggle;
44
pub mod location_finder;
5+
pub mod panel_bottom;
56
pub mod panel_left;
67
pub mod panel_right;
78
pub mod stats;

0 commit comments

Comments
 (0)