赞 | 442 |
VIP | 56 |
好人卡 | 75 |
积分 | 399 |
经验 | 124650 |
最后登录 | 2024-5-11 |
在线时间 | 7493 小时 |
Lv5.捕梦者 (管理员) 老黄鸡
- 梦石
- 0
- 星屑
- 39855
- 在线时间
- 7493 小时
- 注册时间
- 2009-7-6
- 帖子
- 13485
|
回复 莹的赎生 的帖子
插入以下脚本- # 存档容量扩大 by fux2
- class Window_SaveFile < Window_Base
-
- def initialize(file_index, filename)
- super(0, 56 + file_index % 10 * 90, 544, 90)
- @file_index = file_index
- @filename = filename
- load_gamedata
- refresh
- @selected = false
- end
- def file_index=(i)
- @file_index = i
- end
-
- end
- class Scene_File < Scene_Base
-
- def create_savefile_windows
- @savefile_windows = []
- for i in 0..9
- @savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
- end
- @item_max = 10
- end
- def cursor_down(wrap)
- if @index < @item_max - 1 or wrap
- @index = (@index + 1 + @item_max) % @item_max
- end
- for i in 0..9
- @savefile_windows[i].y = (i - @index) * 90 + 56
- if @savefile_windows[i].y < 56
- @savefile_windows[i].opacity = 0
- @savefile_windows[i].contents.clear
- else
- @savefile_windows[i].opacity = 255
- @savefile_windows[i].refresh
- end
- end
- end
-
- def cursor_up(wrap)
- if @index > 0 or wrap
- @index = (@index - 1 + @item_max) % @item_max
- end
- for i in 0..9
- @savefile_windows[i].y = (i - @index) * 90 + 56
- if @savefile_windows[i].y < 56
- @savefile_windows[i].opacity = 0
- @savefile_windows[i].contents.clear
- else
- @savefile_windows[i].opacity = 255
- @savefile_windows[i].refresh
- end
- end
- end
-
- end
复制代码 |
|