| 赞 | 0  | 
 
| VIP | 5 | 
 
| 好人卡 | 14 | 
 
| 积分 | 15 | 
 
| 经验 | 110639 | 
 
| 最后登录 | 2015-10-15 | 
 
| 在线时间 | 1157 小时 | 
 
 
 
 
 
Lv3.寻梦者 小柯的徒弟 
	- 梦石
 - 0 
 
        - 星屑
 - 1515 
 
        - 在线时间
 - 1157 小时
 
        - 注册时间
 - 2008-5-24
 
        - 帖子
 - 3085
 
 
  
 
 | 
	
- class Window_loading < Window_Base
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 初始化窗口
 
 -   #--------------------------------------------------------------------------
 
 -   def initialize
 
 -     super(50,400, 515, 70)
 
 -     self.contents = Bitmap.new(width - 32, height - 32)
 
 -     self.back_opacity = 0
 
 -     self.opacity = 0
 
 -     @count = 0
 
 -     refresh
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 刷新
 
 -   #--------------------------------------------------------------------------
 
 -   def refresh
 
 -     self.contents.clear
 
 -     self.contents.font.name = ["宋体"]
 
 -     self.contents.font.size = 18
 
 -     self.contents.font.color = Color.new(255, 255, 255, 255)
 
 -     self.contents.draw_text(350, -10 ,150,70, "正在加载中...")
 
 -     self.contents.fill_rect(0,2,500,10,Color.new(255,255,255,255))
 
 -     self.contents.fill_rect(0,3,496,8,Color.new(0,0,0,255))
 
 -     self.contents.fill_rect(0,4,1 ,6,Color.new(-255,255,-255,255))
 
 -   end
 
 -   def update
 
 -     self.contents.fill_rect(5*@count,4,5 ,6,Color.new(-255,255,-255,255))
 
 -     @count += 1
 
 -   end
 
 - end
 
  复制代码 @count这个变量就想当一个"进度"~然后在update(中文:更新)里5*@count就可以一点点加了~ |   
 
 
 
 |