以下引用yejianrui1于2008-9-29 23:54:59的发言:
主要是怎么把字體改色
........
def scene_start
credit_lines = CREDIT.split(/\n/)
credit_bitmap = Bitmap.new(640,32 * credit_lines.size)
credit_lines.each_index do |i|
line = credit_lines
credit_bitmap.draw_text(0,i * 32,410,32,line,1)
end
以下引用天圣的马甲于2008-9-30 0:32:52的发言:
def scene_start
credit_lines = CREDIT.split(/\n/)
credit_bitmap = Bitmap.new(640,32 * credit_lines.size)
credit_lines.each_index do |i|
line = credit_lines
credit_bitmap.draw_text(0,i * 32,410,32,line,1)
end
把edit_bitmap.font.color = Color.new(0,0,0,255)插入那句彩色的脚本上面。
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |