加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
就是想弄一个空窗口,只显示一张Pictures里的图片,请问该怎么写?
class Window_Pictures< Window_Base #-------------------------------------------------------------------------- # ● 初始化对像 #-------------------------------------------------------------------------- def initialize(actor) super(270, 30, 170, 140) self.contents = Bitmap.new(width - 32, height - 32) self.back_opacity = 160 self.z= 999 @actor=actor refresh end def draw_Pictures(x,y) bitmap = RPG::Cache.Pictures(Graphics\Pictures + "" , Pictures_hue) self.contents.blt(x,y,bitmap,Rect.new(0,0,bitmap.width,bitmap.height )) end #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- def refresh draw_Pictures(160,360) end
class Window_Pictures< Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize(actor)
super(270, 30, 170, 140)
self.contents = Bitmap.new(width - 32, height - 32)
self.back_opacity = 160
self.z= 999
@actor=actor
refresh
end
def draw_Pictures(x,y)
bitmap = RPG::Cache.Pictures(Graphics\Pictures + "" , Pictures_hue)
self.contents.blt(x,y,bitmap,Rect.new(0,0,bitmap.width,bitmap.height ))
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
draw_Pictures(160,360)
end
|