private void InsertDropdownboxDirection()
        {
            int i = directionListBox.GetSelectedItemIndex();
            i = directionListBox.List(directionList[i].text, directionList, "Box");
            switch(i)
            {
                case 0:
                    direction = thrustDirections.auto;
                    break;
                case 1:
                    direction = thrustDirections.up;
                    break;
                case 2:
                    direction = thrustDirections.forward;
                    break;
                default:
                    Debug.LogError("Invalid direction given");
                    break;

            }
        }
        public void Awake()
        {
            // open save
            save = new SaveFile();
            save.Load();
            // Initialising all variables
            vessel = FlightGlobals.ActiveVessel;
            windowPos = new Rect(50, 50, 400, 200);
            windowPosHelp = new Rect(500, 100, 400, 50);
            enginesCounted = false;
            engineTable = new List<EngineWrapper>();
            presentTorque = new Vector3(0f, 0f, 0f);
            demand = new Vector3(0f, 0f, 0f);
            minEfficiency = 0.66f;
            mainThrustAxis = Vector3.down;
            direction = thrustDirections.auto;

            isActive = false;
            showAny = false;
            showEngines = false;
            contUpdate = true;
            showHelp = false;
            detectStearingThrusters = false;
            reverseThrust = false;

            TCAButton = ToolbarManager.Instance.add("TCA", "TCAButton");
            TCAButton.TexturePath = "ThrottleControlledAvionics/textures/icon_button_off";
            TCAButton.ToolTip = "Throttle Controlled Avionics";
            TCAButton.Visibility = new GameScenesVisibility(GameScenes.FLIGHT);
            TCAButton.Visible = true;
            TCAButton.OnClick += (e) =>
            {
                showAny = !showAny;
            };

            saveList = new GUIContent[3];
            saveList[0] = new GUIContent(save.GetName(0));
            saveList[1] = new GUIContent(save.GetName(1));
            saveList[2] = new GUIContent(save.GetName(2));
            saveListBox = new ComboBox();

            directionList = new GUIContent[3];
            directionList[0] = new GUIContent("auto");
            directionList[1] = new GUIContent("up");
            directionList[2] = new GUIContent("forward");
            directionListBox = new ComboBox();
        }