mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Added icons for settings menu, refreshed menus to unify layouts
This commit is contained in:
@@ -17,17 +17,19 @@ class IMICFPS
|
||||
|
||||
@manifests.sort_by! { |m| m.name.downcase }
|
||||
|
||||
label IMICFPS::NAME.to_s, text_size: 100, color: Gosu::Color::BLACK
|
||||
label "Asset Viewer", text_size: 50
|
||||
|
||||
|
||||
flow(width: 1.0, height: 1.0) do
|
||||
stack(width: 0.25, height: 1.0) do
|
||||
button "Back", width: 1.0 do
|
||||
pop_state
|
||||
end
|
||||
end
|
||||
|
||||
stack(width: 0.5, height: 1.0) do
|
||||
label "Asset Viewer", text_size: 100, font: BOLD_SANS_FONT, width: 1.0, text_align: :center
|
||||
|
||||
link I18n.t("menus.back"), width: 1.0 do
|
||||
pop_state
|
||||
end
|
||||
|
||||
flow(width: 1.0, height: 1.0) do
|
||||
@manifests.each do |manifest|
|
||||
button manifest.name do
|
||||
|
||||
@@ -6,9 +6,6 @@ class IMICFPS
|
||||
def setup
|
||||
window.needs_cursor = true
|
||||
|
||||
label IMICFPS::NAME.to_s, text_size: 50
|
||||
label "Map Editor", text_size: 28
|
||||
|
||||
@maps = []
|
||||
Dir.glob("#{GAME_ROOT_PATH}/maps/*.json").each do |map|
|
||||
begin
|
||||
@@ -22,15 +19,20 @@ class IMICFPS
|
||||
|
||||
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
|
||||
|
||||
stack(width: 0.5, height: 1.0) do
|
||||
label "Edit Map"
|
||||
label "Map Editor", text_size: 100, font: BOLD_SANS_FONT, width: 1.0, text_align: :center
|
||||
|
||||
flow width: 1.0 do
|
||||
link I18n.t("menus.back"), width: 0.32 do
|
||||
pop_state
|
||||
end
|
||||
|
||||
button "New Map", width: 1.0, width: 0.64
|
||||
end
|
||||
|
||||
label "Edit Map", width: 1.0, text_align: :center, text_size: 50
|
||||
flow(width: 1.0, height: 1.0) do
|
||||
@maps.each do |map|
|
||||
button map.metadata.name do
|
||||
|
||||
Reference in New Issue
Block a user