Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void MinimalizeAllItemIcons()
- {
- for (int i = 0; i < this.itemTextures.Length; i++)
- {
- if (this.itemTextures[i].name != "Blank")
- {
- string name = string.Format("{0}_Small", this.itemTextures[i].name);
- try
- {
- this.itemTextures[i] = ModExtraAssets.Get<Texture2D>(name);
- }
- catch
- {
- Debug.LogError("Can't find a mini version of item icon of " + name);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement