Save-Point
Picture Message Window - With Ease - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+--- Thread: Picture Message Window - With Ease (/thread-2395.html)



Picture Message Window - With Ease - Mac - 03-08-2008

Picture Message Window - With Ease

Introduction
I don't usually create stuff like this, but i hear alot of complaints about it...when it is generally such an easy thing to do, all this does is alias window_message so that an image will appear exactly inline with window no matter where it's positioned.

This script is in no way intended to be good or anything amazing, it was created for those who know nothing about RGSS and to allow people to make beautiful message systems instead of using the windowskin.

Add this above main and remember to store your message window picture in the 'picture' folder, sized 480 width x 160 height. Also replace the word Message with whatever you called your image. Also you can now change the opacity of the image to make life easier, to change it, just change the line message.opacity = 200 to any desired number (0 being invisble amd 255 being solid).

Code:
#-----------------------------------------------------------------------------
#  Window Message Rewrite by Mac
#=============================================================================
class Window_Message < Window_Selectable
  # Alias Message_Window initialize  
  alias message_window_init initialize
    def initialize
    message_window_init
      self.opacity = 0
      @message = Sprite.new
      @message.bitmap = RPG::Cache.picture('Message')
      @message.y = self.y
      @message.x = self.x
      @message.visible = self.visible
      @message.opacity = 200
    end
  # Alias Message_Window update  
  alias message_window_upda update
    def update
       message_window_upda
        @message.visible = self.visible
      end
      end
Example
[Image: pmspw2.png]

Q&A

Q. Does this work with the UMS?
Not sure awaiting confirmation

~Mac

PS. Yes i know it needs updating :P