| 赞 | 300 |
| VIP | |
| 好人卡 | |
| 积分 | 242 |
| 经验 | |
| 最后登录 | 2026-9-9 |
| 在线时间 | 9564 小时 |
- 梦石
- 1
- 星屑
- 23236
- 在线时间
- 9564 小时
- 注册时间
- 2012-6-19
- 回帖
- 7018
 
|
发表于 2013-8-22 14:55:13
|
显示全部楼层
本帖最后由 喵呜喵5 于 2013-8-22 23:56 编辑
 - =begin
- ===============================================================================
-
- 通关存档 By喵呜喵5
- ===============================================================================
- 【说明】
- 在存档界面查看存档时,已经通关的存档会在名字后面显示一个特殊的图标
- =end
- module M5Save
- #==============================================================================
- # 设定部分
- #==============================================================================
-
- SWI = 1 #这里设置通关后打开的开关,通关以后请打开这个开关
-
- ICO = 125 #这里设置已经通关的存档在存档名之后显示的图标
-
- #==============================================================================
- # 设定结束
- #==============================================================================
- #==============================================================================
- # 脚本部分
- #==============================================================================
-
- end
- module DataManager
- def self.make_save_header
- header = {}
- header[:characters] = $game_party.characters_for_savefile
- header[:playtime_s] = $game_system.playtime_s
- header[:clear] = $game_switches[M5Save::SWI]
- header
- end
- end
- class Window_SaveFile < Window_Base
- def refresh
- header = DataManager.load_header(@file_index)
- contents.clear
- change_color(normal_color)
- name = Vocab::File + " #{@file_index + 1}"
- draw_text(4, 0, 200, line_height, name)
- @name_width = text_size(name).width
- if header != nil and header[:clear]
- draw_icon(M5Save::ICO,8+@name_width,-1)
- end
- draw_party_characters(152, 58)
- draw_playtime(0, contents.height - line_height, contents.width - 4, 2)
- end
- end
复制代码 |
|