Change GUI Image procedure

Published by Sancho on Wed, 08/19/2020 - 01:12
Status
Resolved
Product/platform
Not applicable
MCreator version
Priority
Normal
Issue description

The feature should force the user to assign an ID (like the Text Input has a name) to any image component created.

The GUI procedure block should accept as a parameter an image component's ID and also a dropdown with all the texture assets.

The use case is to make the UI more reusable. For example: right now If I have several UIs that share the same text fields (NBT tag loaders) but the images change, I need to create a new UI element, but being able to change the texture of an image component makes easier to apply a template pattern.

Issue comments

Changing image is not possible by design of GUI components, but it can be conditionally shown. This said feature is in my internal todo planned.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.