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:
@@ -3,14 +3,29 @@ class IMICRTS
|
||||
def setup
|
||||
background [0xff7b6ead, 0xff7a0d71, 0xff7a0d71, 0xff7b6ead]
|
||||
|
||||
stack(width: 600, height: 1.0) do
|
||||
background [0xff555555, Gosu::Color::GRAY]
|
||||
flow(width: 1.0, height: 1.0) do
|
||||
stack(width: IMICRTS::MENU_WIDTH, height: 1.0, padding: IMICRTS::MENU_PADDING) do
|
||||
background [0xff555555, Gosu::Color::GRAY]
|
||||
|
||||
label "About I-MIC-RTS", text_size: 78, margin: 20
|
||||
label "Words go here. More words also go here. Thank you and have a nice day.", text_wrap: :word_wrap
|
||||
label "Credits", text_size: 78, margin: 20
|
||||
|
||||
button("Back", width: 1.0, margin_top: 20) do
|
||||
push_state(MainMenu)
|
||||
licenses = Gosu::LICENSES.lines
|
||||
preamble = licenses.shift
|
||||
licenses.shift # remove blank line
|
||||
|
||||
label preamble, text_wrap: :word_wrap
|
||||
|
||||
licenses.each do |l|
|
||||
name, website, license, license_website = l.strip.split(",")
|
||||
flow(width: 1.0) do
|
||||
label name.strip, width: 0.49
|
||||
label license.strip, width: 0.49
|
||||
end
|
||||
end
|
||||
|
||||
button("Back", width: 1.0, margin_top: 20) do
|
||||
push_state(MainMenu)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user