赞 | 287 |
VIP | 11 |
好人卡 | 74 |
积分 | 226 |
经验 | 281171 |
最后登录 | 2024-11-17 |
在线时间 | 9415 小时 |
Lv5.捕梦者 (暗夜天使) 只有笨蛋才会看到
- 梦石
- 1
- 星屑
- 21636
- 在线时间
- 9415 小时
- 注册时间
- 2012-6-19
- 帖子
- 7118
|
加上背景
- module M520171009W
- class Win < ::Window_Base
- def initialize
- super(0,0,544,416)
- self.z = 999
- @time = ''
- @background = ::Sprite.new
- @background.bitmap = Cache.battleback1('Castle')
- @background.z = 998
- update
- end
- def update
- if Input.press?(:R) then update_time
- else
- self.visible = false
- @background.visible = false
- end
- end
- def update_time
- self.visible = true
- @background.visible = true
- time = Time.now.strftime('%X')
- if @time != time
- @time = time
- contents.clear
- draw_text(0,0,544,416,@time)
- end
- end
- def dispose
- super
- @background.dispose
- end
- end
- end
- class Scene_Base
- alias m5_20171009_start start
- def start
- m5_20171009_start
- @m5_20171009_win = M520171009W::Win.new
- end
- end
复制代码 |
|