public static bool IsSet(TweakableUIFlags flag, ITweakerObject tweakable) { bool result = false; TweakableUIFlagsAttribute customAttribute = tweakable.GetCustomAttribute <TweakableUIFlagsAttribute>(); if (customAttribute != null) { result = (customAttribute.Flags & flag) == flag; } return(result); }
public TweakableUIFlagsAttribute(TweakableUIFlags flags) { Flags = flags; }