CardfightGamerHow do I add a button to the main menu? I wanna add a "Record" button, a "Sound Restart" button and a "Fix hud" button like the one Wiethoofd has in his hud
Your files are resource/ui/mainmenuoverride.res and resource/gamemenu.res
Gamemenu controls the commands, labels and other special things such as if they apear ingame or not, it should not be too difficult to work out, just copy + paste a pre existing button
For mainmenuoverride cntrl f for findagamebutton and copy that one and change the propeties you want
The command for sound restart in gamemenu is "engine snd_restart"
Record is "engine record"
And fix hud would be "engine hud_reloadscheme" but if you want it to also reload the main menus you would need to change the antialiasing and disable vgui chacheing so something like "engine vgui_cache_res_files 0; incrementvar mat_antialias 1 2 1; hud_reloadscheme; vgui_cache_res_files 1"