IEnumerator OpenStrongbox() { // play sound effect of strongbox opening if (m_strongbox != null) { m_strongbox.PlayStrongboxOpened(); } yield return(new WaitForSeconds(1)); // change the Sprite of the strongbox to the open one if (strongboxGO != null) { strongboxGO.GetComponent <SpriteRenderer> ().sprite = openStrongbox; BorderHighlight sbBorderHighlight = strongboxGO.GetComponent <BorderHighlight> (); sbBorderHighlight.normal = openStrongbox; sbBorderHighlight.over = openStrongboxOver; } // make the bag appear on the screen if (bagGO != null) { bagGO.SetActive(true); } // deactivate the LEDs strongboxLedsLight.gameObject.SetActive(false); // change the value of the local variable: strongboxOpen AC.LocalVariables.SetBooleanValue(0, true); // End the cutscene KickStarter.stateHandler.EndCutscene(); }
public void SwitchToFrame(IWebDriver driver) { PrintActionInfo(nameof(SwitchToFrame)); Execute(frame => { BorderHighlight.Highlight(frame, Color.Green); driver.SwitchTo().Frame(frame); }, driver); }
public void SendKeys(string textToInput, IWebDriver driver) { WaitElementDisplayed(driver); PrintActionInfo(nameof(SendKeys)); Execute(input => { BorderHighlight.Highlight(input, Color.Blue); input.SendKeys(textToInput); }, driver); }
public void Click(IWebDriver driver) { WaitElementDisplayed(driver); PrintActionInfo(nameof(Click)); Execute(button => { BorderHighlight.Highlight(button, Color.Red); button.Click(); }, driver); }
private void BorderHighlight_Click(object sender, RoutedEventArgs e) { try { if (filteredImage.Source == null) { FillStaticProperties(originalImage, filteredImage); Matrix = KernelMatrix(BmpImage.Width, BmpImage.Height); } BorderHighlight.Filter(); } catch (OriginalImageDontExistException exception) { MessageBox.Show(exception.Message); } }