self.visible=false
self.contents.font.size=17
refresh
end
def refresh
hangjianju=24
self.contents.font.size=17
self.contents.clear
if $skill_xuhao.size>0
y=0
for i in $skill_xuhao
name=$data_items[i].name
shuzu1=name.scan(/./)
unless $data_items[i].element_set.include?(150)
shuzu2=$data_items[i].description.scan(/./)
else
shuzu2=$game_variables[488][i].scan(/./)
end
x_initia=0
x_temp=0
self.contents.font.color=Color.new(32,255,79)
for j in 0...shuzu1.size
width_next=self.contents.text_size(shuzu1[j]).width
if x_temp+width_next>width-24
y+=hangjianju
x_temp=0
end
self.contents.draw_text(x_temp,y,width_next,24,shuzu1[j])
x_temp+=width_next
end
y+=32
x_temp=0
self.contents.font.color=Color.new(255,255,255)
for j in 0...shuzu2.size
width_next=self.contents.text_size(shuzu2[j]).width
if x_temp+width_next>width-24
y+=hangjianju
x_temp=0
end
self.contents.draw_text(x_temp,y,width_next,24,shuzu2[j])
x_temp+=width_next
end
y+=40
end
end
end
end