#==============================================================================
# ■ Window_Notice
#------------------------------------------------------------------------------
#显示公告栏。
#==============================================================================
class Window_Notice < Window_Base
#--------------------------------------------------------------------------
# ● 初始化窗口
#--------------------------------------------------------------------------
def initialize
super(0, 0, 200, 480) #窗口大小
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 100
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.size = 16 #字体大小
#self.contents.font.color = Color.new( 0, 0, 0, 255)
self.contents.draw_text(0, 0, 250, 32,"输入你想要的内容")
self.contents.draw_text(0, 16, 250, 32,"第二行")
self.contents.draw_text(0, 32, 250, 32,"第三行")
self.contents.draw_text(0, 48, 250, 32,"以此内推")
self.contents.draw_text(0, 64, 250, 32,"")
self.contents.draw_text(0, 80, 250, 32,"")
self.contents.draw_text(0, 96, 250, 32,"")
self.contents.draw_text(0, 112, 250, 32,"")
self.contents.draw_text(0, 128, 250, 32,"")
self.contents.draw_text(0, 144, 250, 32,"")
self.contents.draw_text(0, 160, 250, 32,"")
self.contents.draw_text(0, 176, 250, 32,"")
self.contents.draw_text(0, 192, 250, 32,"")
self.contents.draw_text(0, 208, 250, 32,"")
self.contents.draw_text(0, 224, 250, 32,"")
self.contents.draw_text(0, 240, 250, 32,"")
self.contents.draw_text(0, 256, 250, 32,"")
self.contents.draw_text(0, 272, 250, 32,"")
self.contents.draw_text(0, 288, 250, 32,"")
self.contents.draw_text(0, 304, 250, 32,"")
self.contents.draw_text(0, 320, 250, 32,"")
self.contents.draw_text(0, 336, 250, 32,"")
end
end
#==============================================================================
# ■ Window_Notice
#------------------------------------------------------------------------------
#显示公告栏。
#==============================================================================
class Window_Notice < Window_Base
#--------------------------------------------------------------------------
# ● 初始化窗口
#--------------------------------------------------------------------------
def initialize
super(0, 0, 200, 480) #窗口大小
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 100
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.size = 16 #字体大小
#self.contents.font.color = Color.new( 0, 0, 0, 255)
self.contents.draw_text(0, 0, 250, 32,"输入你想要的内容")
self.contents.draw_text(0, 16, 250, 32,"第二行")
self.contents.draw_text(0, 32, 250, 32,"第三行")
self.contents.draw_text(0, 48, 250, 32,"以此内推")
self.contents.draw_text(0, 64, 250, 32,"")
self.contents.draw_text(0, 80, 250, 32,"")
self.contents.draw_text(0, 96, 250, 32,"")
self.contents.draw_text(0, 112, 250, 32,"")
self.contents.draw_text(0, 128, 250, 32,"")
self.contents.draw_text(0, 144, 250, 32,"")
self.contents.draw_text(0, 160, 250, 32,"")
self.contents.draw_text(0, 176, 250, 32,"")
self.contents.draw_text(0, 192, 250, 32,"")
self.contents.draw_text(0, 208, 250, 32,"")
self.contents.draw_text(0, 224, 250, 32,"")
self.contents.draw_text(0, 240, 250, 32,"")
self.contents.draw_text(0, 256, 250, 32,"")
self.contents.draw_text(0, 272, 250, 32,"")
self.contents.draw_text(0, 288, 250, 32,"")
self.contents.draw_text(0, 304, 250, 32,"")
self.contents.draw_text(0, 320, 250, 32,"")
self.contents.draw_text(0, 336, 250, 32,"")
end
end