Project1
标题:
怎样把这菜单移下来
[打印本页]
作者:
ROMB板
时间:
2012-5-19 18:19
标题:
怎样把这菜单移下来
fsdasd.JPG
(13.85 KB, 下载次数: 21)
下载附件
保存到相册
2012-5-19 18:19 上传
dsu_plus_rewardpost_czw
作者:
tommay
时间:
2012-5-19 18:23
本帖最后由 tommay 于 2012-5-19 18:24 编辑
在Scene_Menu里加入下面的红色部分,数值可以自己调
def create_command_window
s1 = Vocab::item
s2 = Vocab::skill
s3 = Vocab::equip
s4 = Vocab::status
s5 = Vocab::save
s6 = Vocab::game_end
@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])
@command_window.y = 100
@command_window.index = @menu_index
if $game_party.members.size == 0 # 如果队伍为空
@command_window.draw_item(0, false) # 无效化物品选项
@command_window.draw_item(1, false) # 无效化技能选项
@command_window.draw_item(2, false) # 无效化装备选项
@command_window.draw_item(3, false) # 无效化状态选项
end
if $game_system.save_disabled # 如果禁止存档
@command_window.draw_item(4, false) # 无效化存档选项
end
end
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1