Save-Point
Toggle Message Window VX - 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 VX/VXAce (RGSS2/3) Engines (https://www.save-point.org/forum-117.html)
+---- Thread: Toggle Message Window VX (/thread-10894.html)



Toggle Message Window VX - kyonides - 11-11-2024

Toggle Message Window VX

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 VX * #
#  2024-11-10

module Input
  HIDE_MESSAGE_BTN = A
end

class Window_Message
  alias :win_mess_up :update
  def update
    win_mess_up
    unless @opening or @closing
      if Input.trigger?(Input::HIDE_MESSAGE_BTN)
        self.visible = !self.visible
      end
    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