Custom Menu Screen 2

From Valve Developer Community
Jump to: navigation, search
Wikipedia - Letter.png
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
Dead End - Icon.png
This article has no links to other VDC articles. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024

C:/Steam/SteamApps/SourceMods/ModName/Resource/GameMenu.res

This will change the game menu of the mod/game with "text".

THIS IS ONLY AN EXAMPLE. Contains both single player and multi-player options.

"GameMenu"
{
//	"1"
//	{
//		"label" "Toggle Console"
//		"command" "engine toggleconsole"
//		"InGameOrder" "10"
//		"notsteam" "1"
//		"ConsoleOnly" "0"
//		"notsingle" "0"
//		"notmulti" "0"
//		"OnlyInGame" "0"
//	}

//		"label"	"#GameUI_LoadCommentary"
//		"command" "OpenLoadSingleplayerCommentaryDialog"

//		"label" "#GameUI_GameMenu_Achievements"
//		"command" "OpenAchievementsDialog"

//		"label" "#GameUI_Controller"
//		"command" "OpenControllerDialog"

	"1"
	{
		"label" "#GameUI_GameMenu_ResumeGame"
		"command" "ResumeGame"
		"OnlyInGame" "1"
	}
	"2"
	{
		"label" "#GameUI_GameMenu_Disconnect"
		"command" "Disconnect"
		"OnlyInGame" "1"
	}
	"3"
	{
		"label" "#GameUI_GameMenu_PlayerList"
		"command" "OpenPlayerListDialog"
		"OnlyInGame" "1"
		"notsingle" "1"
	}
	"4"
	{
		"label" ""
		"command" ""
		"OnlyInGame" "1"
	}
	"5"
	{
		"label" "#GameUI_GameMenu_NewGame"
		"command" "OpenNewGameDialog"
		"notmulti" "1"
	}
	"6"
	{
		"label" "#GameUI_GameMenu_LoadGame"
		"command" "OpenLoadGameDialog"
		"notmulti" "1"
	}
	"7"
	{
		"label" "#GameUI_GameMenu_SaveGame"
		"command" "OpenSaveGameDialog"
		"notmulti" "1"
		"OnlyInGame" "1"
	}
	"8"
	{
		"label" "#GameUI_GameMenu_FindServers"
		"command" "OpenServerBrowser"
		"notsingle" "1"
	}
	"9"
	{
		"label" "#GameUI_GameMenu_CreateServer"
		"command" "OpenCreateMultiplayerGameDialog"
		"notsingle" "1"
	}

//	"11"
//	{
//		"name" "LoadDemo"
//		"label" "#GameUI_GameMenu_PlayDemo"
//		"command" "OpenLoadDemoDialog"
//	}
	"12"
	{
		"label" ""
		"command" ""
		"notsingle" "1"
	}
	"13"
	{
		"label" "#GameUI_GameMenu_ChangeGame"
		"command" "OpenChangeGameDialog"
		"notsteam" "1"
		"notsingle" "1"
		"notmulti" "1"
	}

	"14" // "10"
	{
		"label" "#GameUI_GameMenu_Options"
		"command" "OpenOptionsDialog"
	}
	"15" // "11"
	{
		"label" "#GameUI_GameMenu_Quit"
		"command" "Quit"
	}
}