private void ScintillaNet_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.Control && e.KeyCode == System.Windows.Forms.Keys.F)
     {
         MyFindReplace.ShowFind();
         e.SuppressKeyPress = true;
     }
     else if (e.Shift && e.KeyCode == System.Windows.Forms.Keys.F3)
     {
         MyFindReplace.Window.FindPrevious();
         e.SuppressKeyPress = true;
     }
     else if (e.KeyCode == System.Windows.Forms.Keys.F3)
     {
         MyFindReplace.Window.FindNext();
         e.SuppressKeyPress = true;
     }
     else if (e.Control && e.KeyCode == System.Windows.Forms.Keys.H)
     {
         MyFindReplace.ShowReplace();
         e.SuppressKeyPress = true;
     }
     else if (e.Control && e.KeyCode == System.Windows.Forms.Keys.I)
     {
         MyFindReplace.ShowIncrementalSearch();
         e.SuppressKeyPress = true;
     }
     else if (e.Control && e.KeyCode == System.Windows.Forms.Keys.G)
     {
         GoTo MyGoTo = new GoTo((Scintilla)sender);
         MyGoTo.ShowGoToDialog();
         e.SuppressKeyPress = true;
     }
 }
Example #2
0
 public void RnD()
 {
     SavedGoTo = GoTo.None;
     if (HighLogic.LoadedSceneIsGame)
     {
         if (CanScienceBuilding)
         {
             if (HighLogic.LoadedScene == GameScenes.SPACECENTER)
             {
                 ClearSpaceCenter();
                 GameEvents.onGUIRnDComplexSpawn.Fire();
                 InputLockManager.ClearControlLocks();
                 Log(GetText(GoTo.RnD));
                 return;
             }
             if (CanSpaceCenter)
             {
                 SavedGoTo = GoTo.RnD;
                 gotoSpaceCenter();
                 return;
             }
         }
     }
     screenMSG(GoTo.RnD);
 }
Example #3
0
        private void GotoButton_Click(object sender, EventArgs e)
        {
            // Use the FindReplace Scintilla as this will change based on focus
            GoTo MyGoTo = new GoTo(MyFindReplace.Scintilla);

            MyGoTo.ShowGoToDialog();
        }
Example #4
0
 public void administration()
 {
     SavedGoTo = GoTo.None;
     if (HighLogic.LoadedSceneIsGame)
     {
         if (CanFundBuilding)
         {
             if (HighLogic.LoadedScene == GameScenes.SPACECENTER)
             {
                 ClearSpaceCenter();
                 GameEvents.onGUIAdministrationFacilitySpawn.Fire();
                 InputLockManager.ClearControlLocks();
                 Log(GetText(GoTo.Administration));
                 return;
             }
             if (CanSpaceCenter)
             {
                 SavedGoTo = GoTo.Administration;
                 gotoSpaceCenter();
                 return;
             }
         }
     }
     screenMSG(GoTo.Administration);
 }
Example #5
0
 private void genericScintilla_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.F)
     {
         findReplace.ShowFind();
         e.SuppressKeyPress = true;
     }
     else if (e.Shift && e.KeyCode == Keys.F3)
     {
         findReplace.Window.FindPrevious();
         e.SuppressKeyPress = true;
     }
     else if (e.KeyCode == Keys.F3)
     {
         findReplace.Window.FindNext();
         e.SuppressKeyPress = true;
     }
     else if (e.Control && e.KeyCode == Keys.H)
     {
         findReplace.ShowReplace();
         e.SuppressKeyPress = true;
     }
     else if (e.Control && e.KeyCode == Keys.I)
     {
         findReplace.ShowIncrementalSearch();
         e.SuppressKeyPress = true;
     }
     else if (e.Control && e.KeyCode == Keys.G)
     {
         GoTo myGoTo = new GoTo((Scintilla)sender);
         myGoTo.ShowGoToDialog();
         e.SuppressKeyPress = true;
     }
 }
