Beispiel #1
0
        private void PerfromTemplatePlanning()
        {
            ShowBarrelRollTemplate();

            if (!useModileControls)
            {
                StartReposition();
            }
            else
            {
                SliderMenu.ShowSlider(
                    -0.75f * Selection.ThisShip.ShipBase.SHIPSTAND_SIZE,
                    -0.25f * Selection.ThisShip.ShipBase.SHIPSTAND_SIZE,
                    -0.5f * Selection.ThisShip.ShipBase.SHIPSTAND_SIZE,
                    ProcessTemplatePositionSlider
                    );
            }
        }
Beispiel #2
0
        public override void NextButton()
        {
            if (TemporaryShipBase == null)
            {
                SliderMenu.CloseSlider();

                SliderMenu.ShowSlider(
                    0.5f * 1.18f * TheShip.ShipBase.SHIPSTAND_SIZE,
                    1.5F * 1.18f * TheShip.ShipBase.SHIPSTAND_SIZE,
                    1.0F * 1.18f * TheShip.ShipBase.SHIPSTAND_SIZE,
                    ProcessTemporaryShipBaseSlider
                    );
            }
            else
            {
                SliderMenu.CloseSlider();
            }

            ConfirmPosition();
        }
Beispiel #3
0
        public void PerfromTemplatePlanningFirstEdition()
        {
            useMobileControls = Application.isMobilePlatform;

            ShowBarrelRollTemplate();

            if (!useMobileControls)
            {
                StartReposition();
            }
            else
            {
                SliderMenu.ShowSlider(
                    -0.75f * TheShip.ShipBase.SHIPSTAND_SIZE,
                    -0.25f * TheShip.ShipBase.SHIPSTAND_SIZE,
                    -0.5f * TheShip.ShipBase.SHIPSTAND_SIZE,
                    ProcessTemplatePositionSlider
                    );
            }
        }
        public void PerfromTemplatePlanning()
        {
            templateWidth     = (TheShip.ShipBaseSize == Ship.BaseSize.Small) ? TheShip.ShipBase.HALF_OF_SHIPSTAND_SIZE : TheShip.ShipBase.HALF_OF_SHIPSTAND_SIZE / 2;
            useMobileControls = Application.isMobilePlatform;

            ShowBarrelRollTemplate();

            if (!useMobileControls)
            {
                StartReposition();
            }
            else
            {
                SliderMenu.ShowSlider(
                    -0.75f * TheShip.ShipBase.SHIPSTAND_SIZE,
                    -0.25f * TheShip.ShipBase.SHIPSTAND_SIZE,
                    -0.5f * TheShip.ShipBase.SHIPSTAND_SIZE,
                    ProcessTemplatePositionSlider
                    );
            }
        }