Updated MapEditor menu

This commit is contained in:
2020-07-09 06:57:42 -05:00
parent 5827f0b907
commit 635f4e3720
2 changed files with 16 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ class IMICFPS
flow(width: 1.0, height: 1.0) do flow(width: 1.0, height: 1.0) do
stack(width: 0.25, 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 pop_state
end end
end end

View File

@@ -18,18 +18,23 @@ class IMICFPS
@maps.sort_by! { |m| m.metadata.name.downcase } @maps.sort_by! { |m| m.metadata.name.downcase }
button "Back", margin_bottom: 25 do flow(width: 1.0, height: 1.0) do
pop_state stack(width: 0.25, height: 1.0) do
end button "New Map", width: 1.0
button "New Map" button "Back", margin_top: 64, width: 1.0 do
pop_state
end
end
label "" stack(width: 0.5, height: 1.0) do
label "Edit Map" label "Edit Map"
flow(margin: 10) do flow(width: 1.0, height: 1.0) do
@maps.each do |map| @maps.each do |map|
button map.metadata.name do button map.metadata.name do
push_state(LoadingState, map_parser: map, forward: Editor) push_state(LoadingState, map_parser: map, forward: Editor)
end
end
end end
end end
end end