public static IPredefinedStyleBuilder WithTexture(this IPredefinedStyleBuilder style, IStyleKey <IUITexture> key, string value) { style.SetValue(key, style.ContentLoader.LoadTexture(value)); return(style); }
public static IPredefinedStyleBuilder WithValue <T>(this IPredefinedStyleBuilder style, IStyleKey <T> key, T value) { style.SetValue(key, value); return(style); }
public static IPredefinedStyleBuilder WithBox(this IPredefinedStyleBuilder style, IStyleKey <IBoxTexture> key, string value, Insets insets, Insets margin) { style.SetValue(key, style.ContentLoader.LoadTexture(value, insets, margin)); return(style); }