| 赞 | 402 |
| VIP | |
| 好人卡 | |
| 积分 | 251 |
| 经验 | |
| 最后登录 | 2024-7-2 |
| 在线时间 | 3339 小时 |
- 梦石
- 1
- 星屑
- 24088
- 在线时间
- 3339 小时
- 注册时间
- 2011-7-8
- 回帖
- 3862

|
发表于 2017-3-19 20:48:37
|
显示全部楼层
本帖最后由 guoxiaomi 于 2017-3-19 20:50 编辑
接着往下写啊~
[pre lang="ruby"]def draw_item(index)
item = @data[index]
...
...
if item.is_a?(RPG::Weapon)
if number >= 1
self.contents.font.color = disabled_color
else if number == 0
$game_party.actors.each do |actor|
next if actor.weapon_id != item.id
self.contents.font.color = disabled_color
end
end
end
...
[/pre]
手写了一段也没测试,反正意思是到了吧~ |
|