Help making a menu with only one column!!

Hi! I have been mixing around with some RGSS scripts recently! It worked quite well! I have changed a lot of things in the original menu. My problem is this: I have moved around the Window_EquipRight and Window_EquipLeft and Window_EquipItem parts of the equipment section, but now I can't SEE the items avaliable in The Item Equip Window. I have Max_Column == 1, but only some of the weapons/armors is showing, not all of them (only the text). There is something I have missed in the scripts, I am sure of it! Here is a screenshot of MY PROBLEM:

Image

See? The local position is NOT EMPTY! Because there is info! So why isn't the weapon shown in the Item Equip Window?

I have been changing and editing the following scripts:
-Window_EquipRight
-Window_EquipLeft
-Window_EquipItem

-Scene_Equip

Here are the scripts I used Spoiler
  1. #==============================================================================
  2. # ** Window_EquipLeft
  3. #------------------------------------------------------------------------------
  4. #  This window displays actor parameter changes on the equipment screen.
  5. #==============================================================================
  6.  
  7. class Window_EquipLeft < Window_Base
  8.   #--------------------------------------------------------------------------
  9.   # * Object Initialization
  10.   #     actor : actor
  11.   #--------------------------------------------------------------------------
  12.   def initialize(actor)
  13.     super(80, 160, 300, 400)
  14.     self.contents = Bitmap.new(width - 32, height - 32)
  15.     @actor = actor
  16.     refresh
  17.   end
  18.   #--------------------------------------------------------------------------
  19.   # * Refresh
  20.   #--------------------------------------------------------------------------
  21.   def refresh
  22.     self.contents.clear
  23.     draw_actor_graphic(@actor, 20, 70)
  24.     draw_actor_name(@actor, 4, 0)
  25.     draw_actor_parameter(@actor, 4, 90, 0)
  26.     draw_actor_parameter(@actor, 4, 110, 1)
  27.     draw_actor_parameter(@actor, 4, 130, 2)
  28.     draw_actor_parameter(@actor, 4, 160, 3)
  29.     draw_actor_parameter(@actor, 4, 180, 4)
  30.     draw_actor_parameter(@actor, 4, 200, 5)
  31.     draw_actor_parameter(@actor, 4, 220, 6)
  32.     if @new_atk != nil
  33.       self.contents.font.color = system_color
  34.       self.contents.draw_text(160, 90, 40, 32, ">", 1)
  35.       self.contents.font.color = normal_color
  36.       self.contents.draw_text(200, 90, 36, 32, @new_atk.to_s, 2)
  37.     end
  38.     if @new_pdef != nil
  39.       self.contents.font.color = system_color
  40.       self.contents.draw_text(160, 110, 40, 32, ">", 1)
  41.       self.contents.font.color = normal_color
  42.       self.contents.draw_text(200, 110, 36, 32, @new_pdef.to_s, 2)
  43.     end
  44.     if @new_mdef != nil
  45.       self.contents.font.color = system_color
  46.       self.contents.draw_text(160, 130, 40, 32, ">", 1)
  47.       self.contents.font.color = normal_color
  48.       self.contents.draw_text(200, 130, 36, 32, @new_mdef.to_s, 2)
  49.     end
  50.     if @new_str != nil
  51.       self.contents.font.color = system_color
  52.       self.contents.draw_text(160, 160, 40, 32, ">", 1)
  53.       self.contents.font.color = normal_color
  54.       self.contents.draw_text(200, 160, 36, 32, @new_str.to_s, 2)
  55.     end
  56.     if @new_dex != nil
  57.       self.contents.font.color = system_color
  58.       self.contents.draw_text(160, 180, 40, 32, ">", 1)
  59.       self.contents.font.color = normal_color
  60.       self.contents.draw_text(200, 180, 36, 32, @new_dex.to_s, 2)
  61.     end
  62.     if @new_agi != nil
  63.       self.contents.font.color = system_color
  64.       self.contents.draw_text(160, 200, 40, 32, ">", 1)
  65.       self.contents.font.color = normal_color
  66.       self.contents.draw_text(200, 200, 36, 32, @new_agi.to_s, 2)
  67.     end
  68.     if @new_int != nil
  69.       self.contents.font.color = system_color
  70.       self.contents.draw_text(160, 220, 40, 32, ">", 1)
  71.       self.contents.font.color = normal_color
  72.       self.contents.draw_text(200, 220, 36, 32, @new_int.to_s, 2)
  73.     end
  74.   end
  75.   #--------------------------------------------------------------------------
  76.   # * Set parameters after changing equipment
  77.   #     new_atk  : attack power after changing equipment
  78.   #     new_pdef : physical defense after changing equipment
  79.   #     new_mdef : magic defense after changing equipment
  80.   #--------------------------------------------------------------------------
  81.   def set_new_parameters(new_atk, new_pdef, new_mdef, new_str, new_dex, new_agi, new_int)
  82.     if @new_atk != new_atk or @new_pdef != new_pdef or @new_mdef != new_mdef or new_str != new_str or new_dex != new_dex or new_agi != new_agi or new_int != new_int
  83.       @new_atk = new_atk
  84.       @new_pdef = new_pdef
  85.       @new_mdef = new_mdef
  86.       @new_str = new_str
  87.       @new_dex = new_dex
  88.       @new_agi = new_agi
  89.       @new_int = new_int
  90.       refresh
  91.     end
  92.   end
  93. end
  94.  
