Moved menus into their own folder, stubbed bunch of menus

This commit is contained in:
2019-10-02 20:25:34 -05:00
parent abc4305656
commit e29bc47817
10 changed files with 188 additions and 42 deletions

View 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