More characters customization

This commit is contained in:
chardub
2025-04-27 12:17:35 -04:00
parent 4a19fbc754
commit 6536fcda77
10 changed files with 333 additions and 55 deletions

View File

@@ -0,0 +1,14 @@
# frozen_string_literal: true
class IconSprite
def setBitmapDirectly(bitmap)
oldrc = self.src_rect
clearBitmaps()
@name = ""
return if bitmap == nil
@_iconbitmap = bitmap
# for compatibility
#
self.bitmap = @_iconbitmap ? @_iconbitmap.bitmap : nil
self.src_rect = oldrc
end
end