DMenu:AddCVar
Panel DMenu:AddCVar( string strText, string convar, string on, string off, function funcFunction = nil )
Description
Creates a DMenuOptionCVar and adds it as an option into the menu. Checking and unchecking the option will alter the given console variable's value.
Arguments
5 function funcFunction = nil
If set, the function will be called every time the option is pressed/clicked/selected.
Function argument(s):
Returns
Page views: 5,306
Updated: This Year
Updated: This Year