v1km4n
Account Details
SteamID64 76561198113320697
SteamID3 [U:1:153054969]
SteamID32 STEAM_0:1:76527484
Country Russian Federation
Signed Up March 16, 2016
Last Posted July 11, 2020 at 9:30 AM
Posts 1 (0 per day)
Game Settings
In-game Sensitivity 1.8
Windows Sensitivity 6/11
Raw Input 1
DPI
800
Resolution
1920x1080
Refresh Rate
240hz
Hardware Peripherals
Mouse g403
Keyboard ikbc c87
Mousepad qck+
Headphones major ii
Monitor xf250qa
#6425 HUD editing: short questions, quick answers in Customization

Is it possible to bind buttons in sliding menu (the one that appears when you click the top right button) to do custom things?

For example, I made a new button and I wanted it to connect to a community server, but the button simply did not do anything.

Here's the MvM button code from this menu:

"MvMEntry"
	{
		"ControlName"	"CPlayListEntry"
		"fieldName"		"MvMEntry"
		"xpos"			"0"
		"ypos"			"103"
		"tall"			"45"
		"wide"			"255"
		"proportionaltoparent"	"1"

		"image_name"		"main_menu/main_menu_button_mvm"
		"button_token"		"#MMenu_PlayList_MvM_Button"
		"button_command"	"play_mvm"
		"desc_token"		"#MMenu_PlayList_MvM_Desc"
		"matchgroup"		"1" // k_eTFMatchGroup_MvM_MannUp

		if_event
		{
			"ypos"			"153"
		}
	}

This is what I added:

"AdditionalButtonTHG"
	{
		"ControlName"	"CPlayListEntry"
		"fieldName"		"AdditionalButtonTHG"
		"xpos"			"0"
		"ypos"			"153"
		"tall"			"45"
		"wide"			"255"
		"proportionaltoparent"	"1"

		"image_name"		"casual/gametype_arena"
		"button_token"		"#MMenu_PlayList_THG_Button"
		"button_command"	"engine connect 87.98.254.85:27015"
		"desc_token"		"#MMenu_PlayList_THG_Desc"
		//"matchgroup"		"0" // k_eTFMatchGroup_MvM_MannUp

		if_event
		{
			"ypos"			"153"
		}
	}

Also I noticed that the same buttons (for example, create server button) would have different commands in main menu and in this sliding panel

Sliding panel:

"button_command"	"create_server"

Main menu:

"command" "OpenCreateMultiplayerGameDialog"

So it there any way to make normal commands like connect, bind, etc work in this panel? Thanks in advance

posted about 3 years ago