Tweak menus a bit, add proper single player menu, made back link have some margin from above links

This commit is contained in:
2021-06-03 00:59:08 +00:00
parent 58b2f8b890
commit 3986b1b0af
13 changed files with 55 additions and 39 deletions

View File

@@ -0,0 +1,21 @@
# frozen_string_literal: true
class IMICFPS
class SinglePlayerMenu < Menu
def setup
title I18n.t("menus.singleplayer")
link "Tutorial", enabled: false, tip: "No tutorial implemented, yet..."
link "Campaign", enabled: false, tip: "No campaign, yet..."
link "Multiplayer Practice" do
push_state(LevelSelectMenu)
end
link I18n.t("menus.back"), margin_top: 25 do
pop_state
end
end
end
end