Custom made Menu

Hi.

Me and a couple others are currently making a new game and are in dire need of someone who can make a Menu that works.

This is a very crudely drawn example. Friends button will take the player to the Item tab directly (it's the only tab), while Talk will call upon an Common Event. The "End" is just for :game_end command.

ExampleTitle.png

I tried making it myself with Yanfly's Menu Script, but I found myself not really knowing what I was doing and couldn't get things as I wanted. Since the game is in the Horror genre, we don't want to have any status or other things that are out of place (like HP, MP, TP counters etc.) and the biggest culprit was the "Friends" button. I managed to find how to remove the other tabs (Key Items, Weapons and Armour), but pressing Friends from the menu only to get to a new window with a new "Friends" you have to press, it was just wrong.

Thanks for reading.
Here you are. The only thing I did that was a bit different than what you requested was to go ahead and make the "End" command just shut down the game (since it was easier to do it that way). But still, let me know if you want something changed.

Spoiler
Code:
#==============================================================================# ** Hollow Custom Menu#============================================================================== module HCM  COMMAND_VOCAB = "Talk"        # Vocab to be shown in menu.  COMMON_EVENT_ID = 1           # ID of common event to be called.end # HCM #==============================================================================#        -------------------- ** END SETTINGS ** --------------------#============================================================================== #==============================================================================# ** Window_ItemCategory#============================================================================== class Window_ItemCategory < Window_HorzCommand  #--------------------------------------------------------------------------  # * Get Number of Lines to Show  #--------------------------------------------------------------------------  def visible_line_number    return 0  end  #--------------------------------------------------------------------------  # * Get Window Width  #--------------------------------------------------------------------------  def window_width    return 0  endend # Window_ItemCategory #==============================================================================# ** Window_GameEnd#============================================================================== class Window_GameEnd < Window_Command  #--------------------------------------------------------------------------  # * Get Number of Lines to Show  #--------------------------------------------------------------------------  def visible_line_number    return 1  end  #--------------------------------------------------------------------------  # * Get Digit Count  #--------------------------------------------------------------------------  def col_max    return 3  end  #--------------------------------------------------------------------------  # * Get Spacing for Items Arranged Side by Side  #--------------------------------------------------------------------------  def spacing    return 8  end  #--------------------------------------------------------------------------  # * Calculate Width of Window Contents  #--------------------------------------------------------------------------  def contents_width    (item_width + spacing) * item_max - spacing  end  #--------------------------------------------------------------------------  # * Calculate Height of Window Contents  #--------------------------------------------------------------------------  def contents_height    item_height  end  #--------------------------------------------------------------------------  # * Get Window Width  #--------------------------------------------------------------------------  def window_width    return 455  end  #--------------------------------------------------------------------------  # * Update Window Position  #--------------------------------------------------------------------------  def update_placement    self.x = (Graphics.width - width) / 2    self.y = Graphics.height - height - 10  end  #--------------------------------------------------------------------------  # * Create Command List  #--------------------------------------------------------------------------  def make_command_list    add_command(Vocab::item, :item)    add_command(HCM::COMMAND_VOCAB, :talk)    add_command(Vocab::shutdown, :shutdown)  end  #--------------------------------------------------------------------------  # * Get Leading Digits  #--------------------------------------------------------------------------  def top_col    ox / (item_width + spacing)  end  #--------------------------------------------------------------------------  # * Set Leading Digits  #--------------------------------------------------------------------------  def top_col=(col)    col = 0 if col < 0    col = col_max - 1 if col > col_max - 1    self.ox = col * (item_width + spacing)  end  #--------------------------------------------------------------------------  # * Get Trailing Digits  #--------------------------------------------------------------------------  def bottom_col    top_col + col_max - 1  end  #--------------------------------------------------------------------------  # * Set Trailing Digits  #--------------------------------------------------------------------------  def bottom_col=(col)    self.top_col = col - (col_max - 1)  end  #--------------------------------------------------------------------------  # * Scroll Cursor to Position Within Screen  #--------------------------------------------------------------------------  def ensure_cursor_visible    self.top_col = index if index < top_col    self.bottom_col = index if index > bottom_col  end  #--------------------------------------------------------------------------  # * Get Rectangle for Displaying Items  #--------------------------------------------------------------------------  def item_rect(index)    rect = super    rect.x = index * (item_width + spacing)    rect.y = 0    rect  end  #--------------------------------------------------------------------------  # * Get Alignment  #--------------------------------------------------------------------------  def alignment    return 1  end  #--------------------------------------------------------------------------  # * Move Cursor Down  #--------------------------------------------------------------------------  def cursor_down(wrap = false)  end  #--------------------------------------------------------------------------  # * Move Cursor Up  #--------------------------------------------------------------------------  def cursor_up(wrap = false)  end  #--------------------------------------------------------------------------  # * Move Cursor One Page Down  #--------------------------------------------------------------------------  def cursor_pagedown  end  #--------------------------------------------------------------------------  # * Move Cursor One Page Up  #--------------------------------------------------------------------------  def cursor_pageup  endend # Window_GameEnd #==============================================================================# ** Scene_Map#============================================================================== class Scene_Map < Scene_Base  #--------------------------------------------------------------------------  # * Call Menu Screen  #--------------------------------------------------------------------------  def call_menu    Sound.play_ok    SceneManager.call(Scene_End)  endend # Scene_Map #==============================================================================# ** Scene_Item#============================================================================== class Scene_Item < Scene_ItemBase  #--------------------------------------------------------------------------  # * Alias  #--------------------------------------------------------------------------  alias hollow_custom_menu_scene_item_start start  #--------------------------------------------------------------------------  # * Start Processing  #--------------------------------------------------------------------------  def start    hollow_custom_menu_scene_item_start    @item_window.activate    @item_window.select_last  end  #--------------------------------------------------------------------------  # * Create Item Window  #--------------------------------------------------------------------------  def create_item_window    wy = @help_window.height    wh = Graphics.height - @help_window.height    @item_window = Window_ItemList.new(0, wy, Graphics.width, wh)    @item_window.viewport = @viewport    @item_window.help_window = @help_window    @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  #--------------------------------------------------------------------------  # * Item [Cancel]  #--------------------------------------------------------------------------  def on_item_cancel    @item_window.unselect    return_scene  endend # Scene_Item #==============================================================================# ** Scene_End#============================================================================== class Scene_End < Scene_MenuBase  #--------------------------------------------------------------------------  # * Create Command Window  #--------------------------------------------------------------------------  def create_command_window    @command_window = Window_GameEnd.new    @command_window.set_handler(:item, method(:command_item))    @command_window.set_handler(:talk, method(:command_talk))    @command_window.set_handler(:game_end, method(:command_shutdown))  end  #--------------------------------------------------------------------------  # * [Item] Command  #--------------------------------------------------------------------------  def command_item    SceneManager.call(Scene_Item)  end  #--------------------------------------------------------------------------  # * [Talk] Command  #--------------------------------------------------------------------------  def command_talk    return_scene    $game_temp.reserve_common_event(HCM::COMMON_EVENT_ID)  endend # Scene_End
Hey thanks man, works great. Actually got 3 questions if you don't mind:

The End button doesn't seem to do anything, or am I missing something?

You can't leave the Menu by pressing Esc, or is it just for me?

Is it possible to hide the window so we could use our own custom graphic as the border/window? (This one is not as important as the other two)
Ah, the End command thing was the fault of a typo, but it's fixed and I set the window be invisible:

Spoiler
#==============================================================================# ** Hollow Custom Menu#============================================================================== module HCM  COMMAND_VOCAB = "Talk"        # Vocab to be shown in menu.  COMMON_EVENT_ID = 1           # ID of common event to be called.end # HCM #==============================================================================#        -------------------- ** END SETTINGS ** --------------------#============================================================================== #==============================================================================# ** Window_ItemCategory#============================================================================== class Window_ItemCategory < Window_HorzCommand  #--------------------------------------------------------------------------  # * Get Number of Lines to Show  #--------------------------------------------------------------------------  def visible_line_number    return 0  end  #--------------------------------------------------------------------------  # * Get Window Width  #--------------------------------------------------------------------------  def window_width    return 0  endend # Window_ItemCategory #==============================================================================# ** Window_GameEnd#============================================================================== class Window_GameEnd < Window_Command  #--------------------------------------------------------------------------  # * Get Number of Lines to Show  #--------------------------------------------------------------------------  def visible_line_number    return 1  end  #--------------------------------------------------------------------------  # * Get Digit Count  #--------------------------------------------------------------------------  def col_max    return 3  end  #--------------------------------------------------------------------------  # * Get Spacing for Items Arranged Side by Side  #--------------------------------------------------------------------------  def spacing    return 8  end  #--------------------------------------------------------------------------  # * Calculate Width of Window Contents  #--------------------------------------------------------------------------  def contents_width    (item_width + spacing) * item_max - spacing  end  #--------------------------------------------------------------------------  # * Calculate Height of Window Contents  #--------------------------------------------------------------------------  def contents_height    item_height  end  #--------------------------------------------------------------------------  # * Get Window Width  #--------------------------------------------------------------------------  def window_width    return 455  end  #--------------------------------------------------------------------------  # * Update Window Position  #--------------------------------------------------------------------------  def update_placement    self.x = (Graphics.width - width) / 2    self.y = Graphics.height - height - 10    self.opacity = 0  end  #--------------------------------------------------------------------------  # * Create Command List  #--------------------------------------------------------------------------  def make_command_list    add_command(Vocab::item, :item)    add_command(HCM::COMMAND_VOCAB, :talk)    add_command(Vocab::shutdown, :shutdown)  end  #--------------------------------------------------------------------------  # * Get Leading Digits  #--------------------------------------------------------------------------  def top_col    ox / (item_width + spacing)  end  #--------------------------------------------------------------------------  # * Set Leading Digits  #--------------------------------------------------------------------------  def top_col=(col)    col = 0 if col < 0    col = col_max - 1 if col > col_max - 1    self.ox = col * (item_width + spacing)  end  #--------------------------------------------------------------------------  # * Get Trailing Digits  #--------------------------------------------------------------------------  def bottom_col    top_col + col_max - 1  end  #--------------------------------------------------------------------------  # * Set Trailing Digits  #--------------------------------------------------------------------------  def bottom_col=(col)    self.top_col = col - (col_max - 1)  end  #--------------------------------------------------------------------------  # * Scroll Cursor to Position Within Screen  #--------------------------------------------------------------------------  def ensure_cursor_visible    self.top_col = index if index < top_col    self.bottom_col = index if index > bottom_col  end  #--------------------------------------------------------------------------  # * Get Rectangle for Displaying Items  #--------------------------------------------------------------------------  def item_rect(index)    rect = super    rect.x = index * (item_width + spacing)    rect.y = 0    rect  end  #--------------------------------------------------------------------------  # * Get Alignment  #--------------------------------------------------------------------------  def alignment    return 1  end  #--------------------------------------------------------------------------  # * Move Cursor Down  #--------------------------------------------------------------------------  def cursor_down(wrap = false)  end  #--------------------------------------------------------------------------  # * Move Cursor Up  #--------------------------------------------------------------------------  def cursor_up(wrap = false)  end  #--------------------------------------------------------------------------  # * Move Cursor One Page Down  #--------------------------------------------------------------------------  def cursor_pagedown  end  #--------------------------------------------------------------------------  # * Move Cursor One Page Up  #--------------------------------------------------------------------------  def cursor_pageup  endend # Window_GameEnd #==============================================================================# ** Scene_Map#============================================================================== class Scene_Map < Scene_Base  #--------------------------------------------------------------------------  # * Call Menu Screen  #--------------------------------------------------------------------------  def call_menu    Sound.play_ok    SceneManager.call(Scene_End)  endend # Scene_Map #==============================================================================# ** Scene_Item#============================================================================== class Scene_Item < Scene_ItemBase  #--------------------------------------------------------------------------  # * Alias  #--------------------------------------------------------------------------  alias hollow_custom_menu_scene_item_start start  #--------------------------------------------------------------------------  # * Start Processing  #--------------------------------------------------------------------------  def start    hollow_custom_menu_scene_item_start    @item_window.activate    @item_window.select_last  end  #--------------------------------------------------------------------------  # * Create Item Window  #--------------------------------------------------------------------------  def create_item_window    wy = @help_window.height    wh = Graphics.height - @help_window.height    @item_window = Window_ItemList.new(0, wy, Graphics.width, wh)    @item_window.viewport = @viewport    @item_window.help_window = @help_window    @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  #--------------------------------------------------------------------------  # * Item [Cancel]  #--------------------------------------------------------------------------  def on_item_cancel    @item_window.unselect    return_scene  endend # Scene_Item #==============================================================================# ** Scene_End#============================================================================== class Scene_End < Scene_MenuBase  #--------------------------------------------------------------------------  # * Create Command Window  #--------------------------------------------------------------------------  def create_command_window    @command_window = Window_GameEnd.new    @command_window.set_handler🙂item, method🙂command_item))    @command_window.set_handler🙂talk, method🙂command_talk))    @command_window.set_handler🙂shutdown, method🙂command_shutdown))  end  #--------------------------------------------------------------------------  # * [Item] Command  #--------------------------------------------------------------------------  def command_item    SceneManager.call(Scene_Item)  end  #--------------------------------------------------------------------------  # * [Talk] Command  #--------------------------------------------------------------------------  def command_talk    return_scene    $game_temp.reserve_common_event(HCM::COMMON_EVENT_ID)  endend # Scene_End
As for not being able to leave with Esc...I really can't see why it's not working.  🤔  I admit I'm a bit stumped. It might be worth it to have someone else take a look at it--a second pair of eyes may be able to see what I can't.
I compared the "Create Command Window" from your script with that of another menu script and found that the line '@command_window.set_handler🙂cancel,   method🙂return_scene))' was missing, so I added that and it seems to work great.

Thanks a lot of your help. 😀
Ahhh, ok. I left it out 'cause I thought it wasn't necessary, but apparently that's untrue. I'm glad you've got it working though!  🙂

Original thread: https://forums.rpgmakerweb.com/threads/custom-made-menu.38490/