Exemple #1
0
 public static IPredefinedStyleBuilder WithTexture(this IPredefinedStyleBuilder style, IStyleKey <IUITexture> key, string value)
 {
     style.SetValue(key, style.ContentLoader.LoadTexture(value));
     return(style);
 }
Exemple #2
0
 public static IPredefinedStyleBuilder WithValue <T>(this IPredefinedStyleBuilder style, IStyleKey <T> key, T value)
 {
     style.SetValue(key, value);
     return(style);
 }
Exemple #3
0
 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);
 }