From 201ddabbcc70c09eea73d672c13c59676f6719d8 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Tue, 28 Jan 2020 23:52:55 -0600 Subject: [PATCH] Added game version footer on MainMenu --- lib/ui/menus/main_menu.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/ui/menus/main_menu.rb b/lib/ui/menus/main_menu.rb index 96450c2..232c11d 100644 --- a/lib/ui/menus/main_menu.rb +++ b/lib/ui/menus/main_menu.rb @@ -2,16 +2,29 @@ class IMICFPS class MainMenu < Menu def setup title "I-MIC FPS" + link "Single Player" do push_state(LevelSelectMenu) # push_state(LoadingState.new(forward: Game, map_file: GAME_ROOT_PATH + "/maps/test_map.json")) end + link "Settings" do push_state(SettingsMenu) end + link "Exit" do window.close end + + @text = CyberarmEngine::Text.new("#{IMICFPS::NAME} v#{IMICFPS::VERSION} (#{IMICFPS::RELEASE_NAME})") + end + + def draw + super + + @text.draw + @text.x = window.width - (@text.width + 10) + @text.y = window.height - (@text.height + 10) end end end