GetBackgroundSlot() public static method

public static GetBackgroundSlot ( string texture ) : int
texture string
return int
Example #1
0
 /// <summary>
 /// Gets the texture slot corresponding to the specified texture name. Shorthand for calling BackgroundTextureLoader.GetBackgroundSlot(this.Name + '/' + name).
 /// </summary>
 /// <param name="name">The name.</param>
 /// <returns></returns>
 public int GetBackgroundSlot(string name) => BackgroundTextureLoader.GetBackgroundSlot(Name + '/' + name);
Example #2
0
 /// <summary>
 /// Returns the slot/ID of the background texture with the given name.
 /// </summary>
 public static int GetModBackgroundSlot(string texture) => BackgroundTextureLoader.GetBackgroundSlot(texture);