Project1
标题:
如何删除装备场景的三个选项?
[打印本页]
作者:
黄濑凉太
时间:
2015-5-24 12:53
标题:
如何删除装备场景的三个选项?
本帖最后由 黄濑凉太 于 2015-5-24 17:30 编辑
就是 更换装备 最强装备 卸下装备
这三个取消 然后一进装备菜单的选项框直接在装备栏。。谢谢
作者:
3106345123
时间:
2015-5-24 17:13
装备风格扩展
作者:
黄濑凉太
时间:
2015-5-24 21:49
求解………………………………
作者:
cinderelmini
时间:
2015-5-24 22:31
稍微用默认的删减一下就可以了~
召唤此装备界面请使用事件-脚本:Scene_Manager.call(Scene_Equip_a)
脚本名请自行修改~此外各窗口之间的宽高坐标关系自己改大丈夫?
唔……
作者:
企鹅达达
时间:
2015-5-24 22:35
#encoding:utf-8
#==============================================================================
# ■ Scene_Equip
#------------------------------------------------------------------------------
# 装备画面
#==============================================================================
class Scene_EquipEX < Scene_Equip
#--------------------------------------------------------------------------
# ● 生成指令窗口
#--------------------------------------------------------------------------
def create_command_window
# wx = @status_window.width #删除
# wy = @help_window.height #删除
# ww = Graphics.width - @status_window.width #删除
# @command_window = Window_EquipCommand.new(wx, wy, ww) #删除
# @command_window.viewport = @viewport #删除
# @command_window.help_window = @help_window #删除
# @command_window.set_handler(:equip, method(:command_equip)) #删除
# @command_window.set_handler(:optimize, method(:command_optimize)) #删除
# @command_window.set_handler(:clear, method(:command_clear)) #删除
# @command_window.set_handler(:cancel, method(:return_scene)) #删除
# @command_window.set_handler(:pagedown, method(:next_actor)) #删除
# @command_window.set_handler(:pageup, method(:prev_actor)) #删除
end
#--------------------------------------------------------------------------
# ● 生成装备栏窗口
#--------------------------------------------------------------------------
def create_slot_window
wx = @status_window.width
wy = @help_window.height# @command_window.y + @command_window.height
ww = Graphics.width - @status_window.width
@slot_window = Window_EquipSlot.new(wx, wy, ww)
@slot_window.viewport = @viewport
@slot_window.help_window = @help_window
@slot_window.status_window = @status_window
@slot_window.actor = @actor
@slot_window.set_handler(:ok, method(:on_slot_ok))
# @slot_window.set_handler(:cancel, method(:on_slot_cancel)) #删除
####################################################
@slot_window.set_handler(:cancel, method(:return_scene)) #添加
@slot_window.set_handler(:pagedown, method(:next_actor)) #添加
@slot_window.set_handler(:pageup, method(:prev_actor)) #添加
@slot_window.activate #添加
@slot_window.select(0) #添加
#####################################################
end
#--------------------------------------------------------------------------
# ● 切换角色
#--------------------------------------------------------------------------
def on_actor_change
@status_window.actor = @actor
@slot_window.actor = @actor
@item_window.actor = @actor
# @command_window.activate
##############################
@slot_window.activate #添加
@slot_window.select(0) #添加
##############################
end
end
#encoding:utf-8
#==============================================================================
# ■ Scene_Menu
#------------------------------------------------------------------------------
# 菜单画面
#==============================================================================
class Scene_Menu < Scene_MenuBase
#--------------------------------------------------------------------------
# ● 个人指令“确定”
#--------------------------------------------------------------------------
def on_personal_ok
case @command_window.current_symbol
when :skill
SceneManager.call(Scene_Skill)
when :equip
# SceneManager.call(Scene_Equip) #删除
###################################
SceneManager.call(Scene_EquipEX) #添加
###################################
when :status
SceneManager.call(Scene_Status)
end
end
end
复制代码
大概是这样改,坐标自己调吧
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1