| 赞 | 9 |
| VIP | 1 |
| 好人卡 | 6 |
| 积分 | 205 |
| 经验 | 289801 |
| 最后登录 | 2025-6-10 |
| 在线时间 | 94 小时 |
Lv5.捕梦者 御灵的宠物
- 梦石
- 12
- 星屑
- 8481
- 在线时间
- 94 小时
- 注册时间
- 2006-12-11
- 帖子
- 3156

|
当然是……= =
#--------------------------------------------------------------------------
# ● 描绘项目
# index : 项目编号
#--------------------------------------------------------------------------
……省略这部分
x = 4 + index % 2 * (288 + 32)
y = index / 2 * 32
rect = Rect.new(x, y, self.width / @column_max - 32, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
bitmap = RPG::Cache.icon(item.icon_name)
opacity = self.contents.font.color == normal_color ? 255 : 128
self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
self.contents.draw_text(x + 28, y, 212, 32, item.name, 0)
self.contents.draw_text(x + 240, y, 16, 32, ":", 1)
self.contents.draw_text(x + 256, y, 24, 32, number.to_s, 2)
end
这里
主要是
x = 4 + index % 2 * (288 + 32)
y = index / 2 * 32
两行……
是根据物品的次序排列图标
把这两个改了就行~ 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|