| 赞 | 0 |
| VIP | 0 |
| 好人卡 | 0 |
| 积分 | 1 |
| 经验 | 35025 |
| 最后登录 | 2017-9-29 |
| 在线时间 | 231 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 231 小时
- 注册时间
- 2007-12-17
- 帖子
- 541
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
我把装备显示加强整合到二刀流+装备扩展六边形界面脚本中去了,如果升降箭头的坐标按照装备扩展六边形界面脚本中的改,应该怎么改啊??
也就是把下面这两段合并,把装备显示加强脚本中的坐标数字改成装备扩展六边形界面脚本中的坐标
装备扩展六边形界面脚本,只保留其中的坐标数字
- 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
复制代码 此贴于 2008-5-22 23:43:19 被版主禾西提醒,请楼主看到后对本贴做出回应。 版务信息:本贴由楼主自主结贴~ |
|