赞 | 14 |
VIP | 0 |
好人卡 | 4 |
积分 | 24 |
经验 | 30333 |
最后登录 | 2024-3-12 |
在线时间 | 912 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 2385
- 在线时间
- 912 小时
- 注册时间
- 2014-10-14
- 帖子
- 1331

|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
#============================================================================== # ■ 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
|
|