mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-17 05:22:35 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user