thatMisterFoxx
Account Details
SteamID64 76561198043718258
SteamID3 [U:1:83452530]
SteamID32 STEAM_0:0:41726265
Country United States
Signed Up October 12, 2019
Last Posted October 13, 2019 at 11:03 AM
Posts 2 (0 per day)
Game Settings
In-game Sensitivity
Windows Sensitivity
Raw Input  
DPI
 
Resolution
 
Refresh Rate
 
Hardware Peripherals
Mouse  
Keyboard  
Mousepad  
Headphones  
Monitor  
#6138 HUD editing: short questions, quick answers in Customization
Octalblock
To add text for the purpose as a subtitle, you can add an element inside of another to have a "group".
Keep in mind, the main menu handles "groups" differently than other elements.

I've tried something similar, but unfortunately this didn't work. The subtitle doesn't even show up in the vgui tree.

posted about 5 years ago
#6136 HUD editing: short questions, quick answers in Customization

I currently have a main menu button coded as such:

"TFItems"
{
"ControlName" "CExButton"
"fieldName" "TFItems"
"labeltext" "ITEMS"
"font" "HudFontMediumSmallSecondary"
"textAlignment" "north-west"
"xpos" "c-350"
"ypos" "c-108"
"zpos" "4"
"wide" "373"
"tall" "54"
"autoResize" "0"
"pinCorner" "3"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" ""
"textAlignment" "west"
"textinsetx" "5"
"textinsety" "5"
"use_proportional_insets" "1"
"dulltext" "0"
"brighttext" "0"
"default" "1"
"Command" "engine open_charinfo"

"defaultFgColor_override" "TanLight"
"armedFGColor_override" "TanLight"
"armedBgColor_override" "146 63 4 255"
"defaultBgColor_override" "59 57 53 255"

"sound_depressed" "UI/buttonclick.wav"
"sound_released" "UI/buttonclickrelease.wav"
"sound_armed" "UI/buttonclickrelease.wav"
}

How can I add a subtitle with a different font and size of the main "ITEMS" labeltext? looking for something like this:

https://imgur.com/a/WIb0nxU

Thanks!

posted about 5 years ago