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
Regular
Joined
May 22, 2016
Messages
5,235
Reaction score
1,565
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

Everybody: "Hey, weren't you supposed to be making a game"?

Me. "MUST MAKE MOAR CUTSCENES!!1"
I've been watching videos about the videogame streamer Open Hand charity scandal, and the rabbit hole keeps getting deeper. At first it was just a lot of donated money being grossly neglected for years, and now there's a lot of money unaccounted for, which could turn this into a legitimate IRS crackdown.
Let's have some fun with my advent calendar. What would you like to see for Day 3: land, sea, or air? :rheh:
I've been thinking about doing a jokey submission for the Christmas jam in which, like a cartoon special where all the characters "play" a counterpart in A Christmas Carol, my MagiCats would each play a role from the C.A. Smith story The Coming of the White Worm, with Cyprian as Evagh, Rousalie as Dooni and so forth. But in the end, I figure all my development efforts should go toward the game proper.
In twitter, square phoenix had successfully prompted chatgpt to make the mini game watermelon pangpang.

Forum statistics

Threads
136,703
Messages
1,268,947
Members
180,419
Latest member
riruru
Top