class Scene_Battle < Scene_Base
def create_actor_command_window
@actor_command_window = Window_ActorCommand.new
@actor_command_window.viewport = @info_viewport
@actor_command_window.set_handler(:skill, method(:command_skill))
@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_skill_commands
end
end
class Scene_Battle < Scene_Base
def create_actor_command_window
@actor_command_window = Window_ActorCommand.new
@actor_command_window.viewport = @info_viewport
@actor_command_window.set_handler(:skill, method(:command_skill))
@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_skill_commands
end
end