Page 1 of 1
Alt-mode texture/icon
Posted: Tue Jul 21, 2020 3:26 pm
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.
Re: Alt-mode texture/icon
Posted: Thu Jul 30, 2020 12:40 pm
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
Re: Alt-mode texture/icon
Posted: Thu Jul 30, 2020 12:46 pm
by Lime
I see... are there any libraries or examples how to properly implement UIs?
Re: Alt-mode texture/icon
Posted: Thu Jul 30, 2020 12:47 pm
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
Re: Alt-mode texture/icon
Posted: Thu Jul 30, 2020 1:45 pm
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