Updated gems, fix issues caused by the removal of $window from cyberarm_engine

This commit is contained in:
2022-07-16 06:59:47 -05:00
parent 07c8dfa45b
commit 580c9d79ce
14 changed files with 49 additions and 51 deletions

View File

@@ -65,11 +65,11 @@ class IMICFPS
end
def hijack_input!
$window.input_hijack = self
CyberarmEngine::Window.instance.input_hijack = self
end
def release_input!
$window.input_hijack = nil
CyberarmEngine::Window.instance.input_hijack = nil
end
end
end

View File

@@ -19,7 +19,7 @@ class IMICFPS
return unless @text_input
Gosu.draw_rect(
Widget.horizontal_margin, $window.height / 2 - (@text.height / 2 + Widget.horizontal_padding),
Widget.horizontal_margin, CyberarmEngine::Window.instance.height / 2 - (@text.height / 2 + Widget.horizontal_padding),
@width - Widget.horizontal_padding * 2, @text.height + Widget.vertical_padding * 2,
@background
)
@@ -44,11 +44,11 @@ class IMICFPS
def update
@deliver_to_text.text = "#{@deliver_to}: "
@deliver_to_text.x = Widget.horizontal_margin + Widget.horizontal_padding
@deliver_to_text.y = $window.height / 2 - (@text.height / 2)
@deliver_to_text.y = CyberarmEngine::Window.instance.height / 2 - (@text.height / 2)
@text.text = @text_input&.text.to_s
@text.x = Widget.horizontal_margin + Widget.horizontal_padding + @deliver_to_text.width
@text.y = $window.height / 2 - (@text.height / 2)
@text.y = CyberarmEngine::Window.instance.height / 2 - (@text.height / 2)
end
def button_down(id)