-
-
Notifications
You must be signed in to change notification settings - Fork 90
Finding Elements
-
sv_cheats 1
enabled server - Alternatively, you can use this alias in any server:
alias vt "incrementvar vgui_drawtree 0 1 1"
- Then, just type
vt
in console and it'll open the drawtree
- Then, just type
vgui_drawtree
is a very useful tool for hud developers to use to track down elements so you can modify them.
Note
You'll likely be able to find a majority of what you'd need by searching through these two links:
Knowing how to use drawtree is still very helpful, however.
Open drawtree by typing vgui_drawtree 1
in console (requires sv_cheats 1
to be set, unless using the alias above)
Important
To see the full size of an image in this guide, right click on the image > Open image in new tab
Console key is ~
by default
Check Highlight Selected
and then go down the tree until you find the element you want to modify highlighted by the red box.
It is worth noting that some elements can still be tricky to track down. For instance, TargetDataLabel
is shown as being under CMainTargetID
, but the file itself is in ..\resource\ui\targetid.res
. Just be prepared to have to think outside of the box to find the exact element you're trying to edit.
Use Notepad++ (or similar program) to search your hud's directory for the element.
Note that this will only work if the directory you're searching contains all of the default hud's files
Find the file listed in the search results and modify it as needed.
- ⭐ Popular topics
- ⚡ Quick customizations
- Home
- Installation
- HUD Troubleshooting
- Downloading Older Versions
- Translating budhud
- FAQs
- Credits
- Known Issues
- Lore Zone
- budhud Dev Reference
- 🔗 Screenshots
- 🔗 Discord
- 🔗 huds.tf
- 🔗 Steam
- ⭐⚡ 3D Player Class Model
- ⭐⚡ Closed Captions
- ⭐⚡ YouTube/Twitch #User HUDs
- ⭐ Crosshairs
- ⭐ Modifying Colors
- ⚡ Speedometer
- ⚡ Chat Location
- ⚡ Streamer HUD
- ⚡ Transparent Viewmodels
- Damage Numbers