VXAce [SOLVED] Height and width options for non-combat menu script

Hello!
i use mjshi's non-combat menu and i would like to ask if someone can make it to have Height and width options (On item menu because the main menu is already small) so it doesn't take up the entire screen.
It would be nice if someone helped a little with this nice script and to add this options.. Thank you

I've moved this thread to Script Requests. Thank you.

I've moved this thread to Script Requests.
Rpg Maker VX Ace script.
Rpg Maker VX Ace script.
Delete this post when you move it again.

Ahh thanks, I was thinking it was like script support, 1 thread for all. It’s been a while with Ace. 😛
Edit: see Roninator2's post for modified non-combat menu script.

Preview
G2Jas7P.png
Here is the script with the help window (description) removed. And the item window smaller. Plus you can change the numbers to position the windows or make it even smaller.
If you need the description window let me know, it will require more coding to have it adjustable like it was before.
Ruby:
#-------------------------------------------------------------------------------
# Non-Combat Menu v1.04a
#-- Fully customizable menu geared toward less battle-oriented games.
#-- By mjshi
#-------------------------------------------------------------------------------
# Installation: Put above Main, preferably also above other custom scripts.
#-------------------------------------------------------------------------------
# Update notes:
#- Added support for most quest log scripts.
#- Added support for separators.
# Bugfixes:
#- Fixed the gold window bug
#- Forced the ingame menu command to call the Non-Combat Menu rather than the
#  regular one.
#-------------------------------------------------------------------------------

$imported = {} if $imported.nil?
$imported["NonCombatMenu"] = true

module NonCombatMenu
  MENU = [
  #-----------------------------------------------------------------------------
  # **CONFIGURATION**
  #-----------------------------------------------------------------------------
  # What should the actual menu show?
  # Put a # in front of the ones you don't want to show, and you can reorder
  # this list to change the order in the menu.
  # **Don't remove the comma after each []!**
  #
  ['Items',   :item],
  ['Status', :status],
  ['Save', :save],
  ['Exit', :shutdown],

  # Other possible commands:
  #['Equipment', :nequip],
  #['Quest Log', :quests],
  #['Formation', :nform],
  #['Load', :load],
  #['Cancel', :cancel],
  #[' ', :none],
  # :none does nothing, so it's ideal for spacers or separators.
  ]
  #-----------------------------------------------------------------------------
  # Should the gold window be shown in the item menu?
  #
  SHOW_GOLD_WINDOW = true
  #
  # Where should it be shown (to the left? set to false. right? set to true)
  GOLD_WINDOW_ALIGN_RIGHT = false
  #
  # How wide should the window be (in pixels)? 160 is the default.
  GOLD_WINDOW_WIDTH = 160
  GOLD_WINDOW_Y = 0
  #
  CATEGORY_WINDOW_WIDTH = 424
  ITEM_WINDOW_WIDTH = 424
  ITEM_WINDOW_HEIGHT = 280
  # Base value for all windows
  BASE_WINDOW_X = 60
  #-----------------------------------------------------------------------------
  # How many tabs are you showing? (add up the # of true values below)
  #
  TABS_SHOWN = 2
  #
  # What should the item menu show?
  SHOW_CONSUMABLES = true # i.e. normal items
  SHOW_KEY_ITEMS = true
  SHOW_WEAPONS = false
  SHOW_ARMORS = false
  #
  #-----------------------------------------------------------------------------

end

#--------------------------------------------------------------------#
# !!! Beware of crashes and errors if you edit beyond this point !!! #
#--------------------------------------------------------------------#

# Overwrites the old, boring menu to use the cooler-looking Game End menu
class Scene_Map
  def call_menu
    Sound.play_ok
    SceneManager.call(Scene_End)
  end
end

# Overwrites how the tabs are shown in the Items Menu
class Window_ItemCategory

  # Changes width to allow placement of gold window.
  # If gold window doesn't exist, revert to default width.
  def window_width
    return NonCombatMenu::CATEGORY_WINDOW_WIDTH
  end

  # Changes columns to fit tabs shown
  def col_max
    return NonCombatMenu::TABS_SHOWN
  end

  # Makes a list of commands that will be shown/hidden depending on config
  def make_command_list
    add_command(Vocab::item,     :item) if NonCombatMenu::SHOW_CONSUMABLES
    add_command(Vocab::key_item, :key_item) if NonCombatMenu::SHOW_KEY_ITEMS
    add_command(Vocab::weapon,   :weapon) if NonCombatMenu::SHOW_WEAPONS
    add_command(Vocab::armor,    :armor) if NonCombatMenu::SHOW_ARMORS
  end

end

#Makes it so the user can change the gold window width
class Window_Gold
  def window_width
    return NonCombatMenu::GOLD_WINDOW_WIDTH
  end
end

# Adds a gold window to the item menu & determines placement
class Scene_Item
  def start
    super
    # Checks if the gold menu should be shown
    create_gold_window if NonCombatMenu::SHOW_GOLD_WINDOW
    create_category_window
    create_item_window
  end

  def create_category_window
    @category_window = Window_ItemCategory.new
    @category_window.viewport = @viewport
    # Set Tab Menu's X depending on Gold existing or not
    @category_window.x = NonCombatMenu::BASE_WINDOW_X
    @category_window.y = NonCombatMenu::BASE_WINDOW_X
    @category_window.y = @gold_window.height if NonCombatMenu::SHOW_GOLD_WINDOW
    @category_window.set_handler(:ok,     method(:on_category_ok))
    @category_window.set_handler(:cancel, method(:return_scene))
  end

  def create_item_window
    # Changes where the item window is displayed
    wh = NonCombatMenu::ITEM_WINDOW_HEIGHT
    ww = NonCombatMenu::ITEM_WINDOW_WIDTH
    wx = NonCombatMenu::BASE_WINDOW_X
    wy = @category_window.height + @category_window.y
    @item_window = Window_ItemList.new(wx, wy, ww, wh)
    @item_window.viewport = @viewport
    @item_window.set_handler(:ok,     method(:on_item_ok))
    @item_window.set_handler(:cancel, method(:on_item_cancel))
    @category_window.item_window = @item_window
  end

  def create_gold_window
    @gold_window = Window_Gold.new
    # Makes the gold window (if aligned right) be under any new windows
    @gold_window.viewport = @viewport
    @gold_window.y = NonCombatMenu::GOLD_WINDOW_Y
    @gold_window.x = NonCombatMenu::BASE_WINDOW_X
    @gold_window.x = Graphics.width - NonCombatMenu::GOLD_WINDOW_WIDTH -
    NonCombatMenu::BASE_WINDOW_X if NonCombatMenu::GOLD_WINDOW_ALIGN_RIGHT
  end
end

# Strips down the status menu to the very basics
class Window_Status
  def initialize(actor)
    super((Graphics.width - 300)/2, (Graphics.height - 120)/2, 300, 120)
    @actor = actor
    refresh
    activate
  end
  def refresh
    contents.clear
    draw_block2(line_height * 0)
  end
  def draw_basic_info(x, y)
    draw_actor_name(@actor, x, y + line_height * 0.5)
    draw_actor_hp(@actor, x, y + line_height * 1.5)
    draw_actor_mp(@actor, x, y + line_height * 2.5)
  end
end

# Dims the Status window's background as well~
class Scene_Status
  def create_background
    super
    @background_sprite.tone.set(0, 0, 0, 128)
  end
end

# Overwrites Scene_End to use Save/Load/Items
class Scene_End

  def start
    super
    create_command_window
    create_invisible_formation_window
  end

  def create_command_window
    @command_window = Window_GameEnd.new

    NonCombatMenu::MENU.each do |i|
      next if i[1].to_s == "cancel"
      @command_window.set_handler(i[1], method(("command_" + i[1].to_s).to_sym))
    end

    @command_window.set_handler(:cancel,   method(:return_scene))
  end

  def create_invisible_formation_window
    @status_window = Window_MenuStatus.new(@command_window.width, 0)
    @status_window.x = (Graphics.width - @status_window.width)/2
    @status_window.hide.deactivate
  end

  def command_item
    SceneManager.call(Scene_Item)
  end
  def command_status
    SceneManager.call(Scene_Status)
  end
  def command_save
    SceneManager.call(Scene_Save)
  end
  # Defines the load command
  def command_load
    SceneManager.call(Scene_Load)
  end
  def command_nequip
    SceneManager.call(Scene_Equip)
  end
  def command_quests
    SceneManager.call(Scene_Quest)
  end
  def command_none
    SceneManager.call(Scene_End)
  end

  def command_nform
    @command_window.hide.deactivate
    @status_window.select_last
    @status_window.show.activate
    @status_window.set_handler(:ok,     method(:on_formation_ok))
    @status_window.set_handler(:cancel, method(:on_formation_cancel))
  end

  def on_formation_ok
    if @status_window.pending_index >= 0
      $game_party.swap_order(@status_window.index,
                             @status_window.pending_index)
      @status_window.pending_index = -1
      @status_window.redraw_item(@status_window.index)
    else
      @status_window.pending_index = @status_window.index
    end
    @status_window.activate
  end

  def on_formation_cancel
    if @status_window.pending_index >= 0
      @status_window.pending_index = -1
      @status_window.activate
    else
      @status_window.unselect
      @status_window.hide.deactivate
      @command_window.show.activate
    end
  end
end

# Overwrites Window_End to show tabs depending on configured values
class Window_GameEnd
  def make_command_list
    NonCombatMenu::MENU.each do |i|
      i[1].to_s == "none" ? add_command(i[0], i[1], enabled = false) : add_command(i[0], i[1])
    end
  end
end

#Call the Non-Combat Menu with event commands
class Game_Interpreter
  def command_351
    return if $game_party.in_battle
    SceneManager.call(Scene_End)
    Window_MenuCommand::init_command_position
    Fiber.yield
  end
end
Edit: see Roninator2's post for modified non-combat menu script.

Preview
G2Jas7P.png
Thank you very much!! (again) you guys are so kind!
Here is the script with the help window (description) removed. And the item window smaller. Plus you can change the numbers to position the windows or make it even smaller.
If you need that let me know, it will require more coding to have it adjustable like it was before.
Ruby:
#-------------------------------------------------------------------------------
# Non-Combat Menu v1.04a
#-- Fully customizable menu geared toward less battle-oriented games.
#-- By mjshi
#-------------------------------------------------------------------------------
# Installation: Put above Main, preferably also above other custom scripts.
#-------------------------------------------------------------------------------
# Update notes:
#- Added support for most quest log scripts.
#- Added support for separators.
# Bugfixes:
#- Fixed the gold window bug
#- Forced the ingame menu command to call the Non-Combat Menu rather than the
#  regular one.
#-------------------------------------------------------------------------------

$imported = {} if $imported.nil?
$imported["NonCombatMenu"] = true

module NonCombatMenu
  MENU = [
  #-----------------------------------------------------------------------------
  # **CONFIGURATION**
  #-----------------------------------------------------------------------------
  # What should the actual menu show?
  # Put a # in front of the ones you don't want to show, and you can reorder
  # this list to change the order in the menu.
  # **Don't remove the comma after each []!**
  #
  ['Items',   :item],
  ['Status', :status],
  ['Save', :save],
  ['Exit', :shutdown],

  # Other possible commands:
  #['Equipment', :nequip],
  #['Quest Log', :quests],
  #['Formation', :nform],
  #['Load', :load],
  #['Cancel', :cancel],
  #[' ', :none],
  # :none does nothing, so it's ideal for spacers or separators.
  ]
  #-----------------------------------------------------------------------------
  # Should the gold window be shown in the item menu?
  #
  SHOW_GOLD_WINDOW = true
  #
  # Where should it be shown (to the left? set to false. right? set to true)
  GOLD_WINDOW_ALIGN_RIGHT = false
  #
  # How wide should the window be (in pixels)? 160 is the default.
  GOLD_WINDOW_WIDTH = 160
  GOLD_WINDOW_Y = 0
  #
  CATEGORY_WINDOW_WIDTH = 424
  ITEM_WINDOW_WIDTH = 424
  ITEM_WINDOW_HEIGHT = 280
  # Base value for all windows
  BASE_WINDOW_X = 60
  #-----------------------------------------------------------------------------
  # How many tabs are you showing? (add up the # of true values below)
  #
  TABS_SHOWN = 2
  #
  # What should the item menu show?
  SHOW_CONSUMABLES = true # i.e. normal items
  SHOW_KEY_ITEMS = true
  SHOW_WEAPONS = false
  SHOW_ARMORS = false
  #
  #-----------------------------------------------------------------------------

end

#--------------------------------------------------------------------#
# !!! Beware of crashes and errors if you edit beyond this point !!! #
#--------------------------------------------------------------------#

# Overwrites the old, boring menu to use the cooler-looking Game End menu
class Scene_Map
  def call_menu
    Sound.play_ok
    SceneManager.call(Scene_End)
  end
end

# Overwrites how the tabs are shown in the Items Menu
class Window_ItemCategory

  # Changes width to allow placement of gold window.
  # If gold window doesn't exist, revert to default width.
  def window_width
    return NonCombatMenu::CATEGORY_WINDOW_WIDTH
  end

  # Changes columns to fit tabs shown
  def col_max
    return NonCombatMenu::TABS_SHOWN
  end

  # Makes a list of commands that will be shown/hidden depending on config
  def make_command_list
    add_command(Vocab::item,     :item) if NonCombatMenu::SHOW_CONSUMABLES
    add_command(Vocab::key_item, :key_item) if NonCombatMenu::SHOW_KEY_ITEMS
    add_command(Vocab::weapon,   :weapon) if NonCombatMenu::SHOW_WEAPONS
    add_command(Vocab::armor,    :armor) if NonCombatMenu::SHOW_ARMORS
  end

end

#Makes it so the user can change the gold window width
class Window_Gold
  def window_width
    return NonCombatMenu::GOLD_WINDOW_WIDTH
  end
end

# Adds a gold window to the item menu & determines placement
class Scene_Item
  def start
    super
    # Checks if the gold menu should be shown
    create_gold_window if NonCombatMenu::SHOW_GOLD_WINDOW
    create_category_window
    create_item_window
  end

  def create_category_window
    @category_window = Window_ItemCategory.new
    @category_window.viewport = @viewport
    # Set Tab Menu's X depending on Gold existing or not
    @category_window.x = NonCombatMenu::BASE_WINDOW_X
    @category_window.y = NonCombatMenu::BASE_WINDOW_X
    @category_window.y = @gold_window.height if NonCombatMenu::SHOW_GOLD_WINDOW
    @category_window.set_handler(:ok,     method(:on_category_ok))
    @category_window.set_handler(:cancel, method(:return_scene))
  end

  def create_item_window
    # Changes where the item window is displayed
    wh = NonCombatMenu::ITEM_WINDOW_HEIGHT
    ww = NonCombatMenu::ITEM_WINDOW_WIDTH
    wx = NonCombatMenu::BASE_WINDOW_X
    wy = @category_window.height + @category_window.y
    @item_window = Window_ItemList.new(wx, wy, ww, wh)
    @item_window.viewport = @viewport
    @item_window.set_handler(:ok,     method(:on_item_ok))
    @item_window.set_handler(:cancel, method(:on_item_cancel))
    @category_window.item_window = @item_window
  end

  def create_gold_window
    @gold_window = Window_Gold.new
    # Makes the gold window (if aligned right) be under any new windows
    @gold_window.viewport = @viewport
    @gold_window.y = NonCombatMenu::GOLD_WINDOW_Y
    @gold_window.x = NonCombatMenu::BASE_WINDOW_X
    @gold_window.x = Graphics.width - NonCombatMenu::GOLD_WINDOW_WIDTH -
    NonCombatMenu::BASE_WINDOW_X if NonCombatMenu::GOLD_WINDOW_ALIGN_RIGHT
  end
end

# Strips down the status menu to the very basics
class Window_Status
  def initialize(actor)
    super((Graphics.width - 300)/2, (Graphics.height - 120)/2, 300, 120)
    @actor = actor
    refresh
    activate
  end
  def refresh
    contents.clear
    draw_block2(line_height * 0)
  end
  def draw_basic_info(x, y)
    draw_actor_name(@actor, x, y + line_height * 0.5)
    draw_actor_hp(@actor, x, y + line_height * 1.5)
    draw_actor_mp(@actor, x, y + line_height * 2.5)
  end
end

# Dims the Status window's background as well~
class Scene_Status
  def create_background
    super
    @background_sprite.tone.set(0, 0, 0, 128)
  end
end

# Overwrites Scene_End to use Save/Load/Items
class Scene_End

  def start
    super
    create_command_window
    create_invisible_formation_window
  end

  def create_command_window
    @command_window = Window_GameEnd.new

    NonCombatMenu::MENU.each do |i|
      next if i[1].to_s == "cancel"
      @command_window.set_handler(i[1], method(("command_" + i[1].to_s).to_sym))
    end

    @command_window.set_handler(:cancel,   method(:return_scene))
  end

  def create_invisible_formation_window
    @status_window = Window_MenuStatus.new(@command_window.width, 0)
    @status_window.x = (Graphics.width - @status_window.width)/2
    @status_window.hide.deactivate
  end

  def command_item
    SceneManager.call(Scene_Item)
  end
  def command_status
    SceneManager.call(Scene_Status)
  end
  def command_save
    SceneManager.call(Scene_Save)
  end
  # Defines the load command
  def command_load
    SceneManager.call(Scene_Load)
  end
  def command_nequip
    SceneManager.call(Scene_Equip)
  end
  def command_quests
    SceneManager.call(Scene_Quest)
  end
  def command_none
    SceneManager.call(Scene_End)
  end

  def command_nform
    @command_window.hide.deactivate
    @status_window.select_last
    @status_window.show.activate
    @status_window.set_handler(:ok,     method(:on_formation_ok))
    @status_window.set_handler(:cancel, method(:on_formation_cancel))
  end

  def on_formation_ok
    if @status_window.pending_index >= 0
      $game_party.swap_order(@status_window.index,
                             @status_window.pending_index)
      @status_window.pending_index = -1
      @status_window.redraw_item(@status_window.index)
    else
      @status_window.pending_index = @status_window.index
    end
    @status_window.activate
  end

  def on_formation_cancel
    if @status_window.pending_index >= 0
      @status_window.pending_index = -1
      @status_window.activate
    else
      @status_window.unselect
      @status_window.hide.deactivate
      @command_window.show.activate
    end
  end
end

# Overwrites Window_End to show tabs depending on configured values
class Window_GameEnd
  def make_command_list
    NonCombatMenu::MENU.each do |i|
      i[1].to_s == "none" ? add_command(i[0], i[1], enabled = false) : add_command(i[0], i[1])
    end
  end
end

#Call the Non-Combat Menu with event commands
class Game_Interpreter
  def command_351
    return if $game_party.in_battle
    SceneManager.call(Scene_End)
    Window_MenuCommand::init_command_position
    Fiber.yield
  end
end
Thank you very much!!!

Original thread: https://forums.rpgmakerweb.com/threads/solved-height-and-width-options-for-non-combat-menu-script.130877/