Project1
标题:
如何把物品栏上的分类栏去掉?
[打印本页]
作者:
kaitak
时间:
2013-1-1 14:35
标题:
如何把物品栏上的分类栏去掉?
请问怎样才能去掉分类栏(item category),然后在主菜单选物品项目时能直接跳去使用物品(就像魔女之家那种)?
作者:
acn00269
时间:
2013-1-1 15:52
本帖最后由 acn00269 于 2013-1-1 15:54 编辑
替换
360软件小助手截图20130101155152.jpg
(129.56 KB, 下载次数: 20)
下载附件
保存到相册
2013-1-1 15:52 上传
#encoding:utf-8
#==============================================================================
# ■ Window_ItemCategory
#------------------------------------------------------------------------------
# 物品画面和商店画面中,显示装备、所持物品等项目列表的窗口。
#==============================================================================
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
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1