Layered/stacked images in GUI?

Place to get help with not working mods / modding interface.
Post Reply
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Layered/stacked images in GUI?

Post by aubergine18 »

Is it possible to layer images over each other in a GUI panel?

For example, when a custom entity is clicked, I'd like to draw that entity along with a few surrounding tiles in the GUI panel, for example to make it easier to associate the entity with surrounding entities. So, I'd want to first render a grid of the terrain, then the entities on top of that terrain (excluding cables etc) and then buttons at various locations over entities to allow selecting which entities to associate with my entity. The buttons might be different grid size to the rest of the display (eg. 4 buttons per map tile).

An alternate would be to have some way of doing a mini-cam background to a frame (live preview of map area) over which I could add my buttons.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

Post Reply

Return to “Modding help”