赞 | 287 |
VIP | 11 |
好人卡 | 74 |
积分 | 228 |
经验 | 281171 |
最后登录 | 2024-12-24 |
在线时间 | 9437 小时 |
Lv5.捕梦者 (暗夜天使) 只有笨蛋才会看到
- 梦石
- 1
- 星屑
- 21830
- 在线时间
- 9437 小时
- 注册时间
- 2012-6-19
- 帖子
- 7120
|
把这段代码扔到这个脚本的最后- class SUP_Window_Info
- def draw2(skill,x,y)
- #名称---------------------------------------------
- draw_item_name(skill, x, y)
- #魔力值消耗---------------------------------------
- draw_text(x, y + line_height, 280, line_height,
- "魔力值消耗:")
- w = 200 ; h = 15
- b = skill.mp_cost.to_f / 9999
- c1 = Color.new(128,155,122,255)
- c2 = Color.new(25,55,155,255)
- flii(x+120, y + line_height + 3, w, h, b, SUP::NEG_COLOR1, SUP::NEG_COLOR2)
- draw_current_and_max_values(x+40, y + line_height, 280, skill.mp_cost, 9999,
- text_color(0), text_color(0))
- #特技值消耗---------------------------------------
- draw_text(x, y + line_height * 2, 280, line_height,
- "特技值消耗:")
- w = 200 ; h = 15
- b = skill.tp_cost.to_f / 100
- flii(x+120, y + line_height * 2 + 3, w, h, b, SUP::NEG_COLOR1, SUP::NEG_COLOR2)
- draw_current_and_max_values(x+40, y + line_height * 2, 280, skill.tp_cost, 100,
- text_color(0), text_color(0))
- #特技值获得---------------------------------------
- draw_text(x, y + line_height * 3, 280, line_height,
- "特技值获得:")
- w = 200 ; h = 15
- b = skill.tp_gain.to_f / 100
- flii(x+120, y + line_height * 3 + 3, w, h, b, SUP::POS_COLOR1, SUP::POS_COLOR2)
- draw_current_and_max_values(x+40, y + line_height * 3, 280, skill.tp_gain, 100,
- text_color(0), text_color(0))
- #攻击次数-----------------------------------------
- draw_text(x, y + line_height * 4, 280, line_height,
- "攻击次数:")
- w = 200 ; h = 15
- b = skill.repeats.to_f / 9
- flii(x+120, y + line_height * 4 + 3, w, h, b, SUP::POS_COLOR1, SUP::POS_COLOR2)
- draw_current_and_max_values(x+40, y + line_height * 4, 280, skill.repeats, 9,
- text_color(0), text_color(0))
- #成功几率-----------------------------------------
- draw_text(x, y + line_height * 5, 280, line_height,
- "成功几率:")
- w = 200 ; h = 15
- b = skill.success_rate.to_f / 100
- flii(x+120, y + line_height * 5 + 3, w, h, b, SUP::POS_COLOR1, SUP::POS_COLOR2)
- draw_current_and_max_values(x+40, y + line_height * 5, 280, skill.success_rate, 100,
- text_color(0), text_color(0))
- #输出评分-----------------------------------------
- draw_text(x, y + line_height * 6, 280, line_height,
- "输出评分:")
- pf = scpf(skill)
- w = 200 ; h = 15
- b = [pf.to_f / SUP::PFX, 1.0].min
- type = skill.damage.type
- pf = sprintf("%.1f",pf)
- case type
- when 0
- draw_text(x+150, y + line_height * 6, 280, line_height,
- "此技能没有输出。")
- when 1, 2, 5, 6
- flii(x+120, y + line_height * 6 + 3, w, h, b, SUP::NEG_COLOR1, SUP::NEG_COLOR2)
- draw_current_and_max_values(x+40, y + line_height * 6, 280, pf, SUP::PFX,
- text_color(0), text_color(0))
- when 3, 4
- flii(x+120, y + line_height * 6 + 3, w, h, b, SUP::POS_COLOR1, SUP::POS_COLOR2)
- draw_current_and_max_values(x+40, y + line_height * 6, 280, pf, SUP::PFX,
- text_color(0), text_color(0))
- end
- end
- end
复制代码 |
评分
-
查看全部评分
|