=begin
===============================================================================
默认菜单改 By喵呜喵5
===============================================================================
【说明】
修改成了解谜游戏常见的菜单,大量修改了默认方法,所以不出意外的话会和其他菜单美化脚本
发生冲突,咱不负责修正,嗯哼!
另外,只是删除了默认的选项而已,并没有针对菜单做太多的美化……
“这些是美工的事情啦!不懂脚本的美工弱爆了啦!”
……差不多是这样的感觉
=end
#==============================================================================
# 脚本部分
#==============================================================================
class Window_MenuCommand < Window_Command
def make_command_list
add_main_commands
add_game_end_command
end
def add_main_commands
add_command(Vocab::item, :item, main_commands_enabled)
add_command(Vocab::status, :status, main_commands_enabled)
end
end
class Scene_Menu < Scene_MenuBase
def start
super
create_command_window
create_status_window
end
end
class Window_ItemCategory < Window_HorzCommand
attr_reader :item_window
def initialize
super(1000, 0)
end
def window_width
Graphics.width
end
def col_max
return 1
end
def update
super
@item_window.category = current_symbol if @item_window
end
def make_command_list
add_command(Vocab::item, :item)
end
def item_window=(item_window)
@item_window = item_window
update
end
end
class Scene_Item < Scene_ItemBase
def start
super
create_help_window
create_category_window
create_item_window
on_category_ok
end
def create_item_window
wy = @category_window.y
wh = Graphics.height - wy
@item_window = Window_ItemList.new(0, wy, Graphics.width, wh)
@item_window.viewport = @viewport
@item_window.help_window = @help_window
@item_window.set_handler(:ok, method(:on_item_ok))
@item_window.set_handler(:cancel, method(:on_item_cancel))
@category_window.item_window = @item_window
end
def on_item_cancel
return_scene
end
def create_category_window
@category_window = Window_ItemCategory.new
@category_window.viewport = @viewport
@category_window.help_window = @help_window
@category_window.y = @help_window.height
@category_window.set_handler(:ok, method(:on_item_ok))
@category_window.set_handler(:cancel, method(:return_scene))
end
end
class Window_Base < Window
def draw_actor_simple_status(actor, x, y)
draw_actor_name(actor, x, y)
end
end
class Window_Status < Window_Selectable
def refresh
contents.clear
draw_block1 (line_height * 0)
draw_horz_line(line_height * 1)
draw_block2 (line_height * 2)
draw_horz_line(line_height * 6)
draw_block4 (line_height * 7)
end
def draw_block2(y)
draw_actor_face(@actor, 8, y)
end
end