WhiteSnow::CONTENTS_SIZE.times do |i|
WhiteSnow::CONTENTS.each do |content|
t = content.keys.pop
text = t.dup
unless text.scan(/\\v\[(\d+)\]/).empty?
text_v = text.gsub(/\\v\[(\d+)\]/) { "#{$game_variables[$1.to_i]}" }
text.nil?
text = "" if text.nil?
end
flag = true if text.scan(/\\i\[(\d+)\]/)
icon_index = $1.to_i
text_p = text.dup
text.gsub!(/\\i\[\d+\]/) { "" }
# 座標計算追加----------------------
item_width_x = item_width / 2
x = (i % 2) * item_width_x
y = (i / 2) * item_height
# ------------------------------------
if flag
case content[text_p]
when 0
#~ draw_icon(icon_index, 0, i * 24)
draw_icon(icon_index, x, y)
when 1
#~ draw_icon(icon_index, item_width / 2 - 12, i * 24)
draw_icon(icon_index, x + item_width_x / 2 - 12, y)
when 2
#~ draw_icon(icon_index, item_width, i * 24)
draw_icon(icon_index, x + item_width_x, y)
end
end
if text_v
#~ draw_text(0, i * 24, item_width, item_height, text_v, content[text])
draw_text(x, y, item_width_x, item_height, text_v, content[text])
else
#~ draw_text(0, i * 24, item_width, item_height, text, content[text]) unless text.empty?
draw_text(x, y, item_width_x, item_height, text, content[text]) unless text.empty?
end
end
end
end
#--------------------------------------------------------------------------
# ● ウィンドウを開く
#--------------------------------------------------------------------------
def open
refresh
super
end
end