mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Added more menus; stub for settings, basic pause menu, fixes for multiple Game inits
This commit is contained in:
23
lib/ui/menus/game_pause_menu.rb
Normal file
23
lib/ui/menus/game_pause_menu.rb
Normal file
@@ -0,0 +1,23 @@
|
||||
class IMICFPS
|
||||
class GamePauseMenu < Menu
|
||||
def setup
|
||||
title "I-MIC FPS"
|
||||
subtitle "Paused"
|
||||
|
||||
link "Resume" do
|
||||
pop_state
|
||||
end
|
||||
|
||||
link "Disconnect" do
|
||||
push_state(MainMenu)
|
||||
end
|
||||
end
|
||||
|
||||
def draw
|
||||
previous_state.draw
|
||||
Gosu.flush
|
||||
|
||||
super
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -6,7 +6,7 @@ class IMICFPS
|
||||
push_state(LoadingState.new(forward: Game, map_file: GAME_ROOT_PATH + "/maps/test_map.json"))
|
||||
end
|
||||
link "Settings" do
|
||||
# push_game_state(SettingsMenu)
|
||||
push_state(SettingsMenu)
|
||||
end
|
||||
link "Exit" do
|
||||
window.close
|
||||
|
||||
14
lib/ui/menus/settings_menu.rb
Normal file
14
lib/ui/menus/settings_menu.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class IMICFPS
|
||||
class SettingsMenu < Menu
|
||||
def setup
|
||||
title "I-MIC FPS"
|
||||
subtitle "Settings"
|
||||
|
||||
link "\"There is no spoon.\""
|
||||
|
||||
link "Back" do
|
||||
pop_state
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user