Deriving from a predefined type w/o the default behavior

Place to get help with not working mods / modding interface.
Post Reply
ElGaucho
Burner Inserter
Burner Inserter
Posts: 19
Joined: Mon Mar 27, 2017 9:27 pm
Contact:

Deriving from a predefined type w/o the default behavior

Post by ElGaucho »

Hi folks,

i know the title may sound a bit odd, but i'll try to explain, what we currently want to achieve. Basically, we want a filter-option for our new entity.
There are currently three types which support a filter out of the box:

* Inserter (but it has already an "override stack size" checkbox, which we do not want)
* Logistic Requester-Chest (which can set an amount, which we dont want)
* Loader - which fits our needs perfectly (as it only has the filteroption).

So we defined our entity to make a deepcopy of the loader entity, but we want only the ui part, not the behavior (e.g. carrying items across the belt). We removed all sprites, so we cannot see the loader currently, but it still has the same behavior. Is there a possibility to hide the item completely / deactivate it, so that it does not interfere / interact with other game objects?

Or is the only way to re-create a custom gui that contains the same elements as the loader?

Thanks for your hints in advance!

Post Reply

Return to “Modding help”