--	author:		fruktor
--	date:		07.08.2011
--
--	Copyright (C) - www.eifok-team.de
--      _  __      _           _                       
--     (_)/ _|    | |         | |                      
--  ___ _| |_ ___ | | ________| |_ ___  __ _ _ __ ___  
-- / _ \ |  _/ _ \| |/ /______| __/ _ \/ _` | '_ ` _ \ 
--|  __/ | || (_) |   <       | ||  __/ (_| | | | | | |
-- \___|_|_| \___/|_|\_\       \__\___|\__,_|_| |_| |_|
--
--
--	 	Poettinger Jumbo Combiline 10010
--

--	CONTENT
-------------------
--	1. Credits
--	2. Features
--	3. Notes on how to add the ConotrolPanelAttacher to a tratcor
--

-- 	1. CREDITS
-------------------------------------------------------------
--	Model:	daniel11
--	Textur:	daniel11
--	InGame:	daniel11/fruktor
--	Script:	fruktor
--

--	2. FEATURES
-------------------------------------------------------------
--	Chaff Cover can be opened/closed
--	Drawbar can be set up/down
--	Realloading/-unloading 
--	Liftaxle can be set up/down
--	ControlPanel can be used to control:
		Chaff Cover open/close
		Drawbar up/down
		PickUp Up/Down and On/Off		
--	animations 
--

--	3. ADDDING THE CONTROLPANELATTACHER TO THE TRACTOR
-------------------------------------------------------------
--	1. extract your mod/tractor
--  2. copy three files from the directory 'ScriptsForControlPanelAttacher' to the mod's dir
--	3. edit the moddesc.xml of your mod the following way:
--	3.1 add or edit the following entry for the extraSourceFiles:
		<extraSourceFiles>
			<sourceFile filename="InteractiveControlEvent.lua" />
		</extraSourceFiles>
--	3.2 add or edit the following entries for the sourceFiles:
		<specializations>
			<specialization name="interactiveControl" className="InteractiveControl" filename="Speci/InteractiveControl.lua"/>
			<specialization name="controlPanelAttacher" className="ControlPanelAttacher" filename="Speci/ControlPanelAttacher.lua"/>
		</specializations>	
--	3.3 now add the two "specalization"-entries to the vehicle-type entry, e.g.:
	<vehicleTypes>
		 <type name="Fendt933Vario" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
            <specialization name="motorized" />
			<.... />			
			<specialization name="interactiveControl" />
			<specialization name="controlPanelAttacher" />
        </type>
--	3.4 further entries for translation
	<l10n>
		<text name="InteractiveControl_Off">
            <en>Disable IC</en>
            <de>IC ausschalten</de>
        </text>
		<text name="InteractiveControl_On">
            <en>Enable IC</en>
            <de>IC anschalten</de>
        </text>	
	</l10n>
-- 	3.5 finally an entry for the InputBindings:
	<inputBindings>
		<input name="INTERACTIVE_CONTROL_SWITCH"  category="VEHICLE" key1="KEY_space" key2="" button="" device="0" mouse="" />
	</inputBindings>
--	
--	Now, it's time for the funny part :) 
--	open the i3d of your mod
--	create as many TG (TransformGroups), as you want controlpanels to be attachable
--	place these TG in appropriate positions
--	and add the following entry to yourMod.xml
--
	<controlPanels count="2">
		<controlPanel1 index="0>38|0"/>
		<controlPanel2 index="0>38|1"/>
	</controlPanels>

--	Now, you should be set up
--	Have fun, and enjoy this Mod.
