GreenBanana
Member
Well, I worry that I'm not good at explaining, but I hope I made things at least somewhat clear. And you're welcome.
module CM_Debug_Output
def self.write(output)
return unless $scene.is_a?(Scene_Menu)
file = open("Commands Manager Output.txt", "w")
lines = IO.readlines("Commands Manager Output.txt")
for i in 0...output.size
lines[i] = output[i] + "\n"
end
file.write(lines)
file.close
end
end
class Window_Command
alias output_draw_item draw_item
def draw_item(index, color)
CM_Debug_Output.write(@commands)
output_draw_item(index, color)
end
end