Project1

标题: 默认系统怎么去掉物品分类? [打印本页]

作者: hijl1990    时间: 2014-10-19 15:18
标题: 默认系统怎么去掉物品分类?
就是怎么去掉默认系统里的物品分类功能。。这应该很简单吧。。
作者: VIPArcher    时间: 2014-10-19 15:28
  1. #encoding:utf-8
  2. #==============================================================================
  3. # ■ Scene_Item
  4. #------------------------------------------------------------------------------
  5. #  物品画面
  6. #==============================================================================

  7. class Scene_Item < Scene_ItemBase
  8.   #--------------------------------------------------------------------------
  9.   # ● 开始处理
  10.   #--------------------------------------------------------------------------
  11.   def start
  12.     super
  13.     create_help_window
  14.     create_item_window
  15.   end
  16.   #--------------------------------------------------------------------------
  17.   # ● 生成物品窗口
  18.   #--------------------------------------------------------------------------
  19.   def create_item_window
  20.     wy = @help_window.height
  21.     wh = Graphics.height - wy
  22.     @item_window = Window_ItemList.new(0, wy, Graphics.width, wh)
  23.     @item_window.viewport = @viewport
  24.     @item_window.help_window = @help_window
  25.     @item_window.set_handler(:ok,     method(:on_item_ok))
  26.     @item_window.set_handler(:cancel, method(:return_scene))
  27.     @item_window.category = :item  #默认分类
  28.     @item_window.activate
  29.     @item_window.select_last
  30.   end
  31. end
复制代码
未测试




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