Hopefully I've posted this in the right place. If not, can someone please move it or tell me where would be more appropriate?
I'm writing a replacement main menu for TF2, and would like to replicate some functionality that's already built-in.
In MainMenuOverride.res, there is this panel:
- Code: Select all
"NewUserForumsButton"
{
"ControlName" "CTFImageButton"
"fieldName" "NewUserForumsButton"
"xpos" "c15"
"ypos" "437"
"zpos" "3"
"wide" "30"
"tall" "25"
"autoResize" "0"
"pinCorner" "3"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" ""
"font" "HudFontSmallBold"
"textAlignment" "center"
"dulltext" "0"
"brighttext" "0"
"default" "1"
"Command" "view_newuser_forums"
"sound_depressed" "UI/buttonclick.wav"
"sound_released" "UI/buttonclickrelease.wav"
"border_default" "MainMenuSubButtonBorder"
"image_drawcolor" "235 226 202 255"
"SubImage"
{
"ControlName" "ImagePanel"
"fieldName" "SubImage"
"xpos" "5"
"ypos" "6"
"zpos" "1"
"wide" "15"
"tall" "15"
"visible" "1"
"enabled" "1"
"image" "glyph_forums"
"scaleImage" "1"
}
}
For anyone unfamiliar with TF2, this is a button on the menu that, when clicked, opens the Steam cloud browser and directs it to a SPUF forum.
The important part is this one:
- Code: Select all
"Command" "view_newuser_forums"
I'm quite comfortable with messing around with the .res files but it seems this command goes to somewhere else in the .gcf.
So, I would like to ask, how can I do exactly the same thing with my button and a different URL? Plus, does anyone know where to find the location of the "view_newuser_forums" command?

