class Air_Text < Window_Base
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
def initialize(x, y, designate_text)
super(x-16, y-16, 32 + designate_text.size * 12, 56)
self.opacity = 0
self.back_opacity = 0
self.contents = Bitmap.new(self.width - 32, self.height - 32)
w = self.contents.width
h = self.contents.height
self.contents.font.color = Color.new(0, 0, 0, 255) #把這句添加上去
self.contents.draw_text(0, 0, w, h, designate_text)
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |