赞 | 1 |
VIP | 246 |
好人卡 | 87 |
积分 | 1 |
经验 | 34142 |
最后登录 | 2015-1-15 |
在线时间 | 323 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 55
- 在线时间
- 323 小时
- 注册时间
- 2010-8-21
- 帖子
- 666
|
1.
把x坐标设为0即可
2.
窗口高度不够
3.
参考F1,或RMXP默认代码
4.
参考F1,或RMXP默认代码
完成了1,2,再次抛个砖,lz自己去搬剩下的砖吧!- #==============================================================================
- # ■ Window_BattleResult
- #------------------------------------------------------------------------------
- # 战斗结束时、显示获得的 EXP 及金钱的窗口。
- #==============================================================================
- class Window_BattleResult < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化对像
- # exp : EXP
- # gold : 金钱
- # treasures : 宝物
- #--------------------------------------------------------------------------
- def initialize(exp, gold, treasures)
- [url=home.php?mod=space&uid=13302]@exp[/url] = exp
- [url=home.php?mod=space&uid=236945]@gold[/url] = gold
- p treasures.size
- @treasures = treasures
- super(160, 0, 320, @treasures.size * 32 + 96 + (@treasures.size==0 ? 0 : 32))
- 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
- self.contents.draw_text(4, -32, 32, 32,"战斗胜利")
- x = 4
- self.contents.font.color = system_color
- cx = contents.text_size("获得 "[email protected]_s).width
- self.contents.draw_text(x, 0, cx, 32, ("获得 "[email protected]_s))
- x += cx + 4
- self.contents.font.color = system_color
- cx = contents.text_size("经验").width
- self.contents.draw_text(x, 0, 64, 32, "经验")
- #x += cx + 16
- x = 4
- self.contents.font.color = system_color
- cx = contents.text_size("获得 "[email protected]_s).width
- self.contents.draw_text(x, 32, cx, 32, "获得 "[email protected]_s)
- x += cx + 4
- self.contents.font.color = system_color
- self.contents.draw_text(x, 32, 128, 32, $data_system.words.gold)
- y = 96
- self.contents.draw_text(4, 64, 128, 32,"获得道具:")
- for item in @treasures
- draw_item_name(item, 4, y)
- y += 32
- end
- end
- end
复制代码 |
评分
-
查看全部评分
|