加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
class Window_Variabless < Window_Base def initialize(x, y, width, height) super(x, y, width, height) self.opacity = 0 refresh end def update super refresh end def refresh self.contents.clear create_variables draw_actor_hp($game_party.members[0], 30, 0, 80) draw_actor_mp($game_party.members[0], 30, 24, 80) end def create_variables self.contents.clear self.contents_opacity = 255 self.contents.font.size=16 self.contents.font.name="方正粗圆简体" self.contents.font.color=text_color(0) end end
class Window_Variabless < Window_Base
def initialize(x, y, width, height)
super(x, y, width, height)
self.opacity = 0
refresh
end
def update
super
refresh
end
def refresh
self.contents.clear
create_variables
draw_actor_hp($game_party.members[0], 30, 0, 80)
draw_actor_mp($game_party.members[0], 30, 24, 80)
end
def create_variables
self.contents.clear
self.contents_opacity = 255
self.contents.font.size=16
self.contents.font.name="方正粗圆简体"
self.contents.font.color=text_color(0)
end
end
RT 我感觉没什么区别 教我写窗口的人告诉我都要写进来
更新和刷新的区别是什么呢? |