Project1
标题:
默认系统怎么去掉物品分类?
[打印本页]
作者:
hijl1990
时间:
2014-10-19 15:18
标题:
默认系统怎么去掉物品分类?
就是怎么去掉默认系统里的物品分类功能。。这应该很简单吧。。
作者:
VIPArcher
时间:
2014-10-19 15:28
#encoding:utf-8
#==============================================================================
# ■ Scene_Item
#------------------------------------------------------------------------------
# 物品画面
#==============================================================================
class Scene_Item < Scene_ItemBase
#--------------------------------------------------------------------------
# ● 开始处理
#--------------------------------------------------------------------------
def start
super
create_help_window
create_item_window
end
#--------------------------------------------------------------------------
# ● 生成物品窗口
#--------------------------------------------------------------------------
def create_item_window
wy = @help_window.height
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(:return_scene))
@item_window.category = :item #默认分类
@item_window.activate
@item_window.select_last
end
end
复制代码
未测试
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1