Expand to see the code.


Next one:

  1. #==============================================================================
  2. # ** Window_EquipRight
  3. #------------------------------------------------------------------------------
  4. #  This window displays items the actor is currently equipped with on the
  5. #  equipment screen.
  6. #==============================================================================
  7.  
  8. class Window_EquipRight < Window_Selectable
  9.   #--------------------------------------------------------------------------
  10.   # * Object Initialization
  11.   #     actor : actor
  12.   #--------------------------------------------------------------------------
  13.   def initialize(actor)
  14.     super(0, 64, 380, 100)
  15.     self.contents = Bitmap.new(width - 32, height - 32)
  16.     @actor = actor
  17.     refresh
  18.     self.index = 0
  19.   end
  20.   #--------------------------------------------------------------------------
  21.   # * Item Acquisition
  22.   #--------------------------------------------------------------------------
  23.   def item
  24.     return @data[self.index]
  25.   end
  26.   #--------------------------------------------------------------------------
  27.   # * Refresh
  28.   #--------------------------------------------------------------------------
  29.   def refresh
  30.     self.contents.clear
  31.     @data = []
  32.     @data.push($data_weapons[@actor.weapon_id])
  33.     @data.push($data_armors[@actor.armor1_id])
  34.     @item_max = @data.size
  35.     self.contents.font.color = system_color
  36.     self.contents.draw_text(4, 32 * 0, 92, 32, $data_system.words.weapon)
  37.     self.contents.draw_text(4, 32 * 1, 92, 32, $data_system.words.armor1)
  38.     self.contents.draw_text(4, 32 * 2, 92, 32, $data_system.words.armor2)
  39.     self.contents.draw_text(4, 32 * 3, 92, 32, $data_system.words.armor3)
  40.     self.contents.draw_text(5, 32 * 4, 92, 32, $data_system.words.armor4)
  41.     draw_item_name(@data[0], 92, 32 * 0)
  42.     draw_item_name(@data[1], 92, 32 * 1)
  43.     draw_item_name(@data[2], 92, 32 * 2)
  44.     draw_item_name(@data[3], 92, 32 * 3)
  45.     draw_item_name(@data[4], 92, 32 * 4)
  46.   end
  47.   #--------------------------------------------------------------------------
  48.   # * Help Text Update
  49.   #--------------------------------------------------------------------------
  50.   def update_help
  51.     @help_window.set_text(self.item == nil ? "" : self.item.description)
  52.   end
  53. end
  54.  
Expand to see the code.


And 3rd one:

  1. #==============================================================================
  2. # ** Window_EquipItem
  3. #------------------------------------------------------------------------------
  4. #  This window displays choices when opting to change equipment on the
  5. #  equipment screen.
  6. #==============================================================================
  7.  
  8. class Window_EquipItem < Window_Selectable
  9.   #--------------------------------------------------------------------------
  10.   # * Object Initialization
  11.   #     actor      : actor
  12.   #     equip_type : equip region (0-3)
  13.   #--------------------------------------------------------------------------
  14.   def initialize(actor, equip_type)
  15.     super(380, 100, 272, 200)
  16.     self.contents = Bitmap.new(width - 32, height - 32)
  17.     @actor = actor
  18.     @equip_type = equip_type
  19.     @column_max = 1
  20.     refresh
  21.     self.active = false
  22.     self.index = 0
  23.   end
  24.   #--------------------------------------------------------------------------
  25.   # * Item Acquisition
  26.   #--------------------------------------------------------------------------
  27.   def item
  28.     return @data[self.index]
  29.   end
  30.   #--------------------------------------------------------------------------
  31.   # * Refresh
  32.   #--------------------------------------------------------------------------
  33.   def refresh
  34.     if self.contents != nil
  35.       self.contents.dispose
  36.       self.contents = nil
  37.     end
  38.     @data = []
  39.     # Add equippable weapons
  40.     if @equip_type == 0
  41.       weapon_set = $data_classes[@actor.class_id].weapon_set
  42.       for i in 1...$data_weapons.size
  43.         if $game_party.weapon_number(i) > 0 and weapon_set.include?(i)
  44.           @data.push($data_weapons[i])
  45.         end
  46.       end
  47.     end
  48.     # Add equippable armor
  49.     if @equip_type != 0
  50.       armor_set = $data_classes[@actor.class_id].armor_set
  51.       for i in 1...$data_armors.size
  52.         if $game_party.armor_number(i) > 0 and armor_set.include?(i)
  53.           if $data_armors[i].kind == @equip_type-0
  54.             @data.push($data_armors[i])
  55.           end
  56.         end
  57.       end
  58.     end
  59.     # Add blank page
  60.     @data.push(nil)
  61.     # Make a bit map and draw all items
  62.     @item_max = @data.size
  63.     self.contents = Bitmap.new(width - 20, row_max * 15)
  64.     for i in 0...@item_max-1
  65.       draw_item(i)
  66.     end
  67.   end
  68.   #--------------------------------------------------------------------------
  69.   # * Draw Item
  70.   #     index : item number
  71.   #--------------------------------------------------------------------------
  72.   def draw_item(index)
  73.     item = @data[index]
  74.     x = 4 + index % 2 * (288 + 32)
  75.     y = index / 2 * 32
  76.     case item
  77.     when RPG::Weapon
  78.       number = $game_party.weapon_number(item.id)
  79.     when RPG::Armor
  80.       number = $game_party.armor_number(item.id)
  81.     end
  82.     bitmap = RPG::Cache.icon(item.icon_name)
  83.     self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24))
  84.     self.contents.font.color = normal_color
  85.     self.contents.draw_text(x + 28, y, 212, 32, item.name, 0)
  86.     self.contents.draw_text(x + 240, y, 16, 32, ":", 1)
  87.     self.contents.draw_text(x + 256, y, 24, 32, number.to_s, 1)
  88.   end
  89.   #--------------------------------------------------------------------------
  90.   # * Help Text Update
  91.   #--------------------------------------------------------------------------
  92.   def update_help
  93.     @help_window.set_text(self.item == nil ? "" : self.item.description)
  94.   end
  95. end
  96.  
