Many more Rubocop-inspired code improvements

This commit is contained in:
Maruno17
2021-12-18 19:06:22 +00:00
parent d17fc40a47
commit 13a238cc6a
107 changed files with 651 additions and 652 deletions

View File

@@ -13,7 +13,7 @@ class IconWindow < SpriteWindow_Base
end
def dispose
clearBitmaps()
clearBitmaps
super
end
@@ -38,7 +38,7 @@ class IconWindow < SpriteWindow_Base
# Sets the icon's filename.
def setBitmap(file, hue = 0)
clearBitmaps()
clearBitmaps
@name = file
return if file == nil
if file != ""
@@ -67,7 +67,7 @@ class PictureWindow < SpriteWindow_Base
end
def dispose
clearBitmaps()
clearBitmaps
super
end
@@ -92,7 +92,7 @@ class PictureWindow < SpriteWindow_Base
# Sets the icon's bitmap or filename. (hue parameter
# is ignored unless pathOrBitmap is a filename)
def setBitmap(pathOrBitmap, hue = 0)
clearBitmaps()
clearBitmaps
if pathOrBitmap != nil && pathOrBitmap != ""
if pathOrBitmap.is_a?(Bitmap)
@_iconbitmap = pathOrBitmap