Advertisement
baldio99codderboi

Untitled

Jul 29th, 2022
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public void MinimalizeAllItemIcons()
  2. {
  3. for (int i = 0; i < this.itemTextures.Length; i++)
  4. {
  5. if (this.itemTextures[i].name != "Blank")
  6. {
  7. string name = string.Format("{0}_Small", this.itemTextures[i].name);
  8. try
  9. {
  10. this.itemTextures[i] = ModExtraAssets.Get<Texture2D>(name);
  11. }
  12. catch
  13. {
  14. Debug.LogError("Can't find a mini version of item icon of " + name);
  15. }
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement