mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-14 15:22:34 +00:00
Sync MainMenu
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
class MainMenu < CyberarmEngine::GameState
|
class MainMenu < CyberarmEngine::GuiState
|
||||||
def setup
|
def setup
|
||||||
self.show_cursor = true
|
self.show_cursor = true
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ class MainMenu < CyberarmEngine::GameState
|
|||||||
|
|
||||||
stack do
|
stack do
|
||||||
image("assets/logo.png", height: 256) do
|
image("assets/logo.png", height: 256) do
|
||||||
pop_state if last_state
|
pop_state if previous_state
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -34,6 +34,8 @@ class MainMenu < CyberarmEngine::GameState
|
|||||||
label "Password"
|
label "Password"
|
||||||
@password = edit_line "", type: :password
|
@password = edit_line "", type: :password
|
||||||
|
|
||||||
|
check_box "Remember me?", checked: true
|
||||||
|
|
||||||
flow do
|
flow do
|
||||||
button "Log In" do
|
button "Log In" do
|
||||||
push_state(Boot)
|
push_state(Boot)
|
||||||
@@ -41,15 +43,14 @@ class MainMenu < CyberarmEngine::GameState
|
|||||||
end
|
end
|
||||||
button "Sign Up"
|
button "Sign Up"
|
||||||
|
|
||||||
check_box checked: true
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
$window.width = Gosu.screen_width/2
|
$window.width = @root_container.width
|
||||||
$window.height = Gosu.screen_height/2
|
$window.height = @root_container.height
|
||||||
$window.fullscreen = false
|
$window.fullscreen = false
|
||||||
|
|
||||||
@root_container.recalculate
|
@root_container.recalculate
|
||||||
|
|||||||
Reference in New Issue
Block a user