本帖最后由 Mr.喵 于 2013-7-11 14:47 编辑 如图,我不想要红线划的地方,在脚本里面哪里删掉啊?我找不到。求解答
=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) endendclass Scene_Menu < Scene_MenuBase def start super create_command_window create_status_window endendclass 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 endendclass 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)) endendclass Window_Base < Window def draw_actor_simple_status(actor, x, y) draw_actor_name(actor, x, y) endendclass 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) endend
=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
查看全部评分
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-18 10:36
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.