This commit is contained in:
chardub
2025-06-28 15:18:40 -04:00
parent d383af130b
commit ef5e023ae0
58 changed files with 435 additions and 339 deletions

View File

@@ -1648,7 +1648,11 @@ end
def displaySpriteWindowWithMessage(pif_sprite, message = "", x = 0, y = 0, z = 0)
spriteLoader = BattleSpriteLoader.new
sprite_bitmap = spriteLoader.load_pif_sprite_directly(pif_sprite)
pictureWindow = PictureWindow.new(sprite_bitmap.bitmap)
if sprite_bitmap
pictureWindow = PictureWindow.new(sprite_bitmap.bitmap)
else
pictureWindow = PictureWindow.new("")
end
pictureWindow.opacity = 0
pictureWindow.z = z
@@ -1867,6 +1871,14 @@ def giveJigglypuffScribbles(possible_versions = [1,2,3,4])
end
#type:
# 0: default
# 1: wood
def sign(message,type=0)
signId= "sign_#{type}"
formatted_message = "\\sign[#{signId}]#{message}"
pbMessage(formatted_message)
end