赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 885 |
最后登录 | 2015-7-30 |
在线时间 | 9 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 9 小时
- 注册时间
- 2012-1-20
- 帖子
- 5
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
Window_Skill里面的
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,skill.sp_cost.to_s , 2)
end
这个y怎么回事两个技能在一排X会变y值不会变,y = index / 2 * 32的y明显是变的可玩起来没有问题是怎么回事?这么算y为什么会相等
是Window_Selectable里面的某段代码导致的吗?Window_Selectable根本难看不懂,还是我理解错了这个y的意思? |
|