Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # XaiL System - Item Minified
- # Author: Nicke
- # Created: 26/08/2012
- # Edited: 26/08/2012
- # Version: 1.0
- #==============================================================================
- # Instructions
- # -----------------------------------------------------------------------------
- # To install this script, open up your script editor and copy/paste this script
- # to an open slot below ? Materials but above ? Main. Remember to save.
- #
- # Small snippet to show a minfied item scene with only one category.
- #
- # *** Only for RPG Maker VX Ace. ***
- #==============================================================================
- ($imported ||= {})["XAIL-ITEM-MINIFIED"] = true
- module XAIL
- module ITEM_MINIFIED
- #--------------------------------------------------------------------------#
- # * Settings
- #--------------------------------------------------------------------------#
- # Set this to the name you want as "all items" category.
- # ALL_ITEMS_VOCAB = string
- ALL_ITEMS_VOCAB = "All Items"
- end
- end
- # *** Don't edit below unless you know what you are doing. ***
- #==============================================================================#
- # ** Window_ItemList
- #==============================================================================#
- class Window_ItemList < Window_Selectable
- alias xail_item_minfied_win_itemlist_include? include?
- def include?(item)
- # // Method to check category.
- xail_item_minfied_win_itemlist_include?(item)
- case @category
- when :all
- item.is_a?(RPG::Item) || item.is_a?(RPG::Weapon) || item.is_a?(RPG::Armor)
- end
- end
- end
- #==============================================================================#
- # ** Window_ItemCategory
- #==============================================================================#
- class Window_ItemCategory < Window_HorzCommand
- def make_command_list
- # // Method override make command list.
- add_command(XAIL::ITEM_MINIFIED::ALL_ITEMS_VOCAB, :all)
- end
- end # END OF FILE
- #=*==========================================================================*=#
- # ** END OF FILE
- #=*==========================================================================*=#
Advertisement
Add Comment
Please, Sign In to add comment