Custom Menu Screen 2

From Valve Developer Community
Jump to: navigation, search

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