Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Example category

Crzyrndm edited this page Jul 31, 2015 · 2 revisions

The Filter by Function category definition

CATEGORY
{
	name = Filter by Function
	type = stock
	value = replace
	
	SUBCATEGORIES
	{
		list = 0,Pods
		list = 1,Fuel Tanks
		list = 2,Engines
		list = 3,Command and Control
		list = 4,Structural
		list = 5,Aerodynamics
		list = 6,Utility
		list = 7,Science, dont template
	}
}

Broken down:

CATEGORY
{
	// The name/title of the category that will be visible ingame and the id used for Module Manager patches
    // eg. @CATEGORY[Filter?by?Function] will target this node
    // This field must be unique
	name = Filter by Function
	
	// the type and value fields are used to specify some of the more interesting behavioural characteristics of a category
	// making changes to any of the 6 stock categories requires the line "type = stock" with the value line choosing between completely replacing all subcategories or just appending new ones
	// there is also the "type = engines" which generates and adds subcategories for every variant of engine present
	type = stock
	value = replace
	
	// the SUBCATEGORIES node contains a 0 indexed list of all the subcategories to be added to this category.
	// no particular key is required, "list" is just used as a default
	// The index specifies the position the subcategory will be visible at. If two entries use the same index, the latter will replace the former
	// if no index is used, the subcategory will be tacked on to the end after all indexed additions.
	SUBCATEGORIES
	{
		list = 0,Pods
		list = 1,Fuel Tanks
		list = 2,Engines
		list = 3,Command and Control
		list = 4,Structural
		list = 5,Aerodynamics
		list = 6,Utility
		list = 7,Science, dont template // the "dont template" keyword excludes this subcategory from the category level filtering
	}
	
	// Any Filter nodes found inside a category are applied prior to those in each subcategory, further limiting the parts that will show up
	// This template for example would limit the visible parts of any subcategory added to those located inside the Squad folder
	// Filter
	// {
	//	CHECK
	//	{
	//		type = folder
	//		value = Squad
	//	}
	// }
}
Clone this wiki locally