class Window_ChoiceList
def max_choice_width
$game_message.choices.collect {|s| pro_ex(s) }.max
end
def pro_ex(str)
s = convert_escape_characters(str)
pos = {:x => 0, :y => -Graphics.height, :new_x => 0, :height => calc_line_height(s)}
process_character(s.slice!(0, 1), s, pos) until s.empty?
pos[:x]
end
end
class Window_ChoiceList
def max_choice_width
$game_message.choices.collect {|s| pro_ex(s) }.max
end
def pro_ex(str)
s = convert_escape_characters(str)
pos = {:x => 0, :y => -Graphics.height, :new_x => 0, :height => calc_line_height(s)}
process_character(s.slice!(0, 1), s, pos) until s.empty?
pos[:x]
end
end