| 
 
| 赞 | 481 |  
| VIP | 56 |  
| 好人卡 | 75 |  
| 积分 | 471 |  
| 经验 | 124650 |  
| 最后登录 | 2025-10-30 |  
| 在线时间 | 7737 小时 |  
 Lv5.捕梦者 (管理员) 老黄鸡 
	梦石4 星屑43071 在线时间7737 小时注册时间2009-7-6帖子13548    
 | 
| 本帖最后由 fux2 于 2010-9-2 12:26 编辑 
 话说为什么LZ的头像和我一样?
  得,我改了
  复制代码
怎么用不会也要教你把,你再不会我也不说了。
在"Picture/back/"    放进"XX.png"
复制代码#==============================================================================
# ■ Window_BattleResult
#------------------------------------------------------------------------------
#  战斗结束时、显示获得的 EXP 及金钱的窗口。
#==============================================================================
class Window_BattleResult < Window_Base
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #     exp       : EXP
  #     gold      : 金钱
  #     treasures : 宝物
  #--------------------------------------------------------------------------
  def initialize(exp, gold, treasures)
    @exp = exp
    @gold = gold
    @treasures = treasures
    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
    bmp = Bitmap.new("Graphics/back/XX.png")
    @pic_width = bmp.width 
    @pic_height = bmp.height
    @back_win = Window_Base.new(0, 0, @pic_width, @pic_height)
    @back_win.z = 100
    @back_contents.bitmap = bmp
    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, 4, y)
      y += 32
    end
  end
end
 | 
 评分
查看全部评分
 |