XenThePybroCardfightGamerHow 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
Record is "engine record"
Please use the built-in Demo Support Recording instead with a 'engine ds_record'!
For the buttons you can simply #base this section of my file into your MainMenuOverride and add the command stuff to your GameMenu.res
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"
Please don't do the mat_antialias toggle, restarting your game would be better and as 'hud fix', mine is a simple: 'engine record hudfix;stop
@Rotten_Mind: HudAmmoWeapons.res, HudPlayerHealth.res and HudMedicCharge.res would be the files you need to modify, use 'c-' values for centered positioning for elements inside those files after making the elements for health/ammo/charge (HudWeaponAmmo, HudPlayerStatus & HudMedicCharge respectively) in hudlayout.res wide and tall f0.