Resize windows? (not screen resolution)

I'm using Yanfly's Ace Core Engine to resize the screen resolution of my game to 640 * 480. As expected, all the windows from the menus stretch to the borders. I don't want this to happen. How can I modify their sizes to keep them as centered windows? I tried using Hime's Window Animation Designer which has a field for resizing but it didn't work, since the windows get literally cut and information is missing, not resized.

​

Well, you'd need to tell us what you wanna do here. For instance, how should menus like the equip menu look like?
Like this (not Equip window, but the idea is having them unglued to the edges, for example, them staying to the default sizes while screen res is 640 * 480):

Spoiler: Spoiler
Deleted
The following script is based on the default Scene_Equip script.

Ruby:
# * Scene_Equip ACE Centered - 640px Version * #
#   Scripter : Kyonides Arkanthes
#   2024-03-15

# * Free for Use in ANY Game * #

class Window_Help
  def initialize(line_number = 2)
    super(48, 0, 544, fitting_height(line_number))
  end
end

class Window_EquipStatus
end

class Scene_Equip
  def create_help_window
    @help_window = Window_Help.new
    @help_window.viewport = @viewport
  end

  def create_status_window
    @status_window = Window_EquipStatus.new(48, @help_window.height)
    @status_window.viewport = @viewport
    @status_window.actor = @actor
  end

  def create_command_window
    wx = @status_window.x + @status_window.width
    wy = @help_window.height
    ww = Graphics.width - @status_window.x - wx
    @command_window = Window_EquipCommand.new(wx, wy, ww)
    @command_window.viewport = @viewport
    @command_window.help_window = @help_window
    @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))
  end

  def create_slot_window
    wx = @status_window.x + @status_window.width
    wy = @command_window.y + @command_window.height
    ww = @command_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

  def create_item_window
    wx = 48
    wy = @slot_window.y + @slot_window.height
    ww = Graphics.width - @status_window.x * 2
    wh = Graphics.height - wy
    @item_window = Window_EquipItem.new(wx, wy, ww, wh)
    @item_window.viewport = @viewport
    @item_window.help_window = @help_window
    @item_window.status_window = @status_window
    @item_window.actor = @actor
    @item_window.set_handler(:ok,     method(:on_item_ok))
    @item_window.set_handler(:cancel, method(:on_item_cancel))
    @slot_window.item_window = @item_window
  end
end
Thanks for the help Kyonides! It appears the upper and lower borders are still touching edges of the windows on the Equip window, and the rest of the windows look like this.

Spoiler: Spoiler
Deleted

What lines should I change to make it don't touch the edges?

Though I was originally asking for all windows (specifically Inventory, Status, Load and Save windows), I didn't know this had to be done for every window alone. That would be too much to ask for, so I think this is good for now.
If you were using the default scripts only, my code would have taken care of everything. What happened there is that the windows used in those custom scripts you briefly mentioned before, except for Window_Help, have been customized. This means that they overwrite anything I've done to modify their width and height.

OR you're just showing me the Scene_Item screen aka inventory and I NEVER modified that. 😛
Oh, no, the script for the Equip scene is what I wanted and I thank you for that!

Hmm. Weird, I'm only using Ace Core Engine script that affects how the windows look. Only other script that affects windows is DoctorTodd's One Person Menu, but that doesn't change the Equip scene, just the main menu.

I just tested moving your script above Ace Core Engine and it looks the same. I really don't know what could be the issue...

Edit: This catches my attention. If "fitting_height" is what makes the windows of Equip touch the upper and lower edges of the screen then this could be replaced by a number, because it's doing the exact opposite of what I asked. But I don't know how to change it exactly 😅

Captura de pantalla (739).png

Original thread: https://forums.rpgmakerweb.com/threads/resize-windows-not-screen-resolution.166807/