本帖最后由 流浪杰哥 于 2015-12-1 23:37 编辑 如下图,左右两边的命令窗口会有个动作切换出来,我想把那两个命令窗口就固定在左边不动,还有就是显示角色的窗口也固定不动,不知道该改脚本具体哪个位置,还请高 ...
流浪杰哥 发表于 2015-12-2 14:46 确实是可以了,不过角色命令窗口看不见了,试着调整@actor_command_window.x坐标,发现竟然没有用,不知 ...
class Scene_Battle < Scene_Base def start_party_command_selection unless scene_changing? refresh_status @status_window.unselect @status_window.open if BattleManager.input_start @actor_command_window.close command_fight else @party_command_window.deactivate turn_start end end end def create_actor_command_window @actor_command_window = Window_ActorCommand.new @actor_command_window.viewport = @info_viewport @actor_command_window.set_handler(:attack, method(:command_attack)) @actor_command_window.set_handler(:skill, method(:command_skill)) @actor_command_window.set_handler(:guard, method(:command_guard)) @actor_command_window.set_handler(:item, method(:command_item)) @actor_command_window.set_handler(:escape, method(:command_escape)) @actor_command_window.set_handler(:cancel, method(:prior_command)) @actor_command_window.x = Graphics.width end endclass Window_ActorCommand < Window_Command def make_command_list return unless @actor add_attack_command add_skill_commands add_guard_command add_item_command add_escape_command end def add_escape_command add_command(Vocab::escape, :escape, BattleManager.can_escape?) end end
class Scene_Battle < Scene_Base def start_party_command_selection unless scene_changing? refresh_status @status_window.unselect @status_window.open if BattleManager.input_start @actor_command_window.close command_fight else @party_command_window.deactivate turn_start end end end def create_actor_command_window @actor_command_window = Window_ActorCommand.new @actor_command_window.viewport = @info_viewport @actor_command_window.set_handler(:attack, method(:command_attack)) @actor_command_window.set_handler(:skill, method(:command_skill)) @actor_command_window.set_handler(:guard, method(:command_guard)) @actor_command_window.set_handler(:item, method(:command_item)) @actor_command_window.set_handler(:escape, method(:command_escape)) @actor_command_window.set_handler(:cancel, method(:prior_command)) @actor_command_window.x = Graphics.width end end class Window_ActorCommand < Window_Command def make_command_list return unless @actor add_attack_command add_skill_commands add_guard_command add_item_command add_escape_command end def add_escape_command add_command(Vocab::escape, :escape, BattleManager.can_escape?) end end
查看全部评分
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-17 03:38
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.