require "Vehicles/ISUI/ISCarMechanicsOverlay"

local function RotatorsSemiTruckMechanicsOverlay()
	for _,name in ipairs({ "Battery", "BrakeFrontLeft", "BrakeFrontRight", "BrakeRearLeft", "BrakeRearRight", "DoorFrontLeft", "DoorFrontRight", "Engine", "EngineDoor", "GasTank", "HeadlightLeft", "HeadlightRight", "Muffler", "SuspensionFrontLeft", "SuspensionFrontRight", "SuspensionRearLeft", "SuspensionRearRight", "TireFrontLeft", "TireFrontRight", "TireRearLeft", "TireRearRight", "TruckBed", "TrunkLeft", "WindowFrontLeft", "WindowFrontRight", "Windshield" }) do
		ISCarMechanicsOverlay.PartList[name] = ISCarMechanicsOverlay.PartList[name] or {}
		ISCarMechanicsOverlay.PartList[name].vehicles = ISCarMechanicsOverlay.PartList[name].vehicles or {}
	end

	ISCarMechanicsOverlay.CarList["Rotators.SemiTruck"] = { imgPrefix = "rSemiTruck_", x = 10, y = 0, PartList = {} }
	ISCarMechanicsOverlay.CarList["Rotators.SemiTruck"].PartList.TrunkLeft = { img = "trunk_door_left" } 
	ISCarMechanicsOverlay.CarList["Base.SemiTruck"] = { imgPrefix = "rSemiTruck_", x = 10, y = 0, PartList = {} }
	ISCarMechanicsOverlay.CarList["Base.SemiTruck"].PartList.TrunkLeft = { img = "trunk_door_left" } 
	ISCarMechanicsOverlay.CarList["Base.SemiTruck_mil"] = { imgPrefix = "rSemiTruck_", x = 10, y = 0, PartList = {} }
	ISCarMechanicsOverlay.CarList["Base.SemiTruck_mil"].PartList.TrunkLeft = { img = "trunk_door_left" } 

	ISCarMechanicsOverlay.PartList.Battery.vehicles.rSemiTruck_ = { x = 15, y = 237, x2 = 58, y2 = 269 }

	ISCarMechanicsOverlay.PartList.DoorFrontLeft.vehicles.rSemiTruck_ = { x = 0, y = 0, x2 = 0, y2 = 0 }
	ISCarMechanicsOverlay.PartList.DoorFrontRight.vehicles.rSemiTruck_ = { x = 0, y = 0, x2 = 0, y2 = 0 }
	ISCarMechanicsOverlay.PartList.Engine.vehicles.rSemiTruck_ = { x = 15, y = 36, x2 = 114, y2 = 96 }
	ISCarMechanicsOverlay.PartList.EngineDoor.vehicles.rSemiTruck_ = { x = 107, y = 122, x2 = 175, y2 = 208 }
	ISCarMechanicsOverlay.PartList.GasTank.vehicles.rSemiTruck_ = { x = 182, y = 36, x2 = 267, y2 = 90 }
	ISCarMechanicsOverlay.PartList.HeadlightLeft.vehicles.rSemiTruck_ = { x = 82, y = 123, x2 = 103, y2 = 144 }
	ISCarMechanicsOverlay.PartList.HeadlightRight.vehicles.rSemiTruck_ = { x = 179, y = 123, x2 = 200, y2 = 144 }

	ISCarMechanicsOverlay.PartList.Muffler.vehicles.rSemiTruck_ = { x = 232, y = 265, x2 = 268, y2 = 334 }

	ISCarMechanicsOverlay.PartList.SuspensionFrontLeft.vehicles.rSemiTruck_ = { x = 14, y = 132, x2 = 45, y2 = 170 }
	ISCarMechanicsOverlay.PartList.SuspensionFrontRight.vehicles.rSemiTruck_ = { x = 218, y = 132, x2 = 258, y2 = 170 }

	ISCarMechanicsOverlay.PartList.BrakeFrontLeft.vehicles.rSemiTruck_ = { x = 4, y = 170, x2 = 45, y2 = 208 }
	ISCarMechanicsOverlay.PartList.BrakeFrontRight.vehicles.rSemiTruck_ = { x = 218, y = 170, x2 = 258, y2 = 208 }

	ISCarMechanicsOverlay.PartList.TireFrontLeft.vehicles.rSemiTruck_ = { x = 70, y = 128, x2 = 80, y2 = 200 }
	ISCarMechanicsOverlay.PartList.TireFrontRight.vehicles.rSemiTruck_ = { x = 200, y = 128, x2 = 215, y2 = 200 }

	ISCarMechanicsOverlay.PartList.SuspensionMiddleLeft.vehicles.rSemiTruck_ = { x = 4, y = 413, x2 = 44, y2 = 451 }
	ISCarMechanicsOverlay.PartList.SuspensionMiddleRight.vehicles.rSemiTruck_ = { x = 218, y = 413, x2 = 258, y2 = 451 }

	ISCarMechanicsOverlay.PartList.SuspensionRearLeft.vehicles.rSemiTruck_ = { x = 4, y = 489, x2 = 45, y2 = 525 }
	ISCarMechanicsOverlay.PartList.SuspensionRearRight.vehicles.rSemiTruck_ = { x = 218, y = 489, x2 = 258, y2 = 527 }

	ISCarMechanicsOverlay.PartList.BrakeMiddleLeft.vehicles.rSemiTruck_ = { x = 4, y = 450, x2 = 45, y2 = 488 }
	ISCarMechanicsOverlay.PartList.BrakeMiddleRight.vehicles.rSemiTruck_ = { x = 218, y = 450, x2 = 258, y2 = 488 }

	ISCarMechanicsOverlay.PartList.BrakeRearLeft.vehicles.rSemiTruck_ = { x = 4, y = 528, x2 = 45, y2 = 564 }
	ISCarMechanicsOverlay.PartList.BrakeRearRight.vehicles.rSemiTruck_ = { x = 218, y = 528, x2 = 258, y2 = 564 }

	ISCarMechanicsOverlay.PartList.TireMiddleLeft.vehicles.rSemiTruck_ = { x = 64, y = 415, x2 = 110, y2 = 485 }
	ISCarMechanicsOverlay.PartList.TireMiddleRight.vehicles.rSemiTruck_ = { x = 160, y = 415, x2 = 200, y2 = 485 }

	ISCarMechanicsOverlay.PartList.TireRearLeft.vehicles.rSemiTruck_ = { x = 60, y = 485, x2 = 100, y2 = 555 }
	ISCarMechanicsOverlay.PartList.TireRearRight.vehicles.rSemiTruck_ = { x = 160, y = 485, x2 = 200, y2 = 555 }

	ISCarMechanicsOverlay.PartList.TruckBed.vehicles.rSemiTruck_ = { x = 187, y = 302, x2 = 206, y2 = 342 }
	ISCarMechanicsOverlay.PartList.TrunkLeft.vehicles.rSemiTruck_ = { x = 76, y = 302, x2 = 95, y2 = 342 }
	ISCarMechanicsOverlay.PartList.WindowFrontLeft.vehicles.rSemiTruck_ = { x = 90, y = 235, x2 = 98, y2 = 275 }
	ISCarMechanicsOverlay.PartList.WindowFrontRight.vehicles.rSemiTruck_ = { x = 183, y = 235, x2 = 190, y2 = 275 }
	ISCarMechanicsOverlay.PartList.Windshield.vehicles.rSemiTruck_ = { x = 96, y = 228, x2 = 185, y2 = 235 }
end

Events.OnInitWorld.Add(RotatorsSemiTruckMechanicsOverlay)
