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