Advertisement
neutale

Witch's House Menu +

Apr 13th, 2019
1,031
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 6.45 KB | None | 0 0
  1. #encoding:utf-8
  2.  
  3. =begin
  4. *******************************************************************************************
  5.  
  6.    * Witch's House Menu + *
  7.  
  8.                        for RGSS3
  9.  
  10.         Ver 1.01   2015.01.20
  11.  
  12.    Author:魂(Lctseng),Bahamut Forum ID:play123
  13.  
  14.    Please keep this label reprinted
  15.  
  16.    Home link:http://home.gamer.com.tw/homeindex.php?owner=play123
  17.  
  18.    Description:
  19.             1. A menu similar to Witch's House
  20.             2. Modified to support multiple actors, remove the life display
  21.  
  22.  
  23.    Update Log:
  24.     Ver 1.01 :
  25.     Date:2015.01.20
  26.     Summary:
  27.             correct display for 2~3 actors
  28.    
  29.    
  30.     Ver 1.00 :
  31.     Date:2015.01.20
  32.     Summary:(original release)
  33.  
  34.            
  35.            
  36.     Summary:
  37.              This script modifies or redefines the following categories:
  38.                 1.Window_MenuCommand
  39.                 2.Window_MenuStatus
  40.                 3.Scene_Menu
  41.  
  42.                          
  43.  
  44. *******************************************************************************************
  45.  
  46. =end
  47.  
  48. #*******************************************************************************************
  49. #
  50. #   DO NOT MODIFY UNLESS YOU KNOW WHAT TO DO !
  51. #
  52. #*******************************************************************************************
  53.  
  54. #--------------------------------------------------------------------------
  55. # ★ Script information notice
  56. #--------------------------------------------------------------------------
  57. if !$lctseng_scripts  
  58.   $lctseng_scripts = {}
  59. end
  60. _sym = :simplified_menu_multiactor
  61. $lctseng_scripts[_sym] = "1.01"
  62.  
  63. puts "Loading script:Lctseng - Witch's House Menu +,version:#{$lctseng_scripts[_sym]}"
  64.  
  65.  
  66. #encoding:utf-8
  67. #==============================================================================
  68. # ■ Scene_Menu
  69. #------------------------------------------------------------------------------
  70. #  Menu screen
  71. #==============================================================================
  72.  
  73. class Scene_Menu < Scene_MenuBase
  74.   #--------------------------------------------------------------------------
  75.   # ★ Method redefinition
  76.   #--------------------------------------------------------------------------
  77.   unless @lctseng_simple_menu_on_Scene_Menu_alias
  78.     alias lctseng_simple_menu_on_Scene_Menu_Create_command_window create_command_window # 生成指令窗口
  79.     alias lctseng_simple_menu_on_Scene_Menu_Create_status_window create_status_window # 生成狀態窗口
  80.     @lctseng_simple_menu_on_Scene_Menu_alias = true
  81.   end
  82.   #--------------------------------------------------------------------------
  83.   # ● Start processing - modify definition
  84.   #--------------------------------------------------------------------------
  85.   def start
  86.     super
  87.     create_command_window
  88.     ### create_gold_window # Remove gold window
  89.     create_status_window
  90.   end
  91.   #--------------------------------------------------------------------------
  92.   # ● Create command window - Redefine
  93.   #--------------------------------------------------------------------------
  94.   def create_command_window(*args,&block)
  95.     lctseng_simple_menu_on_Scene_Menu_Create_command_window(*args,&block)
  96.   end
  97.   #--------------------------------------------------------------------------
  98.   # ● Create status window - Redefine
  99.   #--------------------------------------------------------------------------
  100.   def create_status_window(*args,&block)
  101.     lctseng_simple_menu_on_Scene_Menu_Create_status_window(*args,&block)
  102.     # Window coordinates
  103.     @status_window.y = Graphics.height - @status_window.height
  104.     @command_window.y = Graphics.height - @status_window.height + (@status_window.height - @command_window.height ) / 2
  105.   end
  106. end
  107.  
  108.  
  109.  
  110. #encoding:utf-8
  111. #==============================================================================
  112. # ■ Window_MenuCommand
  113. #------------------------------------------------------------------------------
  114. #  Window that displays command list in the menu screen
  115. #==============================================================================
  116.  
  117. class Window_MenuCommand < Window_Command
  118.   #--------------------------------------------------------------------------
  119.   # ● Create command list - modify definition
  120.   #--------------------------------------------------------------------------
  121.   def make_command_list
  122.     add_main_commands
  123.     ## For additions
  124.     add_save_command
  125.     add_game_end_command
  126.   end
  127.   #--------------------------------------------------------------------------
  128.   # ● Add main commands to the list - modify definition
  129.   #--------------------------------------------------------------------------
  130.   def add_main_commands
  131.     add_command(Vocab::item,   :item,   main_commands_enabled)
  132.     ## For additions
  133.   end
  134. end
  135.  
  136. #encoding:utf-8
  137. #==============================================================================
  138. # ■ Window_MenuStatus
  139. #------------------------------------------------------------------------------
  140. #  Window that shows status of actors in the menu screen
  141. #==============================================================================
  142.  
  143. class Window_MenuStatus < Window_Selectable
  144.   #--------------------------------------------------------------------------
  145.   # ● Window height - modify definition
  146.   #--------------------------------------------------------------------------
  147.   def window_height
  148.      16 + item_max * 100
  149.   end
  150.   #--------------------------------------------------------------------------
  151.   # ● Item max - modify definition
  152.   #--------------------------------------------------------------------------
  153.   def item_max
  154.     $game_party.members.size
  155.   end
  156.   #--------------------------------------------------------------------------
  157.   # ● Item height
  158.   #--------------------------------------------------------------------------
  159.   def item_height
  160.     (height - standard_padding * 2) / item_max
  161.   end
  162.   #--------------------------------------------------------------------------
  163.   # ● Draw simple status - modify definition
  164.   #--------------------------------------------------------------------------
  165.   def draw_actor_simple_status(actor, x, y)
  166.     draw_actor_name(actor, x, y)
  167.     draw_actor_level(actor, x, y + line_height * 1)
  168.     draw_actor_icons(actor, x, y + line_height * 2)
  169.     draw_actor_class(actor, x + 120, y)
  170.     ##draw_actor_hp(actor, x + 120, y + line_height * 1)
  171.     ## draw_actor_mp(actor, x + 120, y + line_height * 2) # Remove MP display
  172.   end
  173. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement