mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +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:
@@ -1,14 +1,19 @@
|
||||
class IMICRTS
|
||||
class PauseMenu < CyberarmEngine::GuiState
|
||||
def setup
|
||||
stack(width: 350) do
|
||||
stack(width: IMICRTS::MENU_WIDTH, height: 1.0, padding: IMICRTS::MENU_PADDING) do
|
||||
background [0xff555555, Gosu::Color::GRAY]
|
||||
label "Paused", text_size: 78, margin: 20
|
||||
|
||||
button "Resume", width: 1.0 do
|
||||
pop_state
|
||||
end
|
||||
|
||||
button "Settings", width: 1.0 do
|
||||
push_state(SettingsMenu)
|
||||
end
|
||||
button "Quit", width: 1.0 do
|
||||
|
||||
button "Quit", width: 1.0, margin_top: 20 do
|
||||
# TODO: Confirm
|
||||
|
||||
previous_state.director.finalize
|
||||
@@ -25,7 +30,7 @@ class IMICRTS
|
||||
def draw
|
||||
previous_state&.draw
|
||||
|
||||
# Gosu.flush
|
||||
Gosu.flush
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user