VGUI2 Command Registration

Dante

Newbie
Joined
Nov 10, 2003
Messages
145
Reaction score
0
Hello, quick question.

in GameMenu.res, there is the following definition:

Code:
	"5"
	{
		"label" "#GameUI_GameMenu_NewGame"
		"command" "OpenNewGameDialog"
		"notmulti" "1"
	}

Now, what i want to do is create new commands for that for my own VGUI, the problems i am having, is that the VGUI2 documentation on the valve-erc does not get into that at all.

any help would be great.

Thanks
 
HA, go figure...

call an engine command, (ex. below),
syntax "engine <command> <params>"


Code:
         "command" "engine map test"

figured i would post that so peeps would know
 
ehm

you can do it without engine, but then you've got to implent your own onCommand(const char *command) method in the class that handles your menu (it returns void). args you get with engine->Cmd_Argc (count) and engine->Cmd_Argv (string).
 
Back
Top