How to hide quality icon on hidden entities

Place to get help with not working mods / modding interface.
Pikachar
Inserter
Inserter
Posts: 32
Joined: Wed Apr 19, 2023 9:16 pm
Contact:

How to hide quality icon on hidden entities

Post by Pikachar »

Hello!
In a mod I'm working on I've got hidden entities that facilitate some logic, but the player should not really know that they are there. They're supposed to be hidden after all. Is there a way to specifically hide the quality icon on such an entity? And if so, what is the proper way of doing that? I saw that somebody had asked that question before, but the link directed me to a post that was deleted.

I've tried setting hidden = true, but that does not seem to do anything. And I'm not seeing any other property in the LuaEntityPrototype that I could set to achieve this result.

Any help is much appreciated!
Tinyboss
Filter Inserter
Filter Inserter
Posts: 564
Joined: Sun Nov 16, 2014 12:11 pm
Contact:

Re: How to hide quality icon on hidden entities

Post by Tinyboss »

Sounds like something that definitely should exist. But if it doesn't, could your mod just enforce that the quality of such entities is always normal?
Pikachar
Inserter
Inserter
Posts: 32
Joined: Wed Apr 19, 2023 9:16 pm
Contact:

Re: How to hide quality icon on hidden entities

Post by Pikachar »

I could, but I'd like to actually support quality as well as that of whatever quality other mods may add in. Otherwise I'd just hardcode the hidden entities for each quality.
0n0w1c
Inserter
Inserter
Posts: 29
Joined: Sat Sep 09, 2023 1:43 pm
Contact:

Re: How to hide quality icon on hidden entities

Post by 0n0w1c »

I ran into the same issue, I even posted here but then removed it.
Seems I always want to do things that are not the intention of the game design.
Xorimuth
Filter Inserter
Filter Inserter
Posts: 722
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

Re: How to hide quality icon on hidden entities

Post by Xorimuth »

My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Post Reply

Return to “Modding help”