Alt-mode texture/icon

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Lime
Inserter
Inserter
Posts: 34
Joined: Tue Dec 23, 2014 1:50 pm
Contact:

Alt-mode texture/icon

Post by Lime »

Is there a way to set the texture/icon for an entity to be shown in alt-mode?
For example, I'd like to have a possibility to mod an entity that would have different textures based on the status of alt-mode: one for "on" and one for "off".

Or a RenderLayer that is shown/hidden based on alt-mode status.
Image

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Alt-mode texture/icon

Post by darkfrei »

Lime wrote:
Tue Jul 21, 2020 3:26 pm
Is there a way to set the texture/icon for an entity to be shown in alt-mode?
For example, I'd like to have a possibility to mod an entity that would have different textures based on the status of alt-mode: one for "on" and one for "off".

Or a RenderLayer that is shown/hidden based on alt-mode status.
Only https://lua-api.factorio.com/latest/LuaRendering.html

Set the only_in_alt_mode = true
Last edited by darkfrei on Thu Jul 30, 2020 1:24 pm, edited 1 time in total.

User avatar
Lime
Inserter
Inserter
Posts: 34
Joined: Tue Dec 23, 2014 1:50 pm
Contact:

Re: Alt-mode texture/icon

Post by Lime »

I see... are there any libraries or examples how to properly implement UIs?
Image

User avatar
Lime
Inserter
Inserter
Posts: 34
Joined: Tue Dec 23, 2014 1:50 pm
Contact:

Re: Alt-mode texture/icon

Post by Lime »

@moderator can you, please, move this topic to suggestions forum? Basically:
- implement a render layer that is visible in alt-mode only, or
- implement few render layers that can be toggled by a hotkey, not limited to alt only
Image

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Alt-mode texture/icon

Post by darkfrei »

Lime wrote:
Thu Jul 30, 2020 12:46 pm
I see... are there any libraries or examples how to properly implement UIs?
For example https://mods.factorio.com/mod/oil-hauler

Post Reply

Return to “Modding help”