Project1

标题: 我想删除菜单里面一些不要的地方(例如贵重物品,Lv,金... [打印本页]

作者: Mr.喵    时间: 2013-7-11 01:01
标题: 我想删除菜单里面一些不要的地方(例如贵重物品,Lv,金...
本帖最后由 Mr.喵 于 2013-7-11 14:47 编辑

如图,我不想要红线划的地方,在脚本里面哪里删掉啊?我找不到。求解答
作者: 结城照美    时间: 2013-7-11 01:20
这里是VX区..
作者: Mr.喵    时间: 2013-7-11 12:23
啊= =发错地方。。。。应该都差不多吧。。好吧。。求删
作者: 喵呜喵5    时间: 2013-7-11 14:21


[pre lang="ruby" line="1"]=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[/pre]


作者: Mr.喵    时间: 2013-7-11 14:40
非常感谢,我会用了




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X5.0