Example #6
0
 public void mainMenu()
 {
     loadScreen.SetActive(true);
     GameObject.Find("BikeManager").GetComponent <BikeManager> ().Reset();
     Time.timeScale = 1f;
     isRunning      = false;
     GoTo.LoadMenu();
 }
Example #7
0
 public void login3()
 {
     driver = new ChromeDriver();
     wait   = new WebDriverWait(driver, TimeSpan.FromSeconds(3000));
     driver.Manage().Window.Maximize();
     loginObjects = new LoginObjects(driver);
     goTo         = new GoTo(driver);
 }
Example #8
0
        /// <summary>
        /// Create instance of FindReplace with reference to a ScintillaNET control.
        /// </summary>
        /// <param name="theBox"></param>
        public static void ScintillaInstance(Scintilla theBox)
        {
            _myFindReplace = new FindReplace(theBox);
            _myFindReplace.Window.StartPosition = FormStartPosition.CenterScreen;
            _myGoTo = new GoTo(theBox);

            theBox.KeyDown += KeyDown;
        }
Example #9
0
    IEnumerator goToLvlChoose()
    {
        yield return(new WaitForSeconds(3.5f));

        GameObject.Find("BikeManager").GetComponent <BikeManager> ().Reset();
        GoTo.LoadEnvironmentChoose();
        yield return(null);
    }
Example #10
0
        void PostInitSC()
        {
            if (LastVessels.Count < 1)
            {
                FlightState _flightState = HighLogic.CurrentGame.flightState;
                if (_flightState != null)
                {
                    List <ProtoVessel> _pVessels = _flightState.protoVessels;
                    for (int _i = _pVessels.Count - 1; _i >= 0; --_i)
                    {
                        ProtoVessel _pVessel = _pVessels[_i];
                        if (_pVessel != null)
                        {
                            AddLastVessel(_pVessel);
                        }
                    }
                }
            }
            else
            {
                List <QData> _lastVessels = LastVessels;
                LastVessels = new List <QData> ();
                for (int _i = _lastVessels.Count - 1; _i >= 0; --_i)
                {
                    QData _lastVessel = _lastVessels[_i];
                    if (pVesselExists(_lastVessel.protoVessel))
                    {
                        LastVessels.Add(_lastVessel);
                    }
                    else
                    {
                        Warning("Remove from the last Vessels: " + _lastVessel.protoVessel.vesselName, "QGoTo");
                    }
                }
            }
            if (SavedGoTo != GoTo.None)
            {
                switch (SavedGoTo)
                {
                case GoTo.Administration:
                    administration();
                    break;

                case GoTo.AstronautComplex:
                    astronautComplex();
                    break;

                case GoTo.RnD:
                    RnD();
                    break;

                case GoTo.MissionControl:
                    missionControl();
                    break;
                }
                SavedGoTo = GoTo.None;
            }
        }
Example #11
0
 public void choise()
 {
     data.currentBike = curBike;
     data.save();
     loadingScreen.SetActive(true);
     GoTo.LoadMegaCity();
     StartCoroutine(showIntersential());
     //GoTo.LoadEnvironmentChoose ();
 }
Example #12
0
        public State WithGoTo(IEnumerable <char> characters, string state)
        {
            foreach (char c in characters)
            {
                GoTo.Add(c, state);
            }

            return(this);
        }
Example #13
0
 public async static Task GoTo(Players player, GoTo goTo)
 {
     if (player == Players.None)
         return;
     int playerId = getIdFromPlayers(player);
     JObject parameters = new JObject(
         new JProperty("playerid", playerId),
         new JProperty("to", goTo.ToString().ToLower()));
     await ConnectionManager.ExecuteRPCRequest("Player.GoTo", parameters);
 }
