Get rid of menu options. Created 4 years ago2020-03-09 23:27:33 UTC by abbadon abbadon

Created 4 years ago2020-03-09 23:27:33 UTC by abbadon abbadon

Posted 4 years ago2020-03-09 23:27:33 UTC Post #343879
Hi again.

I am finishing the 2D part of the mod, and I want to get rid of the CUSTOM GAME and MANUAL options of the main menu. I got rid of the explaining text, but I don´t know what file to edit so I get rid of those two options.

Got it. Please close thread. Thanks aniway :)
Posted 4 years ago2020-03-15 15:25:22 UTC Post #343910
For the button text for WON/Xash3D, you'd need to replace their images in the gfx directory with completely black alternatives. They would still be clickable though. As for removing them completely, I don't have a clue. I guess there's some code somewhere. Same for the Steam menu.
monster_urby monster_urbyGoldsourcerer
Posted 4 years ago2020-03-15 15:33:50 UTC Post #343911
Yep!, that´s what I did :P Pity that my lack of coding skills are keeping me from getting a true solution... :( Thanks UrbaNebula!!! :crowbar:
Posted 4 years ago2020-03-29 07:11:48 UTC Post #343987
I thought there were text files somewhere in gfx/ that controlled this? Nothing in the Steam version that I can see...
Posted 3 years ago2020-03-29 16:52:46 UTC Post #343990
You can change this stuff in the .res files in the resource directory.
Posted 3 years ago2020-03-30 17:55:15 UTC Post #343993
It's at resource/GameMenu.res. Not sure about the WON version, though.

Original file is:
"GameMenu"
{
	"1"
	{
		"label" "#GameUI_GameMenu_ResumeGame"
		"command" "ResumeGame"
		"OnlyInGame" "1"
	}
	"2"
	{
		"label" "#GameUI_GameMenu_Disconnect"
		"command" "Disconnect"
		"OnlyInGame" "1"
		"notsingle" "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" ""
		"command" ""
		"notmulti" "1"
	}
	"9"
	{
		"label" "#GameUI_GameMenu_FindServers"
		"command" "OpenServerBrowser"
		"notsingle" "1"
	}
	"10"
	{
		"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"
	{
		"label" "#GameUI_GameMenu_Options"
		"command" "OpenOptionsDialog"
	}
	"15"
	{
		"label" "#GameUI_GameMenu_Quit"
		"command" "Quit"
	}
}
MrMystery MrMysteryBanned
Posted 3 years ago2020-04-01 08:28:33 UTC Post #343996
Hi, that looks to be source, aniway I got it "done", more or les, because even if you cannot see the letters you can still " select" those options. But this solution do the work.
Posted 3 years ago2020-04-05 05:33:04 UTC Post #344014
It's GoldSource - just the back-ported VGUI stuff from the Steam version.
Posted 3 years ago2020-04-05 15:08:57 UTC Post #344020
Will take a look at that then, as son as I finish the quarantine. ;)
You must be logged in to post a response.