Black_Mage

VLUE Basic Mouse Script Compatibility Fix

Apr 11th, 2021 (edited)
353
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module BLACK
  2.   # There's a hidden window on the game menu that corresponds with the mouse
  3.   # highlight system. The setting below can be used to customize said window.
  4.   #
  5.   #                     x, y, option height, option width
  6.   MOUSE_MENU_SETTING = [0, 0,            34,         236]
  7. end
  8.  
  9. module Mouse
  10.   class << self
  11.     alias b_update update
  12.     def update; (return if !$black_ms_dis); b_update; end
  13.   end
  14. end
  15. class Scene_File < Scene_MenuBase; def mouse_input; end; end
  16. class Window_Selectable
  17.   alias b_up_mo update_mouse
  18.   def update_mouse
  19.     last_index = @index; b_up_mo; Sound.play_cursor if @index != last_index
  20.   end
  21. end
  22. class Scene_Title < Scene_Base
  23.   alias b_sta_mou start; def start; $black_ms_dis = false; b_sta_mou; end
  24. end
  25. class Scene_Load < Scene_File  
  26.   def on_load_success; super; $black_ms_dis = true; end
  27. end
  28. class Scene_Title < Scene_Base
  29.   alias black_com_ng command_new_game
  30.   def command_new_game; $black_ms_dis = true; black_com_ng; end
  31. end
  32. class Scene_Menu < Scene_MenuBase
  33.   alias b_ms_ccw create_command_window
  34.   def create_command_window
  35.     b_ms_ccw
  36.     @command_window.x = BLACK::MOUSE_MENU_SETTING[0]
  37.     @command_window.y = BLACK::MOUSE_MENU_SETTING[1]
  38.   end
  39. end
  40. class Window_MenuCommand < Window_Command
  41.   def item_height; BLACK::MOUSE_MENU_SETTING[2]; end
  42.   def window_width; BLACK::MOUSE_MENU_SETTING[3]; end
  43.   def window_height
  44.     visible_line_number * item_height + standard_padding * 2
  45.   end
  46. end
RAW Paste Data