Example #14
0
 public GoToAggresive(AgentUnit agent, Vector3 target, float rangeRadius, Action <bool> callback) : base(agent, callback)
 {
     this.target     = target;
     this.defendZone = new DefendZone(agent, agent.position, rangeRadius, (_) => { });
     this.fighting   = false;
     this.goTo       = new GoTo(agent, target, (bool result) => {
         goTo.Terminate();
         goTo = null;
     });
 }
 public void WhenTheUserSearchesForAllOrdersSubmittedAfter1stJun2009()
 {
     // PlayStep for now
     GoTo.OrdersPage(driver);
     FilterOrdersBySubmittedDate.FromDate(driver, 1, "Jun", "2011");
     FilterOrdersBySubmittedDate.ToDate(driver, 1, "Oct", "2019");
     Console.WriteLine(VerifyOrderExists.FindOrder(driver, "2"));
     //VerifyOrderExists.DoesAnOrderExistOnThePage(driver);
     //VerifyOrderExists.DmiOrderIdEquals(driver, "1");
 }
Example #16
0
 public void WhenTheUserAttemptsToLogIn()
 {
     _Logger.Info("Logging in to the DMI now");
     // IWebDriver driver = new ChromeDriver();
     LoginTo.DMI(driver.driver);
     GoTo.OrdersPage(driver.driver);
     GoTo.SettlementsPage(driver.driver);
     GoTo.RegisterPage(driver.driver);
     GoTo.BalancesPage(driver.driver);
 }
        public void AddsCorrectly()
        {
            var instruction  = new GoTo("test");
            var instructions = new SceneInstructions();

            instructions.Add(instruction);
            var result = Assert.Single(instructions.Instructions);

            Assert.Equal(instruction, result);
        }
Example #18
0
        public string GetText(GoTo goTo, bool force = false)
        {
            switch (goTo)
            {
            case GoTo.TrackingStation:
                return(Localizer.Format("quickgoto_goto") + " " + Localizer.Format("quickgoto_ts"));

            case GoTo.SpaceCenter:
                return(Localizer.Format("quickgoto_goto") + " " + Localizer.Format("quickgoto_sc"));

            case GoTo.MissionControl:
                return(Localizer.Format("quickgoto_goto") + " " + Localizer.Format("quickgoto_mc"));

            case GoTo.Administration:
                return(Localizer.Format("quickgoto_goto") + " " + Localizer.Format("quickgoto_admin"));

            case GoTo.RnD:
                return(Localizer.Format("quickgoto_goto") + " " + Localizer.Format("quickgoto_rnd"));

            case GoTo.AstronautComplex:
                return(Localizer.Format("quickgoto_goto") + " " + Localizer.Format("quickgoto_ac"));

            case GoTo.VAB:
                return(Localizer.Format("quickgoto_goto") + " " + Localizer.Format("quickgoto_vab"));

            case GoTo.SPH:
                return(Localizer.Format("quickgoto_goto") + " " + Localizer.Format("quickgoto_sph"));

            case GoTo.LastVessel:
                QData _lastVessel = LastVesselLastIndex();
                return(Localizer.Format("quickgoto_goto") + " " + (_lastVessel != null && !force ? Localizer.Format("quickgoto_vessle") + _lastVessel.protoVessel.vesselName : Localizer.Format("quickgoto_lastVessel")));

            case GoTo.Recover:
                return(Localizer.Format("quickgoto_recover"));

            case GoTo.Revert:
                return(Localizer.Format("quickgoto_revert") + " " + Localizer.Format("quickgoto_launch"));

            case GoTo.RevertToEditor:
                return(Localizer.Format("quickgoto_revert") + " " + Localizer.Format("quickgoto_editor"));

            case GoTo.RevertToSpaceCenter:
                return(Localizer.Format("quickgoto_revert") + " " + Localizer.Format("quickgoto_sc"));

            case GoTo.MainMenu:
                return(Localizer.Format("quickgoto_goto") + " " + Localizer.Format("quickgoto_mainMenu"));

            case GoTo.Settings:
                return(Localizer.Format("quickgoto_goto") + " " + Localizer.Format("quickgoto_toSettings"));

            case GoTo.Configurations:
                return(RegisterToolbar.MOD + Localizer.Format("quickgoto_settings"));
            }
            return(string.Empty);
        }
Example #19
0
        public string GetText(GoTo goTo, bool force = false)
        {
            switch (goTo)
            {
            case GoTo.TrackingStation:
                return("Go to the Tracking Station");

            case GoTo.SpaceCenter:
                return("Go to the Space Center");

            case GoTo.MissionControl:
                return("Go to the Mission Control");

            case GoTo.Administration:
                return("Go to the Administration");

            case GoTo.RnD:
                return("Go to the Research and Dev.");

            case GoTo.AstronautComplex:
                return("Go to the Astronaut Complex");

            case GoTo.VAB:
                return("Go to the Vehicle Assembly");

            case GoTo.SPH:
                return("Go to the Space Plane Hangar");

            case GoTo.LastVessel:
                QData _lastVessel = LastVesselLastIndex();
                return(string.Format("Go to the {0}", (_lastVessel != null && !force ? "vessel: " + _lastVessel.protoVessel.vesselName : "last Vessel")));

            case GoTo.Recover:
                return("Recover");

            case GoTo.Revert:
                return("Revert to Launch");

            case GoTo.RevertToEditor:
                return("Revert to Editor");

            case GoTo.RevertToSpaceCenter:
                return("Revert to SpaceCenter");

            case GoTo.MainMenu:
                return("Go to The Main Menu");

            case GoTo.Settings:
                return("Go to the Settings");

            case GoTo.Configurations:
                return("QuickGoTo: Settings");
            }
            return(string.Empty);
        }
Example #20
0
        private void gotoMenuItem_Click(object sender, RoutedEventArgs e)
        {
            if (ActiveDocument == null)
            {
                return;
            }

            GoTo MyGoTo = new GoTo(ActiveDocument.Scintilla.Scintilla);

            MyGoTo.ShowGoToDialog();
        }
Example #21
0
 public void RevertToSpaceCenter()
 {
     SavedGoTo = GoTo.None;
     if (CanRevertToSpaceCenter)
     {
         gotoSpaceCenter(FlightDriver.PreLaunchState);
         Log(GetText(GoTo.RevertToSpaceCenter));
         return;
     }
     screenMSG(GoTo.RevertToSpaceCenter);
 }
Example #22
0
 public void SPH()
 {
     SavedGoTo = GoTo.None;
     if (CanEditor(EditorFacility.SPH))
     {
         gotoSPH();
         Log(GetText(GoTo.SPH));
         return;
     }
     screenMSG(GoTo.SPH);
 }
Example #23
0
 public void VAB()
 {
     SavedGoTo = GoTo.None;
     if (CanEditor(EditorFacility.VAB))
     {
         gotoVAB();
         Log(GetText(GoTo.VAB));
         return;
     }
     screenMSG(GoTo.VAB);
 }
Example #24
0
    public RestoreHealth(AgentUnit agent, Action <bool> callback) : base(agent, callback)
    {
        healingPoint = Info.GetClosestHealingPoint(agent.position, 150f).position;

        this.goTo = new GoTo(agent, healingPoint, Mathf.Infinity, 0, true, (bool success) => {
            goTo.Terminate();
            goTo       = null;
            defendZone = new DefendZone(agent, agent.position, 2f, (_) => {
            });
        });
    }
Example #25
0
 public void onGamePress()
 {
     AppSoundManager.Get().PlaySfx(Sfx.Type.sfx_click);
     loadScreen.SetActive(true);
     //GoTo.LoadMegaCity ();
     GoTo.LoadNewShop();
     //StartCoroutine (showIntersential ());
     AdMob_Manager.Instance.curTime = 0f;
     AdMob_Manager.Instance.hideBanner();
     //GoTo.LoadEnvironmentChoose();
 }
        public void ThenTheCorrectExpressionIsUsed()
        {
            var testObject = new object();
            var expression = new Mock<IExpression>();
            var expressions = new List<IExpression> { new Mock<IExpression>().Object, new Mock<IExpression>().Object, expression.Object };

            var subject = new GoTo(2);
            subject.Resolve(testObject, expressions);

            expression.Verify(x => x.Resolve(testObject, expressions), Times.Once);
        }
Example #27
0
 public void spaceCenter()
 {
     SavedGoTo = GoTo.None;
     if (CanSpaceCenter)
     {
         gotoSpaceCenter();
         Log(GetText(GoTo.SpaceCenter));
         return;
     }
     screenMSG(GoTo.SpaceCenter);
 }
 public string ClickEventName(IGeneratorPage currentPage)
 {
     if (GoTo.GoToPage == GeneratorPage.CurrentPage)
     {
         IGeneratorPageNavigation Copy = GoTo.CreateCopyForPage(currentPage, this);
         return(Copy.EventName);
     }
     else
     {
         return(GoTo.EventName);
     }
 }
Example #29
0
        // TabControl
        public void SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            TabItem   CurSelected = Core.Controller.Search.SearchControl.Items[Core.Controller.Search.SearchControl.SelectedIndex] as TabItem;
            TextBlock Header      = Core.Controller.Search.Head.Children[(int)Structures.SearchHeader.HeaderBox] as TextBlock;

            Header.Text = CurSelected.Header.ToString();

            if (Core.Controller.Search.SearchControl.SelectedIndex == 2)
            {
                GoTo.RefreshLineOffset();
            }
        }
Example #30
0
 public void RevertToSpaceCenter()
 {
     SavedGoTo = GoTo.None;
     if (CanRevertToSpaceCenter)
     {
         gotoSpaceCenter(FlightDriver.PreLaunchState);
         Log(GetText(GoTo.RevertToSpaceCenter));
         return;
     }
     Warning("You can't " + GetText(GoTo.RevertToSpaceCenter), "QGoTo");
     ScreenMessages.PostScreenMessage("You can't " + GetText(GoTo.RevertToSpaceCenter), 10, ScreenMessageStyle.UPPER_RIGHT);
 }
Example #31
0
 public void SPH()
 {
     SavedGoTo = GoTo.None;
     if (CanEditor(EditorFacility.SPH))
     {
         gotoSPH();
         Log(GetText(GoTo.SPH));
         return;
     }
     Warning("You can't " + GetText(GoTo.SPH), "QGoTo");
     ScreenMessages.PostScreenMessage("You can't " + GetText(GoTo.SPH), 10, ScreenMessageStyle.UPPER_RIGHT);
 }
Example #32
0
 public void spaceCenter()
 {
     SavedGoTo = GoTo.None;
     if (CanSpaceCenter)
     {
         gotoSpaceCenter();
         Log(GetText(GoTo.SpaceCenter));
         return;
     }
     Warning("You can't " + GetText(GoTo.SpaceCenter), "QGoTo");
     ScreenMessages.PostScreenMessage("You can't " + GetText(GoTo.SpaceCenter), 10, ScreenMessageStyle.UPPER_RIGHT);
 }
Example #33
0
        //3byte를 더 보낸다는 의미로 3을 보내고
        //left면 1, right면 0
        //col
        //row
        public bool Send(GoTo action)
        {
            byte[] message = new byte[4];
            string[] user_col_row = action.data.Split(':');
            if (user_col_row.Length != 3)
                return false;

            message[0] = 3;
            message[1] = Convert.ToByte(user_col_row[0] == "left");
            message[2] = Convert.ToByte(Convert.ToInt32(user_col_row[1])+1);
            message[3] = Convert.ToByte(Convert.ToInt32(user_col_row[2]) + 1);
            return Send(message);
        }
 //Minimize iþlemi sonu...
 private void button6_Click(object sender, EventArgs e)
 {
     if (running)
     {
         GoTo gotoform = new GoTo();
         gotoform.Show();
     }
 }