if @character.name.split(/,/)[1] != nil
case @character.name.split(/,/)[1]
when "0"
@namesprite.bitmap.font.color.set(255, 255, 255)
when "1"
@namesprite.bitmap.font.color.set(128, 128, 255)
when "2"
@namesprite.bitmap.font.color.set(255, 128, 128)
when "3"
@namesprite.bitmap.font.color.set(128, 255, 128)
when "4"
@namesprite.bitmap.font.color.set(128, 255, 255)
when "5"
@namesprite.bitmap.font.color.set(255, 128, 255)
when "6"
@namesprite.bitmap.font.color.set(255, 255, 128)
when "7"
@namesprite.bitmap.font.color.set(192, 192, 192)
else
@namesprite.bitmap.font.color.set(255, 255, 255)
end
end
@namesprite.bitmap.font.color.set(255, 255, 255)
以下引用Iselia雪于2008-3-16 15:38:32的发言:
@namesprite.bitmap.font.name = "黑体" #把黑體改成別的即可
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |