xx=0;yy+=y;element="";race=""
self.contents.font.color=system_color
self.contents.draw_text(xx, yy, infx, sss.height, "攻击属性")
xx=infx-space;self.contents.font.color=normal_color
s=[];s=element.scan(/./)
#一行显示21个字
for i in s
sss = self.contents.text_size(i)
if (xx+sss.width)>(width - 32)#超过屏幕就换行
yy+=y;xx=infx
end
self.contents.draw_text(xx, yy, sss.width, sss.height, i)
xx+=sss.width
end
xx=0;yy+=y;race=""
for i in skill.plus_state_set
race=race+"["+$data_states.name+"]"
end
self.contents.font.color=system_color
self.contents.draw_text(xx, yy, infx, sss.height, "附加状态")
xx=infx;self.contents.font.color=normal_color
s=[];s=race.scan(/./)
#一行显示21个字
for i in s
sss = self.contents.text_size(i)
if (xx+sss.width)>(width - 32)#超过屏幕就换行
yy+=y;xx=infx
end
self.contents.draw_text(xx, yy, sss.width, sss.height, i)
xx+=sss.width
end
@actor = nil
end
self.visible = true
end
end
[/pre]
作者: 芯☆淡茹水 时间: 2015-1-24 22:32
在 29 行后面加一句:return if skill.description == ""作者: CR~ 时间: 2015-1-24 22:53