Expand to see the code.


And the last one:

  1. #==============================================================================
  2. # ** Scene_Equip
  3. #------------------------------------------------------------------------------
  4. #  This class performs equipment screen processing.
  5. #==============================================================================
  6.  
  7. class Scene_Equip
  8.   #--------------------------------------------------------------------------
  9.   # * Object Initialization
  10.   #     actor_index : actor index
  11.   #     equip_index : equipment index
  12.   #--------------------------------------------------------------------------
  13.   def initialize(actor_index = 0, equip_index = 0)
  14.     @actor_index = actor_index
  15.     @equip_index = equip_index
  16.   end
  17.   #--------------------------------------------------------------------------
  18.   # * Main Processing
  19.   #--------------------------------------------------------------------------
  20.   def main
  21.     # Get actor
  22.     @actor = $game_party.actors[@actor_index]
  23.     # Make windows
  24.     @help_window = Window_Help.new
  25.     @left_window = Window_EquipLeft.new(@actor)
  26.     @right_window = Window_EquipRight.new(@actor)
  27.     @item_window1 = Window_EquipItem.new(@actor, 0)
  28.     @item_window2 = Window_EquipItem.new(@actor, 1)
  29.     @item_window3 = Window_EquipItem.new(@actor, 2)
  30.     @item_window4 = Window_EquipItem.new(@actor, 3)
  31.     @item_window5 = Window_EquipItem.new(@actor, 4)
  32.     # Associate help window
  33.     @right_window.help_window = @help_window
  34.     @item_window1.help_window = @help_window
  35.     @item_window2.help_window = @help_window
  36.     @item_window3.help_window = @help_window
  37.     @item_window4.help_window = @help_window
  38.     @item_window5.help_window = @help_window
  39.     # Set cursor position
  40.     @right_window.index = @equip_index
  41.     refresh
  42.     # Execute transition
  43.     Graphics.transition
  44.     # Main loop
  45.     loop do
  46.       # Update game screen
  47.       Graphics.update
  48.       # Update input information
  49.       Input.update
  50.       # Frame update
  51.       update
  52.       # Abort loop if screen is changed
  53.       if $scene != self
  54.         break
  55.       end
  56.     end
  57.     # Prepare for transition
  58.     Graphics.freeze
  59.     # Dispose of windows
  60.     @help_window.dispose
  61.     @left_window.dispose
  62.     @right_window.dispose
  63.     @item_window1.dispose
  64.     @item_window2.dispose
  65.     @item_window3.dispose
  66.     @item_window4.dispose
  67.     @item_window5.dispose
  68.   end
  69.   #--------------------------------------------------------------------------
  70.   # * Refresh
  71.   #--------------------------------------------------------------------------
  72.   def refresh
  73.     # Set item window to visible
  74.     @item_window1.visible = (@right_window.index == 0)
  75.     @item_window2.visible = (@right_window.index == 1)
  76.     @item_window3.visible = (@right_window.index == 2)
  77.     @item_window4.visible = (@right_window.index == 3)
  78.     @item_window5.visible = (@right_window.index == 4)
  79.     # Get currently equipped item
  80.     item1 = @right_window.item
  81.     # Set current item window to @item_window
  82.     case @right_window.index
  83.     when 0
  84.       @item_window = @item_window1
  85.     when 1
  86.       @item_window = @item_window2
  87.     when 2
  88.       @item_window = @item_window3
  89.     when 3
  90.       @item_window = @item_window4
  91.     when 4
  92.       @item_window = @item_window5
  93.     end
  94.     # If right window is active
  95.     if @right_window.active
  96.       # Erase parameters for after equipment change
  97.       @left_window.set_new_parameters(nil, nil, nil, nil, nil, nil, nil)
  98.     end
  99.     # If item window is active
  100.     if @item_window.active
  101.       # Get currently selected item
  102.       item2 = @item_window.item
  103.       # Change equipment
  104.       last_hp = @actor.hp
  105.       last_sp = @actor.sp
  106.       @actor.equip(@right_window.index, item2 == nil ? 0 : item2.id)
  107.       # Get parameters for after equipment change
  108.       new_atk = @actor.atk
  109.       new_pdef = @actor.pdef
  110.       new_mdef = @actor.mdef
  111.       new_str = @actor.str
  112.       new_dex = @actor.dex
  113.       new_agi = @actor.agi
  114.       new_int = @actor.int
  115.       # Return equipment
  116.       @actor.equip(@right_window.index, item1 == nil ? 0 : item1.id)
  117.       @actor.hp = last_hp
  118.       @actor.sp = last_sp
  119.       # Draw in left window
  120.       @left_window.set_new_parameters(new_atk, new_pdef, new_mdef, new_str, new_dex, new_agi, new_int)
  121.     end
  122.   end
  123.   #--------------------------------------------------------------------------
  124.   # * Frame Update
  125.   #--------------------------------------------------------------------------
  126.   def update
  127.     # Update windows
  128.     @left_window.update
  129.     @right_window.update
  130.     @item_window.update
  131.     refresh
  132.     # If right window is active: call update_right
  133.     if @right_window.active
  134.       update_right
  135.       return
  136.     end
  137.     # If item window is active: call update_item
  138.     if @item_window.active
  139.       update_item
  140.       return
  141.     end
  142.   end
  143.   #--------------------------------------------------------------------------
  144.   # * Frame Update (when right window is active)
  145.   #--------------------------------------------------------------------------
  146.   def update_right
  147.     # If B button was pressed
  148.     if Input.trigger?(Input::B)
  149.       # Play cancel SE
  150.       $game_system.se_play($data_system.cancel_se)
  151.       # Switch to menu screen
  152.       $scene = Scene_Menu.new(2)
  153.       return
  154.     end
  155.     # If C button was pressed
  156.     if Input.trigger?(Input::C)
  157.       # If equipment is fixed
  158.       if @actor.equip_fix?(@right_window.index)
  159.         # Play buzzer SE
  160.         $game_system.se_play($data_system.buzzer_se)
  161.         return
  162.       end
  163.       # Play decision SE
  164.       $game_system.se_play($data_system.decision_se)
  165.       # Activate item window
  166.       @right_window.active = false
  167.       @item_window.active = true
  168.       @item_window.index = 0
  169.       return
  170.     end
  171.     # If R button was pressed
  172.     if Input.trigger?(Input::R)
  173.       # Play cursor SE
  174.       $game_system.se_play($data_system.cursor_se)
  175.       # To next actor
  176.       @actor_index += 1
  177.       @actor_index %= $game_party.actors.size
  178.       # Switch to different equipment screen
  179.       $scene = Scene_Equip.new(@actor_index, @right_window.index)
  180.       return
  181.     end
  182.     # If L button was pressed
  183.     if Input.trigger?(Input::L)
  184.       # Play cursor SE
  185.       $game_system.se_play($data_system.cursor_se)
  186.       # To previous actor
  187.       @actor_index += $game_party.actors.size - 1
  188.       @actor_index %= $game_party.actors.size
  189.       # Switch to different equipment screen
  190.       $scene = Scene_Equip.new(@actor_index, @right_window.index)
  191.       return
  192.     end
  193.   end
  194.   #--------------------------------------------------------------------------
  195.   # * Frame Update (when item window is active)
  196.   #--------------------------------------------------------------------------
  197.   def update_item
  198.     # If B button was pressed
  199.     if Input.trigger?(Input::B)
  200.       # Play cancel SE
  201.       $game_system.se_play($data_system.cancel_se)
  202.       # Activate right window
  203.       @right_window.active = true
  204.       @item_window.active = false
  205.       @item_window.index = -1
  206.       return
  207.     end
  208.     # If C button was pressed
  209.     if Input.trigger?(Input::C)
  210.       # Play equip SE
  211.       $game_system.se_play($data_system.equip_se)
  212.       # Get currently selected data on the item window
  213.       item = @item_window.item
  214.       # Change equipment
  215.       @actor.equip(@right_window.index, item == nil ? 0 : item.id)
  216.       # Activate right window
  217.       @right_window.active = true
  218.       @item_window.active = false
  219.       @item_window.index = -1
  220.       # Remake right window and item window contents
  221.       @right_window.refresh
  222.       @item_window.refresh
  223.       return
  224.     end
  225.   end
  226. end
