| 
 
| 赞 | 1 |  
| VIP | 246 |  
| 好人卡 | 87 |  
| 积分 | 1 |  
| 经验 | 34142 |  
| 最后登录 | 2015-1-15 |  
| 在线时间 | 323 小时 |  
 Lv1.梦旅人 
	梦石0 星屑55 在线时间323 小时注册时间2010-8-21帖子666 | 
| 本帖最后由 沙漠点灰 于 2011-4-25 17:40 编辑 
 回复 79904396 的帖子
 修改完毕,这个窗口怎么没有出现?复制代码#==============================================================================
# ■ Window_Actorlevel
#------------------------------------------------------------------------------
#  显示角色等级的窗口。
#==============================================================================
class Window_Actorlevel < Window_Base
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #     actor : 角色
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 640, 100)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.opacity = 160
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def refresh
    @lv = $game_party.actors.inject([]){|a,i|a<<i.level}
    self.contents.clear ; x = 0
    $game_party.actors.each {|i|
      self.contents.draw_text(x % 2* 320, x/2 * 32, 200, 32, "#{i.name}  等级:#{i.level}" , 0)
       x += 1
    }
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def update
    super
    refresh if @lv != $game_party.actors.inject([]){|a,i|a<<i.level}
  end
end
class Scene_Map
  alias old_main main unless Scene_Map.method_defined? "old_main"
  def main
    @Window_Actorlevel = Window_Actorlevel.new
    old_main
    @Window_Actorlevel.dispose
  end
  alias old_update_ update unless Scene_Map.method_defined? "old_update_"
  def update
    old_update_
    @Window_Actorlevel.visible = $game_switches[99]
    @Window_Actorlevel.update
  end
end
把游戏开关99打开就会出现窗口,关掉99号开关就消失了
 
 | 
 |