|
[求助]横向选单的详细说明!!!
http://rock512.go1.icpcn.com/html/rgss08b.htm
完全看不懂
#--------------------------------------------------------------------------
# ● リフレッシュ
#--------------------------------------------------------------------------
def refresh
# ★==========================================================================★
self.contents.clear
for i in 0...@item_max
draw_item(i, normal_color)
end
cx = contents.text_size($data_system.words.gold).width
self.contents.font.color = system_color
self.contents.draw_text(604 - cx, 28, cx, 32, $data_system.words.gold)
self.contents.font.color = normal_color
self.contents.draw_text(480, 28, 124 - cx, 32, $game_party.gold.to_s, 2)
# ★==========================================================================★
end
#--------------------------------------------------------------------------
# ● 項目の描画
# index : 項目番号
# color : 文字色
#--------------------------------------------------------------------------
def draw_item(index, color)
# ★==========================================================================★
self.contents.font.color = color
rect = Rect.new(index % @column_max * 160, index / @column_max * 32,
128, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
self.contents.draw_text(rect, @commands[index], 1)
# ★==========================================================================★
|
|