Expand to see the code.


Please help me

//Thank You!
Setting the colmax to 1 is not enough, you need to edit the algorithm for positioning the text in the window, as it will still try and draw the text over a two column layout.

If you paste the script here someone can have a look at it, but I hope the above helps a bit.
Ok! I know that I must change the text position(s) but there are way to many different coordinates in ALL 4 SCRIPTS reffering to text positions, so I didn't change any since it will be very wrong.

Here's the scripts I changed and edited (RGSS library) :

  1. #==============================================================================
  2. # ** Window_EquipLeft
  3. #------------------------------------------------------------------------------
  4. #  This window displays actor parameter changes on the equipment screen.
  5. #==============================================================================
  6.  
  7. class Window_EquipLeft < Window_Base
  8.   #--------------------------------------------------------------------------
  9.   # * Object Initialization
  10.   #     actor : actor
  11.   #--------------------------------------------------------------------------
  12.   def initialize(actor)
  13.     super(80, 160, 300, 400)
  14.     self.contents = Bitmap.new(width - 32, height - 32)
  15.     @actor = actor
  16.     refresh
  17.   end
  18.   #--------------------------------------------------------------------------
  19.   # * Refresh
  20.   #--------------------------------------------------------------------------
  21.   def refresh
  22.     self.contents.clear
  23.     draw_actor_graphic(@actor, 20, 70)
  24.     draw_actor_name(@actor, 4, 0)
  25.     draw_actor_parameter(@actor, 4, 90, 0)
  26.     draw_actor_parameter(@actor, 4, 110, 1)
  27.     draw_actor_parameter(@actor, 4, 130, 2)
  28.     draw_actor_parameter(@actor, 4, 160, 3)
  29.     draw_actor_parameter(@actor, 4, 180, 4)
  30.     draw_actor_parameter(@actor, 4, 200, 5)
  31.     draw_actor_parameter(@actor, 4, 220, 6)
  32.     if @new_atk != nil
  33.       self.contents.font.color = system_color
  34.       self.contents.draw_text(160, 90, 40, 32, ">", 1)
  35.       self.contents.font.color = normal_color
  36.       self.contents.draw_text(200, 90, 36, 32, @new_atk.to_s, 2)
  37.     end
  38.     if @new_pdef != nil
  39.       self.contents.font.color = system_color
  40.       self.contents.draw_text(160, 110, 40, 32, ">", 1)
  41.       self.contents.font.color = normal_color
  42.       self.contents.draw_text(200, 110, 36, 32, @new_pdef.to_s, 2)
  43.     end
  44.     if @new_mdef != nil
  45.       self.contents.font.color = system_color
  46.       self.contents.draw_text(160, 130, 40, 32, ">", 1)
  47.       self.contents.font.color = normal_color
  48.       self.contents.draw_text(200, 130, 36, 32, @new_mdef.to_s, 2)
  49.     end
  50.     if @new_str != nil
  51.       self.contents.font.color = system_color
  52.       self.contents.draw_text(160, 160, 40, 32, ">", 1)
  53.       self.contents.font.color = normal_color
  54.       self.contents.draw_text(200, 160, 36, 32, @new_str.to_s, 2)
  55.     end
  56.     if @new_dex != nil
  57.       self.contents.font.color = system_color
  58.       self.contents.draw_text(160, 180, 40, 32, ">", 1)
  59.       self.contents.font.color = normal_color
  60.       self.contents.draw_text(200, 180, 36, 32, @new_dex.to_s, 2)
  61.     end
  62.     if @new_agi != nil
  63.       self.contents.font.color = system_color
  64.       self.contents.draw_text(160, 200, 40, 32, ">", 1)
  65.       self.contents.font.color = normal_color
  66.       self.contents.draw_text(200, 200, 36, 32, @new_agi.to_s, 2)
  67.     end
  68.     if @new_int != nil
  69.       self.contents.font.color = system_color
  70.       self.contents.draw_text(160, 220, 40, 32, ">", 1)
  71.       self.contents.font.color = normal_color
  72.       self.contents.draw_text(200, 220, 36, 32, @new_int.to_s, 2)
  73.     end
  74.   end
  75.   #--------------------------------------------------------------------------
  76.   # * Set parameters after changing equipment
  77.   #     new_atk  : attack power after changing equipment
  78.   #     new_pdef : physical defense after changing equipment
  79.   #     new_mdef : magic defense after changing equipment
  80.   #--------------------------------------------------------------------------
  81.   def set_new_parameters(new_atk, new_pdef, new_mdef, new_str, new_dex, new_agi, new_int)
  82.     if @new_atk != new_atk or @new_pdef != new_pdef or @new_mdef != new_mdef or new_str != new_str or new_dex != new_dex or new_agi != new_agi or new_int != new_int
  83.       @new_atk = new_atk
  84.       @new_pdef = new_pdef
  85.       @new_mdef = new_mdef
  86.       @new_str = new_str
  87.       @new_dex = new_dex
  88.       @new_agi = new_agi
  89.       @new_int = new_int
  90.       refresh
  91.     end
  92.   end
  93. end
  94.  
