Show Architect Menu category only when researchPrerequisites are met?

Started by sumghai, August 12, 2017, 09:52:09 PM

Previous topic - Next topic

sumghai

Following on from this thread, my mod items now display in the custom category.

Is it possible to make this custom category show up in the Architect Menu only when the researchPrerequisites are met? The justification is that the items from my mod are late-game spacer/glitterworld tech, and while I can hide the individual items, leaving behind an empty menu feels spoileriffic.

I attempted adding <researchPrerequisites> directly within the corresponding <DesignationCategoryDef>, but the former is not a valid field for the former. Perhaps a plugin is needed for this?

(For the recording, it seems that in the early stages of a savegame, the Ship category when no corresponding research has been completed)