| 赞 | 23  | 
 
| VIP | 207 | 
 
| 好人卡 | 31 | 
 
| 积分 | 31 | 
 
| 经验 | 48797 | 
 
| 最后登录 | 2024-5-11 | 
 
| 在线时间 | 1535 小时 | 
 
 
 
 
 
Lv3.寻梦者 孤独守望 
	- 梦石
 - 0 
 
        - 星屑
 - 3133 
 
        - 在线时间
 - 1535 小时
 
        - 注册时间
 - 2006-10-16
 
        - 帖子
 - 4321
 
 
   
 
 | 
	
- class Window_Mirror < Window_Base
 
 -   def initialize(window)
 
 -     super(0,0,200,100)
 
 -     @window_in = window
 
 -     self.contents = Bitmap.new(width-32,height - 32)
 
 -     self.opacity = 150
 
 -     self.visible = false
 
 -   end
 
 -   def update
 
 -     refresh
 
 -   end
 
 -   def refresh
 
 -     self.visible = @window_in.visible
 
 -     self.contents.stretch_blt(self.contents.rect, @window_in.contents, @window_in.contents.rect) 
 
 -   end
 
 - end
 
 - class Scene_Map
 
 -   def main
 
 -     # 生成活动块
 
 -     @spriteset = Spriteset_Map.new
 
 -     # 生成信息窗口
 
 -     @message_window = Window_Message.new
 
 -     @mirror = Window_Mirror.new(@message_window)
 
 -     # 执行过渡
 
 -     Graphics.transition
 
 -     # 主循环
 
 -     loop do
 
 -       # 刷新游戏画面
 
 -       Graphics.update
 
 -       # 刷新输入信息
 
 -       Input.update
 
 -       # 刷新画面
 
 -       update
 
 -       # 如果画面切换的话就中断循环
 
 -       if $scene != self
 
 -         break
 
 -       end
 
 -     end
 
 -     # 准备过渡
 
 -     Graphics.freeze
 
 -     # 释放活动块
 
 -     @spriteset.dispose
 
 -     # 释放信息窗口
 
 -     @message_window.dispose
 
 -     @mirror.dispose
 
 -     # 标题画面切换中的情况下
 
 -     if $scene.is_a?(Scene_Title)
 
 -       # 淡入淡出画面
 
 -       Graphics.transition
 
 -       Graphics.freeze
 
 -     end
 
 -   end
 
 -   alias p update
 
 -   def update
 
 -     p
 
 -     @mirror.update
 
 -   end
 
 - end
 
 -   
 
  复制代码 
这是一头可爱的小范例{/hx} 
加入这个脚本以后随便“显示文章”即可看到效果 
当然你看不懂也是大有可能的{/fd} 
不负责售后服务哦~ |   
 
 
 
 |