赞 | 46 |
VIP | 0 |
好人卡 | 0 |
积分 | 310 |
经验 | 0 |
最后登录 | 2024-4-16 |
在线时间 | 247 小时 |
Lv5.捕梦者
- 梦石
- 24
- 星屑
- 7047
- 在线时间
- 247 小时
- 注册时间
- 2020-12-4
- 帖子
- 306
|
- if name_window_set
- off_x = 0
- off_y = -40
- space = 2
- x = self.x + off_x - space / 2
- y = self.y + off_y - space / 2
- w = self.contents.text_size(name_text).width + 26 + space
- h = 40 + space
- x = self.x + off_x + 4
- y = self.y + off_y
- @name_window_text = Air_Text.new(self.x + @face_indent+4+8, self.y+16, name_text, name_color)
- @name_window_text.z = self.z + 2
- @bar = Sprite.new
- @bar.bitmap = Bitmap.new(self.width, 24)
- face_cut = @face_bitmap == nil ? 0 : @face_indent + 2
- @bar.x = self.x + 8 + face_cut
- @bar.y = self.y + 16
- @bar.z = self.z + 2
- @bar.bitmap.fill_rect(0,0,self.width-16-face_cut,24, Name_Bar_Color)
- end
复制代码
这个是从我的对话框的名字色背景矩形描绘的对应的一段的脚本
你试试看能不能插入你的脚本
【注意适配类变量的变量名,并在释放的窗口的时候释放对应的矩形框框】 |
|