赞 | 8 |
VIP | 0 |
好人卡 | 2 |
积分 | 33 |
经验 | 37069 |
最后登录 | 2023-10-30 |
在线时间 | 1463 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 3288
- 在线时间
- 1463 小时
- 注册时间
- 2014-8-9
- 帖子
- 337
|
def draw_bitmap(name, x, y, type = false)
pic = name + ".png"
@bitmap = Bitmap.new("Graphics/Pictures/#{pic}")
rect = Rect.new(@bitmap.width, @bitmap.height, 80, 80)
x -= rect.width / 2
y -= rect.height/2
self.contents.blt(x, y,@bitmap, rect, self.contents.font.color.alpha)
end
比如写个这个插到脚本里
然后在draw_music那里
把显示文字的擦了 写上 draw_bitmap(name,x,y)
参数你自己设吧 |
|