| 赞 | 7 |
| VIP | |
| 好人卡 | |
| 积分 | 32 |
| 经验 | |
| 最后登录 | 2026-9-4 |
| 在线时间 | 3619 小时 |
双子人
- 梦石
- 0
- 星屑
- 3205
- 在线时间
- 3619 小时
- 注册时间
- 2009-4-4
- 回帖
- 3901

|
发表于 2013-8-1 21:05:39
|
显示全部楼层
- class Window_Skill < Window_Selectable
- def draw_item(index)
- skill = @data[index]
- if @actor.skill_can_use?(skill.id)
- self.contents.font.color = normal_color
- else
- self.contents.font.color = disabled_color
- end
- 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(skill.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, 204, 32, skill.name, 0)
- self.contents.draw_text(x + 232, y, 48, 32, PP值.to_s, 2)
- end
- end
复制代码 你的PP值是怎么样定义的? |
评分
-
查看全部评分
|