Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================#
- # ** IEX-SceneEquip CMV + SEX (SceneEquipX) Patch
- #------------------------------------------------------------------------------#
- # // Created 06/25/2011
- # // By : IceDragon
- # // IEX-SceneEquip CMV - IceDragon
- # // SEX (SceneEquipX) - Zetu
- # // Website : rpgmakervx.net
- #==============================================================================#
- # IEX::COSMETIC_EQUIP
- #==============================================================================#
- module IEX
- module COSMETIC_EQUIP
- CATERGORY_ICONS = {
- # :catergory => icon_index,
- :weapon => 1,
- :shield => 53,
- :helm => 32,
- :back => 46,
- :armor => 42,
- :acces => 33,
- } # Do not remove
- end
- end
- #==============================================================================#
- # ** Window_EquipItem
- #==============================================================================#
- class Window_EquipItem < Window_Item
- def initialize(x, y, width, height, actor, equip_type)
- @actor = actor
- @equip_type = equip_type
- super(x, y, width, height)
- @column_max = 1
- @back_sprite = Sprite.new
- @back_sprite.x = self.x
- @back_sprite.y = self.y
- refresh()
- end
- end
- #==============================================================================#
- # ** Window_Equip
- #==============================================================================#
- class Window_Equip < Window_Selectable
- BOLD_TEXT = false
- #--------------------------------------------------------------------------
- # * Refresh
- #--------------------------------------------------------------------------
- def refresh
- @data = []
- for item in @actor.equips do @data.push(item) end
- @item_max = @data.size
- create_contents()
- self.contents.font.color = system_color
- text_x = 4
- if IEX::COSMETIC_EQUIP::USE_CATERGORY_ICONS
- text_x += 24
- end
- cat_icons = IEX::COSMETIC_EQUIP::CATERGORY_ICONS
- for i in 0...EQUIPS.size
- self.contents.font.size = Font.default_size - 2
- self.contents.font.bold = true if BOLD_TEXT
- self.contents.draw_text(text_x, WLH*i, 92, WLH, Z::SceneEquipX::vocab_index(i))
- if IEX::COSMETIC_EQUIP::USE_CATERGORY_ICONS
- draw_icon(cat_icons[Z_Systems::SceneEquipX::EQUIPS[i]], text_x - 24, WLH * i)
- end
- end
- off_x_sub = 12
- self.contents.font.size = Font.default_size - 4
- self.contents.font.bold = false
- for i in 0...EQUIPS.size
- draw_item_name( @data[i], text_x + (92 - off_x_sub), WLH * i )
- end
- end
- end
- #=*==========================================================================*=#
- # ** END OF FILE
- #=*==========================================================================*=#
Advertisement
Add Comment
Please, Sign In to add comment