mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Updated MapEditor menu
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user