public static T DrawEnums<T>(T val){ return (T)(object)EditorGUILayout.EnumPopup((Enum)(object)val);}