Remove MultiLineText as gosu natively supports newlines, Update Text to correctly calculate its height, call super in button_down/button_up to support gosu's fullscreen toggle, added Window.text_input = nil to GameState to prevent fustrating bugs that stem from forgetting to set it back to nil.

This commit is contained in:
2019-03-31 17:34:24 -05:00
parent 74a3631111
commit cc97077b0f
6 changed files with 15 additions and 72 deletions

View File

@@ -36,7 +36,7 @@ module CyberarmEngine
setup
@debug_text = MultiLineText.new("", color: @debug_color, y: @position.y-(self.height*self.scale), z: 9999)
@debug_text = Text.new("", color: @debug_color, y: @position.y-(self.height*self.scale), z: 9999)
@debug_text.x = @position.x
if @radius == 0 || @radius == nil
@radius = options[:radius] ? options[:radius] : defined?(@image.width) ? ((@image.width+@image.height)/4)*scale : 1
@@ -121,11 +121,11 @@ module CyberarmEngine
end
def width
@image ? @image.width : 0
@image ? @image.width * self.scale : 0
end
def height
@image ? @image.height : 0
@image ? @image.height * self.scale : 0
end
def pause