赞 | 0 |
VIP | 24 |
好人卡 | 8 |
积分 | 1 |
经验 | 11412 |
最后登录 | 2017-8-21 |
在线时间 | 416 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 416 小时
- 注册时间
- 2006-10-21
- 帖子
- 1245
|
Window_ShopStatus的- def draw_actor_parameter_change(actor, x, y)
- return if @item.is_a?(RPG::Item)
- enabled = actor.equippable?(@item)
- self.contents.font.color = normal_color
- self.contents.draw_text(24, 24, 48, WLH, "力|",2)
- self.contents.draw_text(72, 24, 48, WLH, "耐|",2)
- self.contents.draw_text(120, 24, 48, WLH, "精|",2)
- self.contents.draw_text(168, 24, 48, WLH, "敏|",2)
- self.contents.draw_text(204, 24, 48, WLH, "回避",2)
- #~ self.contents.font.color.alpha = enabled ? 255 : 128
- #~ self.contents.draw_text(x, y, 200, WLH, actor.name)
- self.draw_actor_graphic(actor, x+10, y+24)
- if @item.is_a?(RPG::Weapon)
- item1 = weaker_weapon(actor)
- elsif actor.two_swords_style and @item.kind == 0
- item1 = nil
- else
- index = actor.equip_type.index(@item.kind)
- item1 = (index != nil ? actor.equips[1 + index] : nil)
- end
- if enabled
- atk1 = item1 == nil ? 0 : item1.atk
- atk2 = @item == nil ? 0 : @item.atk
- change = atk2 - atk1
- self.contents.font.color = change>=0 ? power_up_color : power_down_color
- change = -change if change<=0
- self.contents.draw_text(24, y, 48, WLH, sprintf("%d|", change), 2)
- def1 = item1 == nil ? 0 : item1.def
- def2 = @item == nil ? 0 : @item.def
- change = def2 - def1
- self.contents.font.color = change>=0 ? power_up_color : power_down_color
- change = -change if change<=0
- self.contents.draw_text(72, y, 48, WLH, sprintf("%d|", change), 2)
- spi1 = item1 == nil ? 0 : item1.spi
- spi2 = @item == nil ? 0 : @item.spi
- change = spi2 - spi1
- self.contents.font.color = change>=0 ? power_up_color : power_down_color
- change = -change if change<=0
- self.contents.draw_text(120, y, 48, WLH, sprintf("%d|", change), 2)
- agi1 = item1 == nil ? 0 : item1.agi
- agi2 = @item == nil ? 0 : @item.agi
- change = agi2 - agi1
- self.contents.font.color = change>=0 ? power_up_color : power_down_color
- change = -change if change<=0
- self.contents.draw_text(168, y, 48, WLH, sprintf("%d|", change), 2)
- if @item.is_a?(RPG::Weapon)
- #~ atk1 = item1 == nil ? 0 : item1.atk
- #~ atk2 = @item == nil ? 0 : @item.atk
- #~ change = atk2 - atk1
- else
- eva1 = item1 == nil ? 0 : item1.eva
- eva2 = @item == nil ? 0 : @item.eva
- change = eva2 - eva1
- self.contents.font.color = change>=0 ? power_up_color : power_down_color
- self.contents.draw_text(204, y, 48, WLH, sprintf("%d", change), 2)
- end
- #~ self.contents.draw_text(x, y, 200, WLH, sprintf("%+d", change), 2)
- end
- draw_item_name(item1, x, y + WLH, enabled)
- end
复制代码 试试?
LZ不妨读读雪流星的windows教学 |
|