Yes, but then I somehow borked it a minute later. I swear I had it working with categories, but was unable to get it functioning using categories again. The code below does work, but calls out robotics parts individually by name.
FilterByFunction.cfg
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,Robotics
list = 6,Coupling
list = 7,Payload
list = 8,Aerodynamics
list = 9,Ground
list = 10,Thermal
list = 11,Electrical
list = 12,Communications
list = 13,Science
list = 14,Cargo
list = 15,Utility
}
}
SubCategories_Stock.cfg
SUBCATEGORY
{
name = Pods
icon = stockIcon_pods
FILTER
{
CHECK
{
type = category
value = Pods
}
}
}
SUBCATEGORY
{
name = Fuel Tanks
icon = stockIcon_fueltank
FILTER
{
CHECK
{
type = category
value = FuelTank, Propulsion
}
}
}
SUBCATEGORY
{
name = Engines
icon = stockIcon_engine
FILTER
{
CHECK
{
type = category
value = Engine
}
}
}
SUBCATEGORY
{
name = Command and Control
icon = stockIcon_cmdctrl
FILTER
{
CHECK
{
type = category
value = Control
}
}
}
SUBCATEGORY
{
name = Structural
icon = stockIcon_structural
FILTER
{
CHECK
{
type = category
value = Structural
}
}
}
SUBCATEGORY
{
name = Robotics
icon = serenityIcon_robotics
FILTER
{
CHECK
{
type = name
value = hinge_01, hinge_01_s, hinge_03, hinge_03_s, hinge_04, piston_01, piston_02, piston_03, piston_04, rotor_01, rotor_02, rotor_03, rotoServo_00, rotoServo_02, rotoServo_03, rotoServo_04
}
}
}
SUBCATEGORY
{
name = Coupling
icon = stockIcon_coupling
FILTER
{
CHECK
{
type = category
value = Coupling
}
}
}
SUBCATEGORY
{
name = Payload
icon = stockIcon_payload
FILTER
{
CHECK
{
type = category
value = Payload
}
}
}
SUBCATEGORY
{
name = Aerodynamics
icon = stockIcon_aerodynamics
FILTER
{
CHECK
{
type = category
value = Aero
}
}
}
SUBCATEGORY
{
name = Ground
icon = stockIcon_ground
FILTER
{
CHECK
{
type = category
value = Ground
}
}
}
SUBCATEGORY
{
name = Thermal
icon = stockIcon_thermal
FILTER
{
CHECK
{
type = category
value = Thermal
}
}
}
SUBCATEGORY
{
name = Electrical
icon = stockIcon_electrical
FILTER
{
CHECK
{
type = category
value = Electrical
}
}
}
SUBCATEGORY
{
name = Communications
icon = stockIcon_communication
FILTER
{
CHECK
{
type = category
value = Communications
}
}
}
SUBCATEGORY
{
name = Science
icon = stockIcon_science
FILTER
{
CHECK
{
type = category
value = Science
}
}
}
SUBCATEGORY
{
name = Cargo
icon = stockIcon_cargo
FILTER
{
CHECK
{
type = category
value = Cargo
}
}
}
SUBCATEGORY
{
name = Utility
icon = stockIcon_utility
FILTER
{
CHECK
{
type = category
value = Utility
}
}
}