#============================================================================== # ■ VXAce-RGSS3-14 立ち絵ステータス(2ページ目) [Ver1.0.0] by Claimh #------------------------------------------------------------------------------ # ステータス画面に2ページ目を追加します。 # 2ページ目にはスキルリストを表示します。 #============================================================================== #============================================================================== # ■ Window_Status #============================================================================== class Window_Status < Window_Selectable MAX_PAGE = 2 # 最大ページ数 #-------------------------------------------------------------------------- # ● リフレッシュ(1ページ目) #-------------------------------------------------------------------------- alias refresh_picst refresh def refresh @page = 0 refresh_picst end #-------------------------------------------------------------------------- # ● 次のページへ #-------------------------------------------------------------------------- def next_page case ((@page + 1) % MAX_PAGE) when 0; refresh when 1; refresh2 end end #-------------------------------------------------------------------------- # ● リフレッシュ(2ページ目) #-------------------------------------------------------------------------- def refresh2 @page = 1 contents.clear draw_actor_picture(@actor, 0, contents_height-288) draw_block1_picture(line_height * 0) draw_horz_line (line_height * 1) draw_page2_block2 (line_height * 2) end #-------------------------------------------------------------------------- # ● 2ページ目 block2 (スキルリスト) #-------------------------------------------------------------------------- def draw_page2_block2(y) max = (contents_height - y) / line_height @actor.skills.each_index do |i| yy = y + i * line_height return if max >= yy draw_item_name(@actor.skills[i], 288, yy) end end end #============================================================================== # ■ Scene_Status #============================================================================== class Scene_Status < Scene_MenuBase #-------------------------------------------------------------------------- # ● 開始処理 #-------------------------------------------------------------------------- alias start_picst start def start start_picst @status_window.set_handler(:ok, method(:next_page)) end #-------------------------------------------------------------------------- # ● 次のページへ #-------------------------------------------------------------------------- def next_page @status_window.next_page @status_window.activate end end