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.
It will have only one argument: Panel pnl - The created DMenuOptionCVar
Returns
Page views: 4,482
Updated: This Year
Updated: This Year