Custom Menu Screen 2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎top: clean up, added orphan, deadend tags)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Multiple issues|
{{Dead end|date=January 2024}}
{{Orphan|date=January 2024}}
}}
C:/Steam/SteamApps/SourceMods/ModName/Resource/GameMenu.res
C:/Steam/SteamApps/SourceMods/ModName/Resource/GameMenu.res


Line 6: Line 11:
Contains both single player and multi-player options.
Contains both single player and multi-player options.


<CODE>
<pre>
 
"GameMenu"
<nowiki>"GameMenu"
{
{
// "1"
// "1"
Line 87: Line 91:
"notsingle" "1"
"notsingle" "1"
}
}


// "11"
// "11"
Line 110: Line 112:
"notmulti" "1"
"notmulti" "1"
}
}


"14" // "10"
"14" // "10"
Line 124: Line 124:
}
}
}
}
</nowiki>
</pre>
</CODE>
 
[[Category:Programming]]

Latest revision as of 08:51, 21 January 2024

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 Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon 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"
	}
}