mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-16 00:02:33 +00:00
Tweaked ui a bit, updated Credits, stubbed load menu, fixed crash when stopping helicopter, Stop order is now only emitted if player has entities selected.
This commit is contained in:
32
lib/states/menus/load_menu.rb
Normal file
32
lib/states/menus/load_menu.rb
Normal file
@@ -0,0 +1,32 @@
|
||||
class IMICRTS
|
||||
class LoadMenu < CyberarmEngine::GuiState
|
||||
def setup
|
||||
self.show_cursor = true
|
||||
|
||||
background [0xff7b6ead, 0xff7a0d71, 0xff7a0d71, 0xff7b6ead]
|
||||
|
||||
stack(width: IMICRTS::MENU_WIDTH, height: 1.0, padding: IMICRTS::MENU_PADDING) do
|
||||
background [0xff555555, Gosu::Color::GRAY]
|
||||
label "Load", text_size: 78, margin: 20
|
||||
|
||||
label "Replays"
|
||||
stack(width: 1.0, height: 0.30) do
|
||||
["2020-01-31_16-31-45.replay"].each do |item|
|
||||
button item, width: 1.0
|
||||
end
|
||||
end
|
||||
|
||||
label "Saves"
|
||||
stack(width: 1.0, height: 0.30) do
|
||||
["2020-01-31_16-31-45.save"].each do |item|
|
||||
button item, width: 1.0
|
||||
end
|
||||
end
|
||||
|
||||
button("Back", width: 1.0, margin_top: 20) do
|
||||
pop_state
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user