pigu_6

XS| Item menu minified

Nov 24th, 2012
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. #==============================================================================
  2. # XaiL System - Item Minified
  3. # Author: Nicke
  4. # Created: 26/08/2012
  5. # Edited: 26/08/2012
  6. # Version: 1.0
  7. #==============================================================================
  8. # Instructions
  9. # -----------------------------------------------------------------------------
  10. # To install this script, open up your script editor and copy/paste this script
  11. # to an open slot below ? Materials but above ? Main. Remember to save.
  12. #
  13. # Small snippet to show a minfied item scene with only one category.
  14. #
  15. # *** Only for RPG Maker VX Ace. ***
  16. #==============================================================================
  17. ($imported ||= {})["XAIL-ITEM-MINIFIED"] = true
  18.  
  19. module XAIL
  20. module ITEM_MINIFIED
  21. #--------------------------------------------------------------------------#
  22. # * Settings
  23. #--------------------------------------------------------------------------#
  24. # Set this to the name you want as "all items" category.
  25. # ALL_ITEMS_VOCAB = string
  26. ALL_ITEMS_VOCAB = "All Items"
  27. end
  28. end
  29. # *** Don't edit below unless you know what you are doing. ***
  30. #==============================================================================#
  31. # ** Window_ItemList
  32. #==============================================================================#
  33. class Window_ItemList < Window_Selectable
  34.  
  35. alias xail_item_minfied_win_itemlist_include? include?
  36. def include?(item)
  37. # // Method to check category.
  38. xail_item_minfied_win_itemlist_include?(item)
  39. case @category
  40. when :all
  41. item.is_a?(RPG::Item) || item.is_a?(RPG::Weapon) || item.is_a?(RPG::Armor)
  42. end
  43. end
  44.  
  45. end
  46. #==============================================================================#
  47. # ** Window_ItemCategory
  48. #==============================================================================#
  49. class Window_ItemCategory < Window_HorzCommand
  50.  
  51. def make_command_list
  52. # // Method override make command list.
  53. add_command(XAIL::ITEM_MINIFIED::ALL_ITEMS_VOCAB, :all)
  54. end
  55.  
  56. end # END OF FILE
  57.  
  58. #=*==========================================================================*=#
  59. # ** END OF FILE
  60. #=*==========================================================================*=#
Advertisement
Add Comment
Please, Sign In to add comment