Save-Point
Toggle Message Window XP - 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)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: Toggle Message Window XP (/thread-10893.html)



Toggle Message Window XP - kyonides - 11-11-2024

Toggle Message Window XP

by Kyonides

Introduction

It is normal for certain visual novels or VN's to let you hide the message window while an image is being displayed on screen.
This scriptlet allows you to achieve this in a very convenient way.
By the way, you can replace the A button with any other of the available buttons.

Code:
# * Toggle Message Window XP * #
#  2024-11-10

module Input
  HIDE_MESSAGE_BTN = A
end

class Window_Message
  alias :win_mess_up :update
  def update
    win_mess_up
    if @contents_showing and Input.trigger?(Input::HIDE_MESSAGE_BTN)
      self.visible = !self.visible
    end
  end
end

Terms & Conditions

Free for use in ANY game. Gamer
Due credit is optional here, but at least mention this forum if you don't mind.
That's it! Tongue sticking out