Expand to see the code.


Next one:

  1. #==============================================================================
  2. # ** Window_EquipRight
  3. #------------------------------------------------------------------------------
  4. #  This window displays items the actor is currently equipped with on the
  5. #  equipment screen.
  6. #==============================================================================
  7.  
  8. class Window_EquipRight < Window_Selectable
  9.   #--------------------------------------------------------------------------
  10.   # * Object Initialization
  11.   #     actor : actor
  12.   #--------------------------------------------------------------------------
  13.   def initialize(actor)
  14.     super(0, 64, 380, 100)
  15.     self.contents = Bitmap.new(width - 32, height - 32)
  16.     @actor = actor
  17.     refresh
  18.     self.index = 0
  19.   end
  20.   #--------------------------------------------------------------------------
  21.   # * Item Acquisition
  22.   #--------------------------------------------------------------------------
  23.   def item
  24.     return @data[self.index]
  25.   end
  26.   #--------------------------------------------------------------------------
  27.   # * Refresh
  28.   #--------------------------------------------------------------------------
  29.   def refresh
  30.     self.contents.clear
  31.     @data = []
  32.     @data.push($data_weapons[@actor.weapon_id])
  33.     @data.push($data_armors[@actor.armor1_id])
  34.     @item_max = @data.size
  35.     self.contents.font.color = system_color
  36.     self.contents.draw_text(4, 32 * 0, 92, 32, $data_system.words.weapon)
  37.     self.contents.draw_text(4, 32 * 1, 92, 32, $data_system.words.armor1)
  38.     self.contents.draw_text(4, 32 * 2, 92, 32, $data_system.words.armor2)
  39.     self.contents.draw_text(4, 32 * 3, 92, 32, $data_system.words.armor3)
  40.     self.contents.draw_text(5, 32 * 4, 92, 32, $data_system.words.armor4)
  41.     draw_item_name(@data[0], 92, 32 * 0)
  42.     draw_item_name(@data[1], 92, 32 * 1)
  43.     draw_item_name(@data[2], 92, 32 * 2)
  44.     draw_item_name(@data[3], 92, 32 * 3)
  45.     draw_item_name(@data[4], 92, 32 * 4)
  46.   end
  47.   #--------------------------------------------------------------------------
  48.   # * Help Text Update
  49.   #--------------------------------------------------------------------------
  50.   def update_help
  51.     @help_window.set_text(self.item == nil ? "" : self.item.description)
  52.   end
  53. end
  54.  
