// sil-dock-bright-250.cfg v1.1.0.0
// Stack Inline Lights (SIL)
// created: 08 Oct 2013
// updated: 26 Feb 2023

// this file: CC BY-NC-SA 3.0 by alexustas and zer0Kerbal

PART
{
	name = sil-dock-bright-250
	oldName = dockBRIGHTsr
	module = Part
	author = Squad, Alex, XanderTek and zer0Kerbal

	MODEL { model = Squad/Parts/Utility/dockingPortSr/dockingPortSr }
	MODEL
	{
		model = ASET/StackInlineLights/Assets/SIL0225
		position = 0.0, 0.23, 0.0
		rotation = 0, 15, 0
		scale = 1.015, 0.50, 1.015
	}
	rescaleFactor = 1
	bulkheadProfiles = size2, srf

	attachRules = 1,0,1,0,0
	node_stack_top = 0.0, 0.29, 0.0, 0.0, 1.0, 0.0, 2, 1
	node_stack_bottom = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 2, 1
	node_attach = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0, 1

	TechRequired = metaMaterials
	entryCost = 12900
	cost = 1000
	category = Coupling
	subcategory = 0

	title = #SIL-dock-bright-250-titl
	manufacturer = #ASET-Agency-titl
	description = #SIL-dock-bright-250-desc
	tags = #autoLOC_500860 // berth capture connect couple dock fasten join moor rockomax socket

	mass = 0.205

	dragModelType = default
	maximum_drag = 0.25
	minimum_drag = 0.25
	angularDrag = 0.5

	crashTolerance = 20
	breakingForce = 66
	breakingTorque = 66

	maxTemp = 2000

	childStageOffset = 0
	stagingIcon = DECOUPLER_VERT

	MODULE
	{
		name = ModuleLight
		lightName = SIL0225DCLS
		useAnimationDim = True
			animationName = SIL0225turnON
			lightBrightenSpeed = 2.5
			lightDimSpeed = 2.5
		disableColorPicker = False
			toggleInEditor = True
			toggleInFlight = True
		canBlink = True
			blinkMin = 0.2
			blinkMax = 2.0
			blinkRate = 0.5
			isBlinking = False
		useResources = True
			resourceName = ElectricCharge
			resourceAmount = 0.002
	}

	MODULE
	{
		name = ModuleDockingNode
		referenceAttachNode = top
		nodeType = size2
		stagingEnabled = False
		canRotate = True
		rotationTransformName = port
		maxMotorOutput = 800
		RESOURCE
		{
			name = ElectricCharge
			rate = 1
		}
		rotationAxis = Y
	}

	MODULE
	{
		name = ModuleColorChanger
		shaderProperty = _EmissiveColor
		animRate = 0.8
		animState = false
		useRate = true
		toggleInEditor = True
		toggleInFlight = True
		toggleInFlight = True
		unfocusedRange = 5
		toggleName = #autoLOC_502011 //#autoLOC_502011 = Toggle Lights
		eventOnName = #autoLOC_6001409 	//#autoLOC_6001409 = Lights On
		eventOffName = #autoLOC_6001408 	//#autoLOC_6001408 = Lights Off
		toggleAction = True
		defaultActionGroup = Light
		redCurve
		{
			key = 0 0 0 3
			key = 1 1 0 0
		}
		greenCurve
		{
			key = 0 0 0 1
			key = 1 1 1 0
		}
		blueCurve
		{
			key = 0 0 0 0
			key = 1 0.7 1.5 0
		}
		alphaCurve
		{
			key = 0 1
		}
	}

	MODULE
	{
		name = ModuleCargoPart		
		packedVolume = -1
	}

	MODULE
	{
		name = ModulePartVariants
		primaryColor = #999999
		secondaryColor = #b08b39
		baseDisplayName = #autoLOC_8320084
		baseThemeName = Gray with Stripes
		useMultipleDragCubes = false
		VARIANT
		{
			name = Gray
			displayName = #autoLOC_8007101
			themeName = Gray
			primaryColor = #999999
			secondaryColor = #999999
			TEXTURE
			{
				mainTextureURL = Squad/Parts/Utility/dockingPortSr/ClampotronSr_ClampotronSr_Diffuse_gray
			}
		}		
	}
}