赞 | 0 |
VIP | 31 |
好人卡 | 0 |
积分 | 1 |
经验 | 12960 |
最后登录 | 2018-11-21 |
在线时间 | 332 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 65
- 在线时间
- 332 小时
- 注册时间
- 2009-9-10
- 帖子
- 115
|
# 存档容量扩大 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.y = (i - @index) * 90 + 56
if @savefile_windows.y < 56
@savefile_windows.opacity = 0
@savefile_windows.contents.clear
else
@savefile_windows.opacity = 255
@savefile_windows.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.y = (i - @index) * 90 + 56
if @savefile_windows.y < 56
@savefile_windows.opacity = 0
@savefile_windows.contents.clear
else
@savefile_windows.opacity = 255
@savefile_windows.refresh
end
end
end
end
善用搜索 |
评分
-
查看全部评分
|