From 635f4e3720d2c0cc0941ff2059d05ec1c7522cf2 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Thu, 9 Jul 2020 06:57:42 -0500 Subject: [PATCH] Updated MapEditor menu --- lib/tools/asset_viewer/lib/main_menu.rb | 2 +- lib/tools/map_editor/lib/main_menu.rb | 25 +++++++++++++++---------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/lib/tools/asset_viewer/lib/main_menu.rb b/lib/tools/asset_viewer/lib/main_menu.rb index 893bb08..d573434 100644 --- a/lib/tools/asset_viewer/lib/main_menu.rb +++ b/lib/tools/asset_viewer/lib/main_menu.rb @@ -20,7 +20,7 @@ class IMICFPS flow(width: 1.0, height: 1.0) do stack(width: 0.25, height: 1.0) do - button "Back", margin_bottom: 25 do + button "Back", width: 1.0 do pop_state end end diff --git a/lib/tools/map_editor/lib/main_menu.rb b/lib/tools/map_editor/lib/main_menu.rb index 0ecdc28..d86c27d 100644 --- a/lib/tools/map_editor/lib/main_menu.rb +++ b/lib/tools/map_editor/lib/main_menu.rb @@ -18,18 +18,23 @@ class IMICFPS @maps.sort_by! { |m| m.metadata.name.downcase } - button "Back", margin_bottom: 25 do - pop_state - end + flow(width: 1.0, height: 1.0) do + stack(width: 0.25, height: 1.0) do + button "New Map", width: 1.0 - button "New Map" + button "Back", margin_top: 64, width: 1.0 do + pop_state + end + end - label "" - label "Edit Map" - flow(margin: 10) do - @maps.each do |map| - button map.metadata.name do - push_state(LoadingState, map_parser: map, forward: Editor) + stack(width: 0.5, height: 1.0) do + label "Edit Map" + flow(width: 1.0, height: 1.0) do + @maps.each do |map| + button map.metadata.name do + push_state(LoadingState, map_parser: map, forward: Editor) + end + end end end end