Moved menu files to be under /ui directory, added support for commands to Console!

This commit is contained in:
2019-08-07 15:36:45 -05:00
parent ffae3ae14e
commit 80576a211a
7 changed files with 101 additions and 6 deletions

16
lib/ui/menus/main_menu.rb Normal file
View File

@@ -0,0 +1,16 @@
class IMICFPS
class MainMenu < Menu
def setup
title "I-MIC FPS"
link "Single Player" do
push_state(LoadingState.new(forward: Game))
end
link "Settings" do
# push_game_state(SettingsMenu)
end
link "Exit" do
window.close
end
end
end
end