Custom Menu Screen 2

From Valve Developer Community
Revision as of 08:51, 21 January 2024 by Thunder4ik (talk | contribs) (→‎top: clean up, added orphan, deadend tags)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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
Icon-callout-orphan.png
This article is an orphan, meaning that few or no articles link to it (since January 2024). You can help by adding links to this article from other relevant articles.

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"
	}
}