设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1171|回复: 4
打印 上一主题 下一主题

冲突``

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
222
在线时间
82 小时
注册时间
2007-6-26
帖子
262
跳转到指定楼层
1
发表于 2007-6-30 19:32:23 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
脚本..1O78行发生ArigumentError.
comparison of Fixnum with nil failed


1078行以下我都弄出来了



  1.     now = now > max ? max : now
  2.     percentage = max != 0 ? (width-2) * now / max.to_f : 0
  3.     if start_color == end_color
  4.       self.contents.fill_rect(x+1, y+1, percentage, height-2, start_color)
  5.     else
  6.       for i in 1..percentage
  7.         r = start_color.red + (end_color.red - start_color.red) / percentage * i
  8.         g = start_color.green + (end_color.green - start_color.green) / percentage * i
  9.         b = start_color.blue + (end_color.blue - start_color.blue) / percentage * i
  10.         a = start_color.alpha + (end_color.alpha - start_color.alpha) / percentage * i
  11.         self.contents.fill_rect(x+i, y+1, 1, height-2, Color.new(r, g, b, a))
  12.       end
  13.     end
  14.   end
  15. end
复制代码

Lv1.梦旅人

梦石
0
星屑
222
在线时间
82 小时
注册时间
2007-6-26
帖子
262
5
 楼主| 发表于 2007-6-30 20:08:34 | 只看该作者
自己弄好了{/fd}
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
222
在线时间
82 小时
注册时间
2007-6-26
帖子
262
4
 楼主| 发表于 2007-6-30 19:50:26 | 只看该作者
{/gg}木有修改吖
回复 支持 反对

使用道具 举报

Lv3.寻梦者 (暗夜天使)

精灵族の天使

梦石
0
星屑
1707
在线时间
3039 小时
注册时间
2007-3-16
帖子
33731

开拓者贵宾

3
发表于 2007-6-30 19:47:38 | 只看该作者
那个函数好像没有调用上……是否修改某些东西了?
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
222
在线时间
82 小时
注册时间
2007-6-26
帖子
262
2
 楼主| 发表于 2007-6-30 19:32:23 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
脚本..1O78行发生ArigumentError.
comparison of Fixnum with nil failed


1078行以下我都弄出来了



  1.     now = now > max ? max : now
  2.     percentage = max != 0 ? (width-2) * now / max.to_f : 0
  3.     if start_color == end_color
  4.       self.contents.fill_rect(x+1, y+1, percentage, height-2, start_color)
  5.     else
  6.       for i in 1..percentage
  7.         r = start_color.red + (end_color.red - start_color.red) / percentage * i
  8.         g = start_color.green + (end_color.green - start_color.green) / percentage * i
  9.         b = start_color.blue + (end_color.blue - start_color.blue) / percentage * i
  10.         a = start_color.alpha + (end_color.alpha - start_color.alpha) / percentage * i
  11.         self.contents.fill_rect(x+i, y+1, 1, height-2, Color.new(r, g, b, a))
  12.       end
  13.     end
  14.   end
  15. end
复制代码
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-9-21 19:26

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表