| 赞 | 1  | 
 
| VIP | 246 | 
 
| 好人卡 | 87 | 
 
| 积分 | 1 | 
 
| 经验 | 34142 | 
 
| 最后登录 | 2015-1-15 | 
 
| 在线时间 | 323 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 55 
 
        - 在线时间
 - 323 小时
 
        - 注册时间
 - 2010-8-21
 
        - 帖子
 - 666
 
 
 
 | 
	
回复 calvin0703 的帖子 
- #==============================================================================
 
 - # ■ Window_Actorlevel
 
 - #------------------------------------------------------------------------------
 
 - #  显示角色等级的窗口。
 
 - #==============================================================================
 
  
- class Window_Actorlevel < Window_Base
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 初始化对像
 
 -   #     actor : 角色
 
 -   #--------------------------------------------------------------------------
 
 -   def initialize
 
 -     super(80, -9, 640, 100)
 
 -     self.contents = Bitmap.new(width - 32, height - 32)
 
 -     self.opacity = 0
 
 -     refresh
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 刷新
 
 -   #--------------------------------------------------------------------------
 
 -   def refresh
 
 -     self.contents.clear
 
 -     for i in 0...$game_party.actors.size
 
 -       actor = $game_party.actors[i]
 
 -       actor_x = i * 160 
 
 -       draw_actor_level(actor, actor_x, 10)
 
 -     end
 
 -   end
 
 - end
 
  
- class Scene_Map
 
 -   alias old_main main
 
 -   def main
 
 -     @Window_Actorlevel = Window_Actorlevel.new
 
 -     @Window_Actorlevel.visible = false
 
 -     old_main
 
 -     @Window_Actorlevel.dispose
 
 -   end
 
 -   alias old_update update
 
 -   def update
 
 -     @Window_Actorlevel.visible = $game_switches[1]
 
 -     old_update
 
 -   end
 
 - end
 
  复制代码 脚本中 $game_switches 的[]里面是开关的编号... 
打开是显示,关掉是隐藏 
 
直接 visible 就好了嘛 干吗重新定义refresh |   
 
 
 
 |