Expand to see the code.


And 3rd one:

  1. #==============================================================================
  2. # ** Window_EquipItem
  3. #------------------------------------------------------------------------------
  4. #  This window displays choices when opting to change equipment on the
  5. #  equipment screen.
  6. #==============================================================================
  7.  
  8. class Window_EquipItem < Window_Selectable
  9.   #--------------------------------------------------------------------------
  10.   # * Object Initialization
  11.   #     actor      : actor
  12.   #     equip_type : equip region (0-3)
  13.   #--------------------------------------------------------------------------
  14.   def initialize(actor, equip_type)
  15.     super(380, 100, 272, 200)
  16.     self.contents = Bitmap.new(width - 32, height - 32)
  17.     @actor = actor
  18.     @equip_type = equip_type
  19.     @column_max = 1
  20.     refresh
  21.     self.active = false
  22.     self.index = 0
  23.   end
  24.   #--------------------------------------------------------------------------
  25.   # * Item Acquisition
  26.   #--------------------------------------------------------------------------
  27.   def item
  28.     return @data[self.index]
  29.   end
  30.   #--------------------------------------------------------------------------
  31.   # * Refresh
  32.   #--------------------------------------------------------------------------
  33.   def refresh
  34.     if self.contents != nil
  35.       self.contents.dispose
  36.       self.contents = nil
  37.     end
  38.     @data = []
  39.     # Add equippable weapons
  40.     if @equip_type == 0
  41.       weapon_set = $data_classes[@actor.class_id].weapon_set
  42.       for i in 1...$data_weapons.size
  43.         if $game_party.weapon_number(i) > 0 and weapon_set.include?(i)
  44.           @data.push($data_weapons[i])
  45.         end
  46.       end
  47.     end
  48.     # Add equippable armor
  49.     if @equip_type != 0
  50.       armor_set = $data_classes[@actor.class_id].armor_set
  51.       for i in 1...$data_armors.size
  52.         if $game_party.armor_number(i) > 0 and armor_set.include?(i)
  53.           if $data_armors[i].kind == @equip_type-0
  54.             @data.push($data_armors[i])
  55.           end
  56.         end
  57.       end
  58.     end
  59.     # Add blank page
  60.     @data.push(nil)
  61.     # Make a bit map and draw all items
  62.     @item_max = @data.size
  63.     self.contents = Bitmap.new(width - 20, row_max * 15)
  64.     for i in 0...@item_max-1
  65.       draw_item(i)
  66.     end
  67.   end
  68.   #--------------------------------------------------------------------------
  69.   # * Draw Item
  70.   #     index : item number
  71.   #--------------------------------------------------------------------------
  72.   def draw_item(index)
  73.     item = @data[index]
  74.     x = 4 + index % 2 * (288 + 32)
  75.     y = index / 2 * 32
  76.     case item
  77.     when RPG::Weapon
  78.       number = $game_party.weapon_number(item.id)
  79.     when RPG::Armor
  80.       number = $game_party.armor_number(item.id)
  81.     end
  82.     bitmap = RPG::Cache.icon(item.icon_name)
  83.     self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24))
  84.     self.contents.font.color = normal_color
  85.     self.contents.draw_text(x + 28, y, 212, 32, item.name, 0)
  86.     self.contents.draw_text(x + 240, y, 16, 32, ":", 1)
  87.     self.contents.draw_text(x + 256, y, 24, 32, number.to_s, 1)
  88.   end
  89.   #--------------------------------------------------------------------------
  90.   # * Help Text Update
  91.   #--------------------------------------------------------------------------
  92.   def update_help
  93.     @help_window.set_text(self.item == nil ? "" : self.item.description)
  94.   end
  95. end
  96.  
Expand to see the code.


And the last one:

  1. #==============================================================================
  2. # ** Scene_Equip
  3. #------------------------------------------------------------------------------
  4. #  This class performs equipment screen processing.
  5. #==============================================================================
  6.  
  7. class Scene_Equip
  8.   #--------------------------------------------------------------------------
  9.   # * Object Initialization
  10.   #     actor_index : actor index
  11.   #     equip_index : equipment index
  12.   #--------------------------------------------------------------------------
  13.   def initialize(actor_index = 0, equip_index = 0)
  14.     @actor_index = actor_index
  15.     @equip_index = equip_index
  16.   end
  17.   #--------------------------------------------------------------------------
  18.   # * Main Processing
  19.   #--------------------------------------------------------------------------
  20.   def main
  21.     # Get actor
  22.     @actor = $game_party.actors[@actor_index]
  23.     # Make windows
  24.     @help_window = Window_Help.new
  25.     @left_window = Window_EquipLeft.new(@actor)
  26.     @right_window = Window_EquipRight.new(@actor)
  27.     @item_window1 = Window_EquipItem.new(@actor, 0)
  28.     @item_window2 = Window_EquipItem.new(@actor, 1)
  29.     @item_window3 = Window_EquipItem.new(@actor, 2)
  30.     @item_window4 = Window_EquipItem.new(@actor, 3)
  31.     @item_window5 = Window_EquipItem.new(@actor, 4)
  32.     # Associate help window
  33.     @right_window.help_window = @help_window
  34.     @item_window1.help_window = @help_window
  35.     @item_window2.help_window = @help_window
  36.     @item_window3.help_window = @help_window
  37.     @item_window4.help_window = @help_window
  38.     @item_window5.help_window = @help_window
  39.     # Set cursor position
  40.     @right_window.index = @equip_index
  41.     refresh
  42.     # Execute transition
  43.     Graphics.transition
  44.     # Main loop
  45.     loop do
  46.       # Update game screen
  47.       Graphics.update
  48.       # Update input information
  49.       Input.update
  50.       # Frame update
  51.       update
  52.       # Abort loop if screen is changed
  53.       if $scene != self
  54.         break
  55.       end
  56.     end
  57.     # Prepare for transition
  58.     Graphics.freeze
  59.     # Dispose of windows
  60.     @help_window.dispose
  61.     @left_window.dispose
  62.     @right_window.dispose
  63.     @item_window1.dispose
  64.     @item_window2.dispose
  65.     @item_window3.dispose
  66.     @item_window4.dispose
  67.     @item_window5.dispose
  68.   end
  69.   #--------------------------------------------------------------------------
  70.   # * Refresh
  71.   #--------------------------------------------------------------------------
  72.   def refresh
  73.     # Set item window to visible
  74.     @item_window1.visible = (@right_window.index == 0)
  75.     @item_window2.visible = (@right_window.index == 1)
  76.     @item_window3.visible = (@right_window.index == 2)
  77.     @item_window4.visible = (@right_window.index == 3)
  78.     @item_window5.visible = (@right_window.index == 4)
  79.     # Get currently equipped item
  80.     item1 = @right_window.item
  81.     # Set current item window to @item_window
  82.     case @right_window.index
  83.     when 0
  84.       @item_window = @item_window1
  85.     when 1
  86.       @item_window = @item_window2
  87.     when 2
  88.       @item_window = @item_window3
  89.     when 3
  90.       @item_window = @item_window4
  91.     when 4
  92.       @item_window = @item_window5
  93.     end
  94.     # If right window is active
  95.     if @right_window.active
  96.       # Erase parameters for after equipment change
  97.       @left_window.set_new_parameters(nil, nil, nil, nil, nil, nil, nil)
  98.     end
  99.     # If item window is active
  100.     if @item_window.active
  101.       # Get currently selected item
  102.       item2 = @item_window.item
  103.       # Change equipment
  104.       last_hp = @actor.hp
  105.       last_sp = @actor.sp
  106.       @actor.equip(@right_window.index, item2 == nil ? 0 : item2.id)
  107.       # Get parameters for after equipment change
  108.       new_atk = @actor.atk
  109.       new_pdef = @actor.pdef
  110.       new_mdef = @actor.mdef
  111.       new_str = @actor.str
  112.       new_dex = @actor.dex
  113.       new_agi = @actor.agi
  114.       new_int = @actor.int
  115.       # Return equipment
  116.       @actor.equip(@right_window.index, item1 == nil ? 0 : item1.id)
  117.       @actor.hp = last_hp
  118.       @actor.sp = last_sp
  119.       # Draw in left window
  120.       @left_window.set_new_parameters(new_atk, new_pdef, new_mdef, new_str, new_dex, new_agi, new_int)
  121.     end
  122.   end
  123.   #--------------------------------------------------------------------------
  124.   # * Frame Update
  125.   #--------------------------------------------------------------------------
  126.   def update
  127.     # Update windows
  128.     @left_window.update
  129.     @right_window.update
  130.     @item_window.update
  131.     refresh
  132.     # If right window is active: call update_right
  133.     if @right_window.active
  134.       update_right
  135.       return
  136.     end
  137.     # If item window is active: call update_item
  138.     if @item_window.active
  139.       update_item
  140.       return
  141.     end
  142.   end
  143.   #--------------------------------------------------------------------------
  144.   # * Frame Update (when right window is active)
  145.   #--------------------------------------------------------------------------
  146.   def update_right
  147.     # If B button was pressed
  148.     if Input.trigger?(Input::B)
  149.       # Play cancel SE
  150.       $game_system.se_play($data_system.cancel_se)
  151.       # Switch to menu screen
  152.       $scene = Scene_Menu.new(2)
  153.       return
  154.     end
  155.     # If C button was pressed
  156.     if Input.trigger?(Input::C)
  157.       # If equipment is fixed
  158.       if @actor.equip_fix?(@right_window.index)
  159.         # Play buzzer SE
  160.         $game_system.se_play($data_system.buzzer_se)
  161.         return
  162.       end
  163.       # Play decision SE
  164.       $game_system.se_play($data_system.decision_se)
  165.       # Activate item window
  166.       @right_window.active = false
  167.       @item_window.active = true
  168.       @item_window.index = 0
  169.       return
  170.     end
  171.     # If R button was pressed
  172.     if Input.trigger?(Input::R)
  173.       # Play cursor SE
  174.       $game_system.se_play($data_system.cursor_se)
  175.       # To next actor
  176.       @actor_index += 1
  177.       @actor_index %= $game_party.actors.size
  178.       # Switch to different equipment screen
  179.       $scene = Scene_Equip.new(@actor_index, @right_window.index)
  180.       return
  181.     end
  182.     # If L button was pressed
  183.     if Input.trigger?(Input::L)
  184.       # Play cursor SE
  185.       $game_system.se_play($data_system.cursor_se)
  186.       # To previous actor
  187.       @actor_index += $game_party.actors.size - 1
  188.       @actor_index %= $game_party.actors.size
  189.       # Switch to different equipment screen
  190.       $scene = Scene_Equip.new(@actor_index, @right_window.index)
  191.       return
  192.     end
  193.   end
  194.   #--------------------------------------------------------------------------
  195.   # * Frame Update (when item window is active)
  196.   #--------------------------------------------------------------------------
  197.   def update_item
  198.     # If B button was pressed
  199.     if Input.trigger?(Input::B)
  200.       # Play cancel SE
  201.       $game_system.se_play($data_system.cancel_se)
  202.       # Activate right window
  203.       @right_window.active = true
  204.       @item_window.active = false
  205.       @item_window.index = -1
  206.       return
  207.     end
  208.     # If C button was pressed
  209.     if Input.trigger?(Input::C)
  210.       # Play equip SE
  211.       $game_system.se_play($data_system.equip_se)
  212.       # Get currently selected data on the item window
  213.       item = @item_window.item
  214.       # Change equipment
  215.       @actor.equip(@right_window.index, item == nil ? 0 : item.id)
  216.       # Activate right window
  217.       @right_window.active = true
  218.       @item_window.active = false
  219.       @item_window.index = -1
  220.       # Remake right window and item window contents
  221.       @right_window.refresh
  222.       @item_window.refresh
  223.       return
  224.     end
  225.   end
  226. end
  227.  
  228.  
Expand to see the code.


As I said there are many numbers reffering to TEXT_POSITION so I don't know which to edit!

//Help me! thank you
the problem is on this part of def "draw_item(index)" from Window_EquipItem
x = 4 + index % 2 * (288 + 32)
y = index / 2 * 32


as you can se it, the x position and y position changes according to the index
So even changing the number of columns, the script still drawing the items on alternate positions. (damn EB, why didn't they make this according to the number of columns?).

changing this part to this may solve the problem.
x = 4
y = index * 32
Thank You it worked! But now only the HALF of the text is shown in row 2!

I don't remember where to change the text drawing. Please help

//Thank You


EDIT: I Fixed it! Only to change line 63: self.contents = Bitmap.new(width - 20, row_max * 32) I had row_max set to only 15 for any reason! Thank You, now I have made my own equip_menu! As you can see I have made a whole custom menu now :)

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=71253