Example #1
0
float UI_GetCvarFloat( const char *name, float def )
{
	cvar_t *cvar = uii.Cvar_Find( name );

	if( !cvar )
	{
		return def;
	}

	return cvar->value;
}
Example #2
0
int UI_GetCvarInt( const char *name, int def )
{
	cvar_t *cvar = uii.Cvar_Find( name );

	if( !cvar )
	{
		return def;
	}

	return cvar->integer;
}
Example #3
0
cvar_t *UI_FindCvar( const char *cvar )
{
	return uii.Cvar_Find( cvar );
}