public static Texture2D GetIconTexture(ushort itemId) { Initialize(); var tex = sp.GetTexture(itemId, 0); if (tex == null) { tex = sp.GetTexture(2, 0); } return(tex); }
public static Texture2D PullTextureFromParser(SpriteParser parser, string itemName) { var items = parser.GetTexture(itemName); if (items != null) { return(items); } return(null); }