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