IceDragon200

SE-CMV+X Patch

Jun 25th, 2011
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. #==============================================================================#
  2. # ** IEX-SceneEquip CMV + SEX (SceneEquipX) Patch
  3. #------------------------------------------------------------------------------#
  4. # // Created 06/25/2011
  5. # // By : IceDragon
  6. # // IEX-SceneEquip CMV - IceDragon
  7. # // SEX (SceneEquipX) - Zetu
  8. # // Website : rpgmakervx.net
  9. #==============================================================================#
  10. # IEX::COSMETIC_EQUIP
  11. #==============================================================================#
  12. module IEX
  13. module COSMETIC_EQUIP
  14.  
  15. CATERGORY_ICONS = {
  16. # :catergory => icon_index,
  17. :weapon => 1,
  18. :shield => 53,
  19. :helm => 32,
  20. :back => 46,
  21. :armor => 42,
  22. :acces => 33,
  23. } # Do not remove
  24.  
  25. end
  26. end
  27.  
  28. #==============================================================================#
  29. # ** Window_EquipItem
  30. #==============================================================================#
  31. class Window_EquipItem < Window_Item
  32.  
  33. def initialize(x, y, width, height, actor, equip_type)
  34. @actor = actor
  35. @equip_type = equip_type
  36. super(x, y, width, height)
  37. @column_max = 1
  38. @back_sprite = Sprite.new
  39. @back_sprite.x = self.x
  40. @back_sprite.y = self.y
  41. refresh()
  42. end
  43.  
  44. end
  45.  
  46. #==============================================================================#
  47. # ** Window_Equip
  48. #==============================================================================#
  49. class Window_Equip < Window_Selectable
  50.  
  51. BOLD_TEXT = false
  52.  
  53. #--------------------------------------------------------------------------
  54. # * Refresh
  55. #--------------------------------------------------------------------------
  56. def refresh
  57. @data = []
  58. for item in @actor.equips do @data.push(item) end
  59. @item_max = @data.size
  60. create_contents()
  61. self.contents.font.color = system_color
  62. text_x = 4
  63. if IEX::COSMETIC_EQUIP::USE_CATERGORY_ICONS
  64. text_x += 24
  65. end
  66. cat_icons = IEX::COSMETIC_EQUIP::CATERGORY_ICONS
  67. for i in 0...EQUIPS.size
  68. self.contents.font.size = Font.default_size - 2
  69. self.contents.font.bold = true if BOLD_TEXT
  70. self.contents.draw_text(text_x, WLH*i, 92, WLH, Z::SceneEquipX::vocab_index(i))
  71. if IEX::COSMETIC_EQUIP::USE_CATERGORY_ICONS
  72. draw_icon(cat_icons[Z_Systems::SceneEquipX::EQUIPS[i]], text_x - 24, WLH * i)
  73. end
  74. end
  75. off_x_sub = 12
  76. self.contents.font.size = Font.default_size - 4
  77. self.contents.font.bold = false
  78. for i in 0...EQUIPS.size
  79. draw_item_name( @data[i], text_x + (92 - off_x_sub), WLH * i )
  80. end
  81. end
  82.  
  83. end
  84.  
  85. #=*==========================================================================*=#
  86. # ** END OF FILE
  87. #=*==========================================================================*=#
Advertisement
Add Comment
Please, Sign In to add comment