when 0 # 上
self.y = 16
when 1 # 中
self.y = 160
when 2 # 下
self.y = 304
end
self.x = 80
when 0 # 上
self.y = 16
self.x = 80
when 1 # 中
self.y = 160
self.x = 80
when 2 # 下
self.y = 304
self.x = 80
end
# 设置系统默认字体
Font.default_name = (["黑体"])
super(80, 304, 480, 160)
self.x = 80
if @face_bitmap == nil
self.width = 480
else
self.width = 600
self.x -= 60
end
self.height = 160
end
返回値:行高
#--------------------------------------------------------------------------
def line_height
return 32
if self.contents.font.size >= 20 and self.contents.font.size <= 24
return 32
else
return self.contents.font.size * 15 / 10
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |