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
stack(width: 0.25, height: 1.0) do
button "Back", margin_bottom: 25 do
button "Back", width: 1.0 do
pop_state
end
end

View File

@@ -18,15 +18,18 @@ class IMICFPS
@maps.sort_by! { |m| m.metadata.name.downcase }
button "Back", margin_bottom: 25 do
flow(width: 1.0, height: 1.0) do
stack(width: 0.25, height: 1.0) do
button "New Map", width: 1.0
button "Back", margin_top: 64, width: 1.0 do
pop_state
end
end
button "New Map"
label ""
stack(width: 0.5, height: 1.0) do
label "Edit Map"
flow(margin: 10) do
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)
@@ -34,6 +37,8 @@ class IMICFPS
end
end
end
end
end
def update
super