Jump to content




Turtle upgrade not using the correct icon


  • You cannot reply to this topic
2 replies to this topic

#1 austinv11

  • Members
  • 107 posts

Posted 01 November 2014 - 12:08 AM

I have been trying to take the icon from one of my items and use it in the getIcon() method, however it doesn't display this. Instead, it displays this: http://puu.sh/cyeRU/54d322217b.png when it should be displaying this: https://github.com/a...radeCompass.png

Relevant Code:
Upgrade Item-
https://github.com/a...adeCompass.java
Actual turtle upgrade-
https://github.com/a...tleCompass.java

Thanks!

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 01 November 2014 - 12:17 AM

You're probably better off using Forge Event's to load textures instead of creating an item for that purpose. An example can be seen in my mod MoarPeripherals with my Compass upgrade and Solar Upgrade. With upgrades being registered to my Icon object, which receives the Forge Event and then in turn invokes the texture loader for each upgrade that requires it.

Edited by theoriginalbit, 01 November 2014 - 12:18 AM.


#3 austinv11

  • Members
  • 107 posts

Posted 01 November 2014 - 01:26 AM

Thanks!





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users