| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2019-12-1 |
| 在线时间 | 326 小时 |
- 梦石
- 0
- 星屑
- 60
- 在线时间
- 326 小时
- 注册时间
- 2010-5-4
- 回帖
- 142
|
发表于 2012-10-29 22:31:26
|
显示全部楼层
呃....插入文字??
是指這類的嗎?
self.contents.draw_text(x, y, 350, WLH, "輸入文字")
如果是的話...
self.contents.font.color = text_color(0)←顏色代碼是皮膚上的~第1個是0
self.contents.font.size = 16←文字大小
self.contents.font.name = ["華康新特黑體", "黑体"]←改變電腦有的字型
小圖標?是ICO或是自訂圖片?
記得沒錯的話...
draw_icon(icon_index, x, y)....吧?
至於圖片~常常用到...
bitmap = Cache.load_bitmap("Graphics/Pictures/", "檔案名")
<例如:bitmap = Cache.load_bitmap("Graphics/Pictures/", "1")...就是要放一張檔案名稱1的圖在Graphics/Pictures/下>
rect = Rect.new(0, 0, 24, 24)
self.contents.blt(0, 0, bitmap, rect)
改變大小的話...
rect = Rect.new(0, 0, 24, 24)
X, Y, 寬, 高
雖然是回答好玩的...但是我很難想像你會問這問題啊XD |
|