Project1
标题:
Window_EquipLeft的问题
[打印本页]
作者:
EngShun
时间:
2010-11-4 17:26
标题:
Window_EquipLeft的问题
就是我想当装上装备能力值上升时,显示“↑”,能力值下降时显示“↓"
我知道在以下这段脚本改,但是我试了许多的改法都失败了,所以来这里请教他人。
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
draw_actor_name(@actor, 4, 0)
draw_actor_level(@actor, 4, 32)
draw_actor_parameter(@actor, 4, 64, 0)
draw_actor_parameter(@actor, 4, 96, 1)
draw_actor_parameter(@actor, 4, 128, 2)
if @new_atk != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 64, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 64, 36, 32, @new_atk.to_s, 2)
end
if @new_pdef != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 96, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 96, 36, 32, @new_pdef.to_s, 2)
end
if @new_mdef != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 128, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 128, 36, 32, @new_mdef.to_s, 2)
end
end
复制代码
作者:
wbsy8241
时间:
2010-11-4 17:51
本帖最后由 wbsy8241 于 2010-11-4 17:53 编辑
if @new_atk > @actor.atk
p "↑"
elsif @new_atk < @actor.atk
p "↓"
else
p "="
end
复制代码
其他同上
作者:
wbsy8241
时间:
2010-11-4 23:55
未命名.png
(77.28 KB, 下载次数: 4)
下载附件
保存到相册
2010-11-4 23:55 上传
无效?
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1