Project1
标题:
请教升降箭头的坐标怎么改啊?
[打印本页]
作者:
stella
时间:
2008-5-16 18:15
标题:
请教升降箭头的坐标怎么改啊?
我把装备显示加强整合到二刀流+装备扩展六边形界面脚本中去了,如果升降箭头的坐标按照装备扩展六边形界面脚本中的改,应该怎么改啊??
也就是把下面这两段合并,把装备显示加强脚本中的坐标数字改成装备扩展六边形界面脚本中的坐标
装备扩展六边形界面脚本,只保留其中的坐标数字
if @new_atk > @actor.atk
self.contents.font.color = system_color
else
self.contents.font.color = disabled_color
end
self.contents.draw_text(160, 100, 40, 32, "→", 1)
self.contents.draw_text(200, 100, 36, 32, @new_atk.to_s, 2)
end
if @new_pdef != nil and @new_pdef != @actor.pdef
if @new_pdef > @actor.pdef
self.contents.font.color = system_color
else
self.contents.font.color = disabled_color
end
self.contents.draw_text(160, 127, 40, 32, "→", 1)
self.contents.draw_text(200, 127, 36, 32, @new_pdef.to_s, 2)
end
if @new_mdef != nil and @new_mdef != @actor.mdef
if @new_mdef > @actor.mdef
self.contents.font.color = system_color
else
self.contents.font.color = disabled_color
end
self.contents.draw_text(160, 154, 40, 32, "→", 1)
self.contents.draw_text(200, 154, 36, 32, @new_mdef.to_s, 2)
end
if @new_eva != nil and @new_eva != @actor.eva
if @new_eva > @actor.eva
self.contents.font.color = system_color
else
self.contents.font.color = disabled_color
end
self.contents.draw_text(160, 181, 40, 32, "→", 1)
self.contents.draw_text(200, 181, 36, 32, @new_mdef.to_s, 2)
end
if @new_str != nil and @new_str != @actor.str
if @new_str > @actor.str
self.contents.font.color = system_color
else
self.contents.font.color = disabled_color
end
self.contents.draw_text(160, 211, 40, 32, "→", 1)
self.contents.draw_text(200, 211, 36, 32, @new_str.to_s, 2)
end
if @new_dex != nil and @new_dex != @actor.dex
if @new_dex > @actor.dex
self.contents.font.color = system_color
else
self.contents.font.color = disabled_color
end
self.contents.draw_text(160, 238, 40, 32, "→", 1)
self.contents.draw_text(200, 238, 36, 32, @new_dex.to_s, 2)
end
if @new_agi != nil and @new_agi != @actor.agi
if @new_agi > @actor.agi
self.contents.font.color = system_color
else
self.contents.font.color = disabled_color
end
self.contents.draw_text(160, 265, 40, 32, "→", 1)
self.contents.draw_text(200, 265, 36, 32, @new_agi.to_s, 2)
end
if @new_int != nil and @new_int != @actor.int
if @new_int > @actor.int
self.contents.font.color = system_color
else
self.contents.font.color = disabled_color
end
self.contents.draw_text(160, 292, 40, 32, "→", 1)
self.contents.draw_text(200, 292, 36, 32, @new_int.to_s, 2)
end
end
复制代码
装备显示加强
if @new_atk > @actor.atk
self.contents.blt(164, 64, RPG::Cache.icon(UP_ICON), Rect.new(0, 0, 24, 24))
elsif @new_atk < @actor.atk
self.contents.blt(164, 64, RPG::Cache.icon(DOWN_ICON), Rect.new(0, 0, 24, 24))
end
self.contents.font.color = @new_atk>@actor.atk ? up_color : down_color
self.contents.font.color = normal_color if @new_atk == @actor.atk
self.contents.draw_text(200, 64, 36, 32, @new_atk.to_s, 2)
end
if @new_pdef != nil
if @new_pdef > @actor.pdef
self.contents.blt(164, 96, RPG::Cache.icon(UP_ICON), Rect.new(0, 0, 24, 24))
elsif @new_pdef < @actor.pdef
self.contents.blt(164, 96, RPG::Cache.icon(DOWN_ICON), Rect.new(0, 0, 24, 24))
end
self.contents.font.color = @new_pdef>@actor.pdef ? up_color : down_color
self.contents.font.color = normal_color if @new_pdef == @actor.pdef
self.contents.draw_text(200, 96, 36, 32, @new_pdef.to_s, 2)
end
if @new_mdef != nil
if @new_mdef > @actor.mdef
self.contents.blt(164, 128, RPG::Cache.icon(UP_ICON), Rect.new(0, 0, 24, 24))
elsif @new_mdef < @actor.mdef
self.contents.blt(164, 128, RPG::Cache.icon(DOWN_ICON), Rect.new(0, 0, 24, 24))
end
self.contents.font.color = @new_mdef>@actor.mdef ? up_color : down_color
self.contents.font.color = normal_color if @new_mdef == @actor.mdef
self.contents.draw_text(200, 128, 36, 32, @new_mdef.to_s, 2)
end
if @new_eva != nil
if @new_eva > @actor.eva
self.contents.blt(164, 160, RPG::Cache.icon(UP_ICON), Rect.new(0, 0, 24, 24))
elsif @new_eva < @actor.eva
self.contents.blt(164, 160, RPG::Cache.icon(DOWN_ICON), Rect.new(0, 0, 24, 24))
end
self.contents.font.color = @new_eva>@actor.eva ? up_color : down_color
self.contents.font.color = normal_color if @new_eva == @actor.eva
self.contents.draw_text(200, 160, 36, 32, @new_eva.to_s, 2)
end
if @new_str != nil
if @new_str > @actor.str
self.contents.blt(164, 192, RPG::Cache.icon(UP_ICON), Rect.new(0, 0, 24, 24))
elsif @new_str < @actor.str
self.contents.blt(164, 192, RPG::Cache.icon(DOWN_ICON), Rect.new(0, 0, 24, 24))
end
self.contents.font.color = @new_str>@actor.str ? up_color : down_color
self.contents.font.color = normal_color if @new_str == @actor.str
self.contents.draw_text(200, 192, 36, 32, @new_str.to_s, 2)
end
if @new_dex != nil
if @new_dex > @actor.dex
self.contents.blt(164, 224, RPG::Cache.icon(UP_ICON), Rect.new(0, 0, 24, 24))
elsif @new_dex < @actor.dex
self.contents.blt(164, 224, RPG::Cache.icon(DOWN_ICON), Rect.new(0, 0, 24, 24))
end
self.contents.font.color = @new_dex>@actor.dex ? up_color : down_color
self.contents.font.color = normal_color if @new_dex == @actor.dex
self.contents.draw_text(200, 224, 36, 32, @new_dex.to_s, 2)
end
if @new_agi != nil
if @new_agi > @actor.agi
self.contents.blt(164, 256, RPG::Cache.icon(UP_ICON), Rect.new(0, 0, 24, 24))
elsif @new_agi < @actor.agi
self.contents.blt(164, 256, RPG::Cache.icon(DOWN_ICON), Rect.new(0, 0, 24, 24))
end
self.contents.font.color = @new_agi>@actor.agi ? up_color : down_color
self.contents.font.color = normal_color if @new_agi == @actor.agi
self.contents.draw_text(200, 256, 36, 32, @new_agi.to_s, 2)
end
if @new_int != nil
if @new_int > @actor.int
self.contents.blt(164, 288, RPG::Cache.icon(UP_ICON), Rect.new(0, 0, 24, 24))
elsif @new_int < @actor.int
self.contents.blt(164, 288, RPG::Cache.icon(DOWN_ICON), Rect.new(0, 0, 24, 24))
end
self.contents.font.color = @new_int>@actor.int ? up_color : down_color
self.contents.font.color = normal_color if @new_int == @actor.int
self.contents.draw_text(200, 288, 36, 32, @new_int.to_s, 2)
end
end
复制代码
[LINE]1,#dddddd[/LINE]
此贴于 2008-5-22 23:43:19 被版主禾西提醒,请楼主看到后对本贴做出回应。
[LINE]1,#dddddd[/LINE]
版务信息:本贴由楼主自主结贴~
作者:
沉影不器
时间:
2008-5-16 18:42
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1