mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Added game version footer on MainMenu
This commit is contained in:
@@ -2,16 +2,29 @@ class IMICFPS
|
|||||||
class MainMenu < Menu
|
class MainMenu < Menu
|
||||||
def setup
|
def setup
|
||||||
title "I-MIC FPS"
|
title "I-MIC FPS"
|
||||||
|
|
||||||
link "Single Player" do
|
link "Single Player" do
|
||||||
push_state(LevelSelectMenu)
|
push_state(LevelSelectMenu)
|
||||||
# push_state(LoadingState.new(forward: Game, map_file: GAME_ROOT_PATH + "/maps/test_map.json"))
|
# push_state(LoadingState.new(forward: Game, map_file: GAME_ROOT_PATH + "/maps/test_map.json"))
|
||||||
end
|
end
|
||||||
|
|
||||||
link "Settings" do
|
link "Settings" do
|
||||||
push_state(SettingsMenu)
|
push_state(SettingsMenu)
|
||||||
end
|
end
|
||||||
|
|
||||||
link "Exit" do
|
link "Exit" do
|
||||||
window.close
|
window.close
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@text = CyberarmEngine::Text.new("<b>#{IMICFPS::NAME}</b> 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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user