#=========================================================================== # ◆ A1 Scripts ◆ # アイテム選択のみ表示(RGSS3) # # バージョン : 1.00 (2012/01/12) # 作者 : A1 # URL     : http://a1tktk.web.fc2.com/ #--------------------------------------------------------------------------- # 機能: # ・指定したアイテムをアイテム選択以外で表示しないようにします #--------------------------------------------------------------------------- # 更新履歴   :2012/01/12 Ver1.00 リリース #--------------------------------------------------------------------------- # 設置場所 #  A1共通スクリプトより下 # # 必要スクリプト # A1共通スクリプト #--------------------------------------------------------------------------- # 使い方 # データベース「アイテム」のメモに記述 # #  <アイテム選択のみ表示> #============================================================================== $imported ||= {} $imported["A1_ItemSelectOnlyShow"] = true if $imported["A1_Common_Script"] #============================================================================== # ■ RPG::BaseItem #============================================================================== class RPG::BaseItem #-------------------------------------------------------------------------- # ○ アイテムのキーアイテム種別 #-------------------------------------------------------------------------- def item_select_only? @item_select_only ||= $a1_common.note_data(self.note, "アイテム選択のみ表示") return @item_select_only end end #============================================================================== # ■ Window_ItemList #------------------------------------------------------------------------------ #  アイテム画面で、所持アイテムの一覧を表示するウィンドウです。 #============================================================================== class Window_ItemList < Window_Selectable #-------------------------------------------------------------------------- # ☆ アイテムをリストに含めるかどうか #-------------------------------------------------------------------------- alias a1_item_select_only_wil_include? include? def include?(item) ret = a1_item_select_only_wil_include?(item) return false unless ret return false if item.item_select_only? && !self.is_a?(Window_KeyItem) return ret end end end