Skip to content

Commit

Permalink
Move interaction modes panel to the toolbar FyroxEngine#584
Browse files Browse the repository at this point in the history
Signed-off-by: forest1102 <murabito1ss1@gmail.com>
  • Loading branch information
forest1102 committed Mar 21, 2024
1 parent e404411 commit 80dbed5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/src/scene_viewer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ impl SceneViewer {
.with_vertical_alignment(VerticalAlignment::Top)
.with_horizontal_alignment(HorizontalAlignment::Left),
)
.with_orientation(Orientation::Horizontal)
.build(ctx);

let global_position_display;
Expand Down Expand Up @@ -123,6 +124,7 @@ impl SceneViewer {

let top_ribbon = GridBuilder::new(
WidgetBuilder::new()
.with_child(interaction_mode_panel)
.with_child({
StackPanelBuilder::new(
WidgetBuilder::new()
Expand Down Expand Up @@ -203,6 +205,7 @@ impl SceneViewer {
)
.add_column(Column::stretch())
.add_column(Column::auto())
.add_column(Column::auto())
.add_row(Row::stretch())
.build(ctx);

Expand Down Expand Up @@ -251,7 +254,6 @@ impl SceneViewer {
frame = ImageBuilder::new(
WidgetBuilder::new()
.with_child(no_scene_reminder)
.with_child(interaction_mode_panel)
.with_child(scene_gizmo_image)
.with_allow_drop(true),
)
Expand Down

0 comments on commit 80dbed5

Please sign in to comment.