mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-14 07:12:34 +00:00
Moved menus into their own folder, stubbed bunch of menus
This commit is contained in:
33
lib/states/menus/multiplayer_menu.rb
Normal file
33
lib/states/menus/multiplayer_menu.rb
Normal file
@@ -0,0 +1,33 @@
|
||||
class IMICRTS
|
||||
class MultiplayerMenu < CyberarmEngine::GuiState
|
||||
def setup
|
||||
background [0xff7b6ead, 0xff7a0d71, 0xff7a0d71, 0xff7b6ead]
|
||||
|
||||
stack(height: 1.0) do
|
||||
background [0xff555555, Gosu::Color::GRAY]
|
||||
|
||||
label "Multiplayer", text_size: 78, margin: 20
|
||||
label "Games", text_size: 32
|
||||
@games_list = stack(border_color: Gosu::Color::WHITE, border_thickness: 2) do
|
||||
end
|
||||
flow do
|
||||
button("Refresh") do
|
||||
# refresh_games
|
||||
end
|
||||
button("Host Game")
|
||||
button("Join Game")
|
||||
end
|
||||
|
||||
button("Back", width: 1.0, margin_top: 20) do
|
||||
push_state(MainMenu)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def refresh_games
|
||||
@games_list.clear do
|
||||
label "No games found..."
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user