How to change an image displayed in a GUI

Started by yhfrag on Sat, 10/19/2019 - 12:18

Topic category: Help with MCreator modding

Last seen on 17:13, 20. Nov 2019
Joined Feb 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How to change an image displayed in a GUI
Sat, 10/19/2019 - 12:18

How would i go about changing the image in a gui

Last seen on 15:12, 21. Nov 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Do you mean an image in…
Sat, 10/19/2019 - 15:29

Do you mean an image in custom GUI?

When in the GUI mod element: Simply press the button on the left to add an image. (Make sure its twice as big as it should be: 16x16 should by 32x32) as the pictures sized are resized to half the size. It allows you to select any image from your pc.

Last seen on 17:13, 20. Nov 2019
Joined Feb 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I know this, i'm asking if…
Sat, 10/19/2019 - 16:07

I know this, i'm asking if theres a way to change the image in the GUI with procedures

Last seen on 15:12, 21. Nov 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
You don't need to change the…
Sat, 10/19/2019 - 16:39

You don't need to change the image. You just need to show a different image based on a different condition. An example:

https://www.youtube.com/watch?v=nDoclprdfV0&t=0s

For example:

If biome temperature < 0 (show image of ice at 0,0,0 screencoordinates)

If biome temperature >= 0 (show image of fire at 0,0,0 screencoordinates)