Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

noobquire/sourcemenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

sourcemenu

A simple text menu user interface compitable with any Source engine game including HL2, TF2 and CS:GO

Installation

  1. Download and extract menu files
  2. Go to Steam/steamapps/common/[game name]/[game root folder]/cfg
    For Team Fortress 2 it is Steam/steamapps/common/Team Fortress 2/tf/cfg
  3. Copy 'menu' folder to your 'cfg' folder
  4. In your cfg folder, create or modify autoexec.cfg. In it, put the following command:
    exec menu/core/loadmenu
  5. Go to menu/numbinds.cfg and paste any Numpad bindings you already have there. They will be executed when you close the menu.
  6. While playing, press Num Delete to open/close menu and Numpad numbers to navigate

Modification

To create new page, go to menu/templates/menupage.cfg and copy it's contents. Inside your 'menu' folder create a new .cfg file and paste the text from menupage.cfg in it. Fill option aliases with their functions by adding commands or alias names in them. For example:
alias "op1" "toggle viewmodel_fov 70 85 100; btn"
Then go down to visible part (in it each line starts with 'echo' command) and add a short description to this option's function like this:
echo [1] - Toggle viewmodel_fov
After that edit alias called lastapge. It opens last visited page when you re-open your menu. It must contain an exec command to execute current page from path starting from cfg folder. For example, you made file .../cfg/menu/newpage.cfg, so lastpage alias will look like:
alias lastpage "exec menu/newpage"
For better visualisation of where is the current page in page tree, edit tree viewer in visible part:
echo ____________________________
echo ""
echo ../menu/newpage
echo ____________________________

Want to add your own scripts to menu? Either paste them in the beginning of the page where you want to execute them or execute once on game load from menu/core/loadmenu.cfg file with 'exec [pathtoscript]' command.

About

Simplistic text User Interface for your Source engine scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published