mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-13 14:52:35 +00:00
Update padding/margin for engine update
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
require "base64"
|
require "base64"
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require "cyberarm_engine"
|
|
||||||
rescue LoadError
|
|
||||||
require_relative "../cyberarm_engine/lib/cyberarm_engine"
|
require_relative "../cyberarm_engine/lib/cyberarm_engine"
|
||||||
|
rescue LoadError
|
||||||
|
require "cyberarm_engine"
|
||||||
end
|
end
|
||||||
|
|
||||||
require_relative "lib/states/boot"
|
require_relative "lib/states/boot"
|
||||||
@@ -17,4 +17,4 @@ class Window < CyberarmEngine::Engine
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Window.new(Gosu.screen_width, Gosu.screen_height, true).show
|
# Window.new(Gosu.screen_width, Gosu.screen_height, true).show
|
||||||
Window.new(Gosu.screen_width/2, Gosu.screen_height/2, false).show
|
Window.new(width: Gosu.screen_width/2, height: Gosu.screen_height/2, fullscreen: false).show
|
||||||
@@ -6,7 +6,7 @@ class MainMenu < CyberarmEngine::GuiState
|
|||||||
stack do
|
stack do
|
||||||
background 0xaabada55
|
background 0xaabada55
|
||||||
|
|
||||||
flow(padding: 10, margin: 10) do
|
flow do
|
||||||
# background 0xff00aa00
|
# background 0xff00aa00
|
||||||
|
|
||||||
stack do
|
stack do
|
||||||
@@ -20,7 +20,7 @@ class MainMenu < CyberarmEngine::GuiState
|
|||||||
end
|
end
|
||||||
|
|
||||||
stack do
|
stack do
|
||||||
image("assets/logo.png", height: 256) do
|
image("assets/logo.png", height: 250) do
|
||||||
pop_state if previous_state
|
pop_state if previous_state
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user