赞 | 0 |
VIP | 77 |
好人卡 | 306 |
积分 | 1 |
经验 | 85662 |
最后登录 | 2023-11-23 |
在线时间 | 1782 小时 |
Lv1.梦旅人 虱子
- 梦石
- 0
- 星屑
- 121
- 在线时间
- 1782 小时
- 注册时间
- 2010-6-19
- 帖子
- 3597
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 Wind2010 于 2011-1-28 13:54 编辑
闲得无聊写了这个脚本出来……应该很少人需要XD- class Window_BattleResult < Window_Base
- def initialize(exp, gold, treasures)
- @exp = exp
- @gold = gold
- @treasures = treasures
- @treasures_ = []
- loop do
- @treasures_1 = @treasures[0]
- @treasures_2 = @treasures.size
- @treasures.delete(@treasures_1)
- @treasures_.push [@treasures_1,@treasures_2 - @treasures.size]
- break if @treasures == []
- end
- super(160, 0, 320, @treasures_.size * 32 + 64)
- self.contents = Bitmap.new(width - 32, height - 32)
- self.y = 160 - height / 2
- self.back_opacity = 160
- self.visible = false
- refresh
- end
- def refresh
- self.contents.clear
- x = 4
- self.contents.font.color = normal_color
- cx = contents.text_size(@exp.to_s).width
- self.contents.draw_text(x, 0, cx, 32, @exp.to_s)
- x += cx + 4
- self.contents.font.color = system_color
- cx = contents.text_size("EXP").width
- self.contents.draw_text(x, 0, 64, 32, "EXP")
- x += cx + 16
- self.contents.font.color = normal_color
- cx = contents.text_size(@gold.to_s).width
- self.contents.draw_text(x, 0, cx, 32, @gold.to_s)
- x += cx + 4
- self.contents.font.color = system_color
- self.contents.draw_text(x, 0, 128, 32, $data_system.words.gold)
- y = 32
- for item in @treasures_
- draw_item_name(item[0], 4, y)
- self.contents.draw_text(0, y, width-32, 32, "×" + " "+ item[1].to_s,2)
- y += 32
- end
- end
- end
复制代码
发两张图大家就知道了- -
未使用:
使用后:
|
|