| 赞 | 91 |
| VIP | |
| 好人卡 | |
| 积分 | 104 |
| 经验 | |
| 最后登录 | 2024-6-24 |
| 在线时间 | 5019 小时 |
无限の剣制
- 梦石
- 0
- 星屑
- 10445
- 在线时间
- 5019 小时
- 注册时间
- 2013-2-28
- 回帖
- 4942
 
|
发表于 2015-5-6 22:30:10
|
显示全部楼层
例如这样- module VIPArcher
- Saves_Url = 'Saves/' #存档文件的路径
- end
- class Scene_File < Scene_Base
- include VIPArcher
- #--------------------------------------------------------------------------
- # ● 生成文件名称
- # file_index : 存档位置(0~3)
- #--------------------------------------------------------------------------
- def make_filename(file_index)
- Dir.mkdir(Saves_Url) unless FileTest.exist?(Saves_Url)
- return Saves_Url + "Save#{file_index + 1}.rvdata"
- end
- end
- class Scene_Title < Scene_Base
- include VIPArcher
- #--------------------------------------------------------------------------
- # ● 判断继续的有效性
- #--------------------------------------------------------------------------
- def check_continue
- @continue_enabled = (Dir.glob(Saves_Url + 'Save*.rvdata').size > 0)
- end
- end
复制代码 |
评分
-
查看全部评分
|