Exemple #1
0
 protected LocalSprite()
 {
     Name    = GetType().Name;
     Texture = RelativeResource.Load <Texture>(GetType(), $"{GetType().Name}.png");
 }
Exemple #2
0
 public static string GetResourcePath(string resourceName)
 {
     return(RelativeResource.GetResourcePath(typeof(TLocal), resourceName));
 }
Exemple #3
0
 public LocalStyleBoxTexture()
 {
     Texture = RelativeResource.Load <Texture>(GetType(), $"{GetType().Name}.png");
 }
Exemple #4
0
 public static TResource Load <TResource>(string resourceName)
     where TResource : class
 {
     return(RelativeResource.Load <TResource>(typeof(TLocal), resourceName));
 }