| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2013-10-10 |
| 在线时间 | 38 小时 |
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 38 小时
- 注册时间
- 2006-2-16
- 回帖
- 69
|
发表于 2011-8-15 16:36:02
|
显示全部楼层
Window_ShopNumber 刷新部分改为
def refresh
self.contents.clear
draw_item_name(@item, 4, 96)
self.contents.font.color = normal_color
self.contents.draw_text(272, 96, 32, 32, "×")
self.contents.draw_text(308, 96, 24, 32, @number.to_s, 2)
self.cursor_rect.set(304, 96, 32, 32)
# 描绘合计价格和货币单位
domination = $data_system.words.gold
cx = contents.text_size(domination).width
if @column = 1
total_price = @price * @number
else
total_price = @price * @number / 2
end
self.contents.font.color = normal_color
self.contents.draw_text(4, 160, 328-cx-2, 32, total_price.to_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(332-cx, 160, cx, 32, domination, 2)
end
peter神人于2011-8-15 16:48补充以下内容:
@number_window.set(@item, max, @item.price)
刚才弄错你的意思了
Scene_Shop249行 |
|