赞 | 0 |
VIP | 4 |
好人卡 | 43 |
积分 | 94 |
经验 | 75226 |
最后登录 | 2019-3-3 |
在线时间 | 1131 小时 |
Lv4.逐梦者
- 梦石
- 3
- 星屑
- 6420
- 在线时间
- 1131 小时
- 注册时间
- 2007-12-26
- 帖子
- 2402
|
添加成下面这样,结果特技的文字都没了
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)
#-修正-----
@actor.skill_level[skill.id] = 0 if @actor.skill_level[skill.id] == nil
#######################################################
if skill.kind == 1
self.contents.font.color = normal_color
else
self.contents.font.color = disabled_color
end
x = 4
y = index * 32
rect = Rect.new(x, y, self.width - 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)
@actor.skill_level[skill.id] = 0 if @actor.skill_level[skill.id] == nil
########################################################
limit = $打坐最高等级
level_limit = $LEVEL_LIMIT[skill.id]
if level_limit != nil
for i in 0...level_limit.size
lv_limit = level_limit
if @actor.id == lv_limit[0]
limit = $game_variables[lv_limit[1]]
limit = $打坐最高等级 if limit > $打坐最高等级
end
end
end
if skill.kind != 1
s_limit = S_LEVEL[skill.id]
limit = ( (limit != nil and limit[@actor.id] != nil) ? limit[@actor.id] : LEVEL_LIMIT)
end
name_level = skill.name + "(Lv" + @actor.skill_level[skill.id].to_s+"/" +limit.to_s+ ")"
self.contents.draw_text(x + 28, y, 204, 32, name_level, 0)
@actor.skill_sp_cost[skill.id] = skill.sp_cost if @actor.skill_sp_cost[skill.id] == nil
self.contents.draw_text(x + 232, y, 48, 32, @actor.skill_sp_cost[skill.id].to_s, 2)
#----------
end
end
![]() |
|