- UID
- 748
- 帖子
- 800
- 主题
- 67
- 精华
- 0
- 积分
- 2064
- 历练
- 0
- 声望
- 43
- 人气
- 3
- 经验
- 1419
- 金钱
- 1713
- 注册时间
- 2010-8-26
- 最后登录
- 2022-10-31
- 在线时间
- 184 小时
- 阅读权限
- 50
TA的每日心情 | 无聊 2013-8-16 09:01 |
---|
签到天数: 161 天 [LV.7]常住仙友III - 精华
- 0
- 积分
- 2064
- 历练
- 0
- 声望
- 43
- 人气
- 3
|
#---------------------------------------------------------------------
q=40-10
if atk2 >= atk1
self.contents.font.color = Color.new(159,251,162,255)
self.contents.draw_text(80*0+q, x+j * i, 112, 32,"↑",0)
else
self.contents.font.color = Color.new(255,0,0,255)
self.contents.draw_text(80*0+q, x+j * i, 112, 32,"↓",0)
end
#---------------------------------------------------------------------
if str2 >= str1
self.contents.font.color = Color.new(159,251,162,255)
self.contents.draw_text(80*1+q, x+j * i, 112, 32,"↑",0)
else
self.contents.font.color = Color.new(255,0,0,255)
self.contents.draw_text(80*1+q, x+j * i, 112, 32,"↓",0)
end
#---------------------------------------------------------------------
if dex2 >= dex1
self.contents.font.color = Color.new(159,251,162,255)
self.contents.draw_text(80*2+q, x+j * i, 112, 32,"↑",0)
else
self.contents.font.color = Color.new(255,0,0,255)
self.contents.draw_text(80*2+q, x+j * i, 112, 32,"↓",0)
end
#---------------------------------------------------------------------
if agi2 >= agi1
self.contents.font.color = Color.new(159,251,162,255)
self.contents.draw_text(80*0+q, x+j * i+16, 112, 32,"↑",0)
else
self.contents.font.color = Color.new(255,0,0,255)
self.contents.draw_text(80*0+q, x+j * i+16, 112, 32,"↓",0)
end
#---------------------------------------------------------------------
if int2 >= int1
self.contents.font.color = Color.new(159,251,162,255)
self.contents.draw_text(80*1+q, x+j * i+16, 112, 32,"↑",0)
else
self.contents.font.color = Color.new(255,0,0,255)
self.contents.draw_text(80*1+q, x+j * i+16, 112, 32,"↓",0)
end
#---------------------------------------------------------------------
if pdef2 >= pdef1
self.contents.font.color = Color.new(159,251,162,255)
self.contents.draw_text(80*2+q, x+j * i+16, 112, 32,"↑",0)
else
self.contents.font.color = Color.new(255,0,0,255)
self.contents.draw_text(80*2+q, x+j * i+16, 112, 32,"↓",0)
end
#---------------------------------------------------------------------
self.contents.font.color = Color.new(159,251,162,255)
q=50
self.contents.draw_text(80*0+q, x+j * i, 112, 32,@atk.abs.to_s,0)
self.contents.draw_text(80*1+q, x+j * i, 112, 32,@str.abs.to_s,0)
self.contents.draw_text(80*2+q, x+j * i, 112, 32,@dex.abs.to_s,0)
#---------------------------------------------------------------------
self.contents.draw_text(80*0+q, x+j * i+16, 112, 32,@agi.abs.to_s,0)
self.contents.draw_text(80*1+q, x+j * i+16, 112, 32,@int.abs.to_s,0)
self.contents.draw_text(80*2+q, x+j * i+16, 112, 32,@pdef.abs.to_s,0)
end
# 防具的情况
if @item.is_a?(RPG::Armor)
str1 = item1 != nil ? item1.str_plus : 0
str2 = @item != nil ? @item.str_plus : 0
dex1 = item1 != nil ? item1.dex_plus : 0
dex2 = @item != nil ? @item.dex_plus : 0
agi1 = item1 != nil ? item1.agi_plus : 0
agi2 = @item != nil ? @item.agi_plus : 0
int1 = item1 != nil ? item1.int_plus : 0
int2 = @item != nil ? @item.int_plus : 0
pdef1 = item1 != nil ? item1.pdef : 0
pdef2 = @item != nil ? @item.pdef : 0
mdef1 = item1 != nil ? item1.mdef : 0
mdef2 = @item != nil ? @item.mdef : 0
@str = str2 - str1
@dex = dex2 - dex1
@agi = agi2 - agi1
@int = int2 - int1
@pdef = pdef2 - pdef1
@mdef = mdef2 - mdef1
x=-16
self.contents.draw_text(80*0, x+j * i, 112, 32,"力量",0)
self.contents.draw_text(80*1, x+j * i, 112, 32,"速度",0)
self.contents.draw_text(80*2, x+j * i, 112, 32,"敏捷",0)
self.contents.draw_text(80*0, x+j * i+16, 112, 32,"魔力",0)
self.contents.draw_text(80*1, x+j * i+16, 112, 32,"防御",0)
self.contents.draw_text(80*2, x+j * i+16, 112, 32,"魔御",0)
#---------------------------------------------------------------------
q=30
if str2 >= str1
self.contents.font.color = Color.new(159,251,162,255)
self.contents.draw_text(80*0+q, x+j * i, 112, 32,"↑",0)
else
self.contents.font.color = Color.new(255,0,0,255)
self.contents.draw_text(80*0+q, x+j * i, 112, 32,"↓",0)
end
#---------------------------------------------------------------------
if dex2 >= dex1
self.contents.font.color = Color.new(159,251,162,255)
self.contents.draw_text(80*1+q, x+j * i, 112, 32,"↑",0)
else
self.contents.font.color = Color.new(255,0,0,255)
self.contents.draw_text(80*1+q, x+j * i, 112, 32,"↓",0)
end
#---------------------------------------------------------------------
if agi2 >= agi1
self.contents.font.color = Color.new(159,251,162,255)
self.contents.draw_text(80*2+q, x+j * i, 112, 32,"↑",0)
else
self.contents.font.color = Color.new(255,0,0,255)
self.contents.draw_text(80*2+q, x+j * i, 112, 32,"↓",0)
end
#---------------------------------------------------------------------
if int2 >= int1
self.contents.font.color = Color.new(159,251,162,255)
self.contents.draw_text(80*0+q, x+j * i+16, 112, 32,"↑",0)
else
self.contents.font.color = Color.new(255,0,0,255)
self.contents.draw_text(80*0+q, x+j * i+16, 112, 32,"↓",0)
end
#---------------------------------------------------------------------
q=40-10
if pdef2 >= pdef1
self.contents.font.color = Color.new(159,251,162,255)
self.contents.draw_text(80*1+q, x+j * i+16, 112, 32,"↑",0)
else
self.contents.font.color = Color.new(255,0,0,255)
self.contents.draw_text(80*1+q, x+j * i+16, 112, 32,"↓",0)
end
#---------------------------------------------------------------------
if mdef2 >= mdef1
self.contents.font.color = Color.new(159,251,162,255)
self.contents.draw_text(80*2+q, x+j * i+16, 112, 32,"↑",0)
else
self.contents.font.color = Color.new(255,0,0,255)
self.contents.draw_text(80*2+q, x+j * i+16, 112, 32,"↓",0)
end
#---------------------------------------------------------------------
self.contents.font.color = Color.new(159,251,162,255)
q=50
self.contents.draw_text(80*0+q, x+j * i, 112, 32,@str.abs.to_s,0)
self.contents.draw_text(80*1+q, x+j * i, 112, 32,@dex.abs.to_s,0)
self.contents.draw_text(80*2+q, x+j * i, 112, 32,@agi.abs.to_s,0)
#---------------------------------------------------------------------
self.contents.draw_text(80*0+q, x+j * i+16, 112, 32,@int.abs.to_s,0)
self.contents.draw_text(80*1+q, x+j * i+16, 112, 32,@pdef.abs.to_s,0)
self.contents.draw_text(80*2+q, x+j * i+16, 112, 32,@mdef.abs.to_s,0)
end
end
self.contents.font.color = normal_color
i -= 1
#self.contents.font.size = 22
# 描绘物品
if item1 != nil
x = 4
y = 64 + 64 * i + 32
#bitmap = RPG::Cache.icon(item1.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)
#self.contents.draw_text(x + 28, y, 212, 32, item1.name)
end
end
#end
#--------------------------------------------------------------------------
# ● 设置物品
# item : 新的物品
#--------------------------------------------------------------------------
def item=(item)
if @item != item
@item = item
refresh
end
end
end |
|