def terminate
super
dispose_menu_background
@progress.dispose
@progressinf.dispose
@progressinf2.dispose
end
#--------------------------------------------------------------------------
# ● 更新
#--------------------------------------------------------------------------
def update
super
update_menu_background [email protected]
@progress.update
if $indexer!=j then [email protected]
@progress.refresh
@progressinf.update
end
update_window_selection
end
#--------------------------------------------------------------------------
# ● 更新选项卡
#--------------------------------------------------------------------------
def update_window_selection
if Input.trigger?(Input::B)
Sound.play_cancel
if $FromMap then
$scene = Scene_Map.new
else
$scene = Scene_Menu.new($backindex)
end
end
end
end
def refresh
$s=@index
self.contents.clear
self.contents.font.size = 20
self.contents.font.name = "微软雅黑"
for i in $ConIndex..$ConIndex+7
xx=(i-$ConIndex) % 2 * 257+30
yy=((i-$ConIndex) / 2 ).to_i*30+20
if i<=$game_variables[$UseIndex] then
self.contents.draw_text(xx,yy,250,30,$ChapNa)
else
if i<$MaxIndex then
self.contents.draw_text(xx,yy,250,30,$Nothing)
end
end
end
end
#--------------------------------------------------------------------------
# ● 更新
#--------------------------------------------------------------------------
def update
super
end
#--------------------------------------------------------------------------
# ● 更新指针
#--------------------------------------------------------------------------
def update_cursor
$ConIndex+=2 if @index-$ConIndex>=8
$ConIndex-=2 if @index-$ConIndex<=-1
i= @index-$ConIndex
xxx=i % 2 * 257+20
yyy=(i / 2).to_i*30+20
self.cursor_rect.set(xxx,yyy,230,30)
end
end
#==============================================================================
# ■ ProgressInf
#------------------------------------------------------------------------------
# 进度的具体内容显示
#==============================================================================
class ProgressInf<Window_Base
def initialize
super(0,201,544,150)
refresh(0)
end
def refresh (ab)
self.contents.clear
self.contents.font.size = 20
self.contents.font.name = "微软雅黑"
if ab<=$game_variables[$UseIndex] then
for i in 0..2
self.contents.draw_text(20,20+contents.text_size($InfoMa[ab]).height*i,494,contents.text_size($InfoMa[ab]).height,$InfoMa[ab])
end
else
self.contents.draw_text(20,20,494,30,$Nothing2)
end
end
#--------------------------------------------------------------------------
# ● 更新
#--------------------------------------------------------------------------