hram

Villager
Member
Joined
Oct 2, 2022
Messages
13
Reaction score
11
First Language
Portuguese
Primarily Uses
RMVXA
Hi everyone. I'm trying to change the way the Equip Window looks like in Yanfly's Ace Equip Engine. I wanted it to look like this:

mockup.png
But the best I could do is... this mess:
1671681119097.png
I am not script savvy, I just fumble around with it until I find a solution, which I wasn't able to do this time. Does anyone can help me or at least guide me in the right direction?

On the same note, as you can see, I was able to hide some attributes in the equip window, but wasn't able to do the same in the status window. Any help or guidance in that matter would be of great help too.
 

hram

Villager
Member
Joined
Oct 2, 2022
Messages
13
Reaction score
11
First Language
Portuguese
Primarily Uses
RMVXA

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,820
Reaction score
1,369
First Language
English
Primarily Uses
RMVXA
1675430810101.png
Ruby:
class Window_EquipStatus < Window_Base
 
  def refresh
    contents.clear
    draw_actor_name(@actor, 0, 0) if @actor
    s=0
    8.times {|i|
      case i
      when 1, 4, 7
        s+=1
        next
      end
      draw_item(0, line_height * (i-s + 1), i)
    }
  end
end

class Window_EquipCommand < Window_HorzCommand

  def window_width; return Graphics.width * 2 / 5; end
  def visible_line_number; return 3; end

end
   
class Window_EquipActor < Window_Base
 
  def window_width; return Graphics.width * 2 / 5; end
 
  def refresh
    contents.clear
    return unless @actor
    draw_actor_face(@actor, 0, 0)
    draw_actor_name(@actor, 120, 0)
    draw_actor_class(@actor, 120, 30)
  end
 
end # Window_EquipActor

class Scene_Equip < Scene_MenuBase
 
  def start
    super
    create_help_window
    create_command_window
    create_status_window
    create_slot_window
    create_item_window
  end

  def create_status_window
    wx = Graphics.width - (Graphics.width * 2 / 5)
    wy = @actor_window.y + @actor_window.height
    @status_window = Window_EquipStatus.new(wx, wy)
    @status_window.viewport = @viewport
    @status_window.actor = @actor
  end
 
  def create_command_window
    wx = Graphics.width - (Graphics.width * 2 / 5)
    wy = @help_window.height
    ww = Graphics.width * 2 / 5
    @command_window = Window_EquipCommand.new(wx, wy, ww)
    @command_window.viewport = @viewport
    @command_window.help_window = @help_window
    if !$game_temp.scene_equip_index.nil?
      @command_window.select($game_temp.scene_equip_index)
      @command_window.oy = $game_temp.scene_equip_oy
    end
    $game_temp.scene_equip_index = nil
    $game_temp.scene_equip_oy = nil
    @command_window.set_handler(:equip,    method(:command_equip))
    @command_window.set_handler(:optimize, method(:command_optimize))
    @command_window.set_handler(:clear,    method(:command_clear))
    @command_window.set_handler(:cancel,   method(:return_scene))
    @command_window.set_handler(:pagedown, method(:next_actor))
    @command_window.set_handler(:pageup,   method(:prev_actor))
    process_custom_equip_commands
    create_actor_window
  end
 
  def create_actor_window
    wx = Graphics.width - (Graphics.width * 2 / 5)
    wy = @command_window.y + @command_window.height
    @actor_window = Window_EquipActor.new(wx, wy)
    @actor_window.viewport = @viewport
    @actor_window.actor = @actor
  end

  def create_slot_window
    wx = 0
    wy = @help_window.height
    ww = Graphics.width - @status_window.width
    @slot_window = Window_EquipSlot.new(wx, wy, ww)
    @slot_window.viewport = @viewport
    @slot_window.help_window = @help_window
    @slot_window.status_window = @status_window
    @slot_window.actor = @actor
    @slot_window.set_handler(:ok,       method(:on_slot_ok))
    @slot_window.set_handler(:cancel,   method(:on_slot_cancel))
  end

end
 
Last edited:

hram

Villager
Member
Joined
Oct 2, 2022
Messages
13
Reaction score
11
First Language
Portuguese
Primarily Uses
RMVXA
This worked perfectly! thank you very much!
 

Latest Threads

Latest Posts

Latest Profile Posts

Have to be more organised and serious. It helps that im running out of time at work :|. so much to do. Trying to make game studio proffessional. www.bmpgames.com
imgur links are back!
now I CAN keep getting away with NOT replacing them with updated renders!
yay!
I forgot RPG Maker even existed. Such good memories. Might boot up steam and download MV one more time
10 pieces of KFC chicken for US$12.30, delivery included. Cheap or expensive? :aswt:
Ugh-I HATE this! There's construction going on in my area and because of that my Internet connection is wonky; this site in particular keeps constantly freezing up on me; I can't even barely type a single sentence without the page freezing in the middle of it! I hope this changes soon.

Forum statistics

Threads
131,548
Messages
1,220,754
Members
173,220
Latest member
ZecaVn
Top