void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (GizlilikButton != null) { GizlilikButton.Dispose(); GizlilikButton = null; } if (HakkindaLabel != null) { HakkindaLabel.Dispose(); HakkindaLabel = null; } if (HeaderView != null) { HeaderView.Dispose(); HeaderView = null; } if (SartlarButton != null) { SartlarButton.Dispose(); SartlarButton = null; } }
private static async void FinishCreatingAsyncVoid(BackButton backButton, Frame frame, NavigationService service) { await Task.CompletedTask; // TODO: add this feature back in if you can figure out the reason for an err // await ClearExpiredCacheAsync(service); service.BackButtonHandling = backButton; if (backButton == BackButton.Attach) { frame.RegisterPropertyChangedCallback(Frame.CanGoBackProperty, (s, args) => GestureService.UpdateBackButton(service.CanGoBack)); Central.Messenger.Subscribe <Messages.BackRequestedMessage>(frame, async m => { await service.GoBackAsync(); }); } if (!Instances.Any()) { Default = service; } Instances.Register(service); Central.Messenger.Send(new Messages.NavigationServiceCreatedMessage { NavigationService = service, BackButtonHandling = backButton, IsDefault = Default == service, Dispatcher = service.GetDispatcher() }); }
void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (NavBar != null) { NavBar.Dispose(); NavBar = null; } if (NotificationSoundPicker != null) { NotificationSoundPicker.Dispose(); NotificationSoundPicker = null; } if (NotificationsSectionHeader != null) { NotificationsSectionHeader.Dispose(); NotificationsSectionHeader = null; } }
void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } if (PreferencesButton != null) { PreferencesButton.Dispose(); PreferencesButton = null; } if (RefreshButton != null) { RefreshButton.Dispose(); RefreshButton = null; } if (Content != null) { Content.Dispose(); Content = null; } }
protected override void DidActivate(bool firstActivation, ActivationType activationType) { MainScreen = GameObject.Find("MainScreen"); MainScreenPosition = MainScreen.transform.position; if (firstActivation && activationType == ActivationType.AddedToHierarchy) { Instance = this; title = "Counters+"; navigationController = BeatSaberUI.CreateViewController <BackButton>(); navigationController.DidFinishEvent += BackButton_DidFinish; editSettings = BeatSaberUI.CreateViewController <CountersPlusEditViewController>(); placeholder = BeatSaberUI.CreateViewController <CountersPlusFillerForMainViewController>(); //settingsList = BeatSaberUI.CreateViewController<CountersPlusSettingsListViewController>(); horizSettingsList = BeatSaberUI.CreateViewController <CountersPlusHorizontalSettingsListViewController>(); credits = BeatSaberUI.CreateViewController <CountersPlusCreditsViewController>(); } SetViewControllersToNavigationConctroller(navigationController, new VRUIViewController[] { credits }); ProvideInitialViewControllers(placeholder, navigationController, editSettings, horizSettingsList); MainScreen.transform.position = new Vector3(0, -100, 0); //"If it works it's not stupid" CounterWarning.CreateWarning("Due to limitations, some counters may not reflect their true appearance in-game.", 7.5f); if (!Plugin.UpToDate) { CounterWarning.CreateWarning("A new Counters+ update is available to download!", 5); } StartCoroutine(InitMockCounters()); }
void OnTriggerEnter2D(Collider2D col) { if (col.gameObject.name == "Player") { BackButton.OnTap(); } }
private void Awake() { bb = this; control = GetComponent<dfControl>(); tabcontainer = MenuTabContainer.tab; Hide(); }
public virtual void Awake() { BackButton.Init(); SoundyManager.Init(); Database.Add(GetComponent <T>()); UpdateStartValues(); }
private void MainForm_KeyUp(object sender, KeyEventArgs e) { if (InvokeRequired) { Invoke(new KeyEventHandler(MainForm_KeyUp), sender, e); return; } if (e.KeyCode == Keys.Back || e.KeyCode == Keys.BrowserBack || (e.Alt && e.KeyCode == Keys.Left)) { BackButton.PerformClick(); return; } if (e.KeyCode == Keys.BrowserForward || (e.Alt && e.KeyCode == Keys.Right)) { NextButton.PerformClick(); return; } if (e.KeyCode == Keys.F5 || e.KeyCode == Keys.BrowserRefresh) { RefreshButton.PerformClick(); return; } }
// Update is called once per frame void Update() { if (tutorialNum < 0) { tutorialNum = 0; } if (tutorialNum > 1) { tutorialNum = 1; } if (tutorialNum == 0) { BackButton.SetActive(false); NextButton.SetActive(true); tutorial0.SetActive(true); tutorial1.SetActive(false); } if (tutorialNum == 1) { BackButton.SetActive(true); NextButton.SetActive(false); tutorial0.SetActive(false); tutorial1.SetActive(true); } }
private void OnDestroy() { BackBtn = null; PlayBtn = null; PauseBtn = null; NextBtn = null; VolumeBtn = null; FocusBtn = null; SettingBtn = null; VideoNameText = null; VolumeImages = null; PlayPBPanel = null; VolumePanel = null; SettingsPanel = null; PlayBtnHovrSprite = null; PlayBtnNorSprite = null; PauseBtnHovrSprite = null; PauseBtnNorSprite = null; PlayBtnChildImage = null; PauseBtnChildImage = null; ClickBackBtnCallback = null; ClickPlayBtnAndReplayCallback = null; ClickPlayBtnCallback = null; ClickPauseBtnCallback = null; ClickPreviousBtnCallback = null; ClickNextBtnCallback = null; PointerEnterUICallback = null; VolumeValueChangedByUICallback = null; }
public TestSceneBackButton() { Child = new Container { Anchor = Anchor.Centre, Origin = Anchor.Centre, Size = new Vector2(300), Masking = true, Children = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = Color4.SlateGray }, button = new BackButton { Anchor = Anchor.BottomLeft, Origin = Anchor.BottomLeft, Action = () => button.Hide(), } } }; AddStep("show button", () => button.Show()); AddStep("hide button", () => button.Hide()); }
// Update is called once per frame void Update() { if (transform.position.y >= 19.2f) { transform.position = new Vector2(transform.position.x, 19.2f); } if (CollectibleTeleport.tpWater == true) { if (hasTpd == false) { transform.position = new Vector2(transform.position.x, tpY); hasTpd = true; } } if (hasTpd == false) { transform.Translate(Vector2.up / startSpeed); } if (hasTpd == true) { transform.Translate(Vector2.up / tpSpeed); } if (transform.position.y - GameObject.Find("Player").transform.position.y >= -5.9f) { BackButton.OnTap(); } }
protected void Back() { NameLabel.Hide(); NameBox.Hide(); NameBox.Text = ""; TypeLabeld.Hide(); Typebox.Hide(); OwnerLabel.Hide(); OwnerBox.Hide(); OwnerBox.Text = ""; AddButton.Show(); ViewButton.Show(); BackButton.Hide(); DoneButton.Hide(); ScreenLabel.Hide(); ScreenSpin.Hide(); ScreenSpin.Text = "0"; CatLabel.Hide(); CatBox.Hide(); ExcLabel.Hide(); ExTablesButton.Hide(); ExTablesButton.Active = false; HoursLabel.Hide(); HoursBox.Hide(); HoursBox.Text = ""; }
void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (EnglishButton != null) { EnglishButton.Dispose(); EnglishButton = null; } if (ModifyButton != null) { ModifyButton.Dispose(); ModifyButton = null; } if (SpanishButton != null) { SpanishButton.Dispose(); SpanishButton = null; } if (TitleViewLabel != null) { TitleViewLabel.Dispose(); TitleViewLabel = null; } }
void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (BuildVersionLbl != null) { BuildVersionLbl.Dispose(); BuildVersionLbl = null; } if (ContentText != null) { ContentText.Dispose(); ContentText = null; } if (AccessibilityStatementButton != null) { AccessibilityStatementButton.Dispose(); AccessibilityStatementButton = null; } if (HeaderLabel != null) { HeaderLabel.Dispose(); HeaderLabel = null; } }
// Går tilbage til visning af hele løbet i tabellen private void BackButton_Click(object sender, EventArgs e) { headers--; isLeg = false; Put_Data(MainLeg); BackButton.Hide(); }
public override void ViewDidLoad() { base.ViewDidLoad(); BackButton.SetCommand(ViewModel.BackCommand); BackButton.SetTitle(ViewModel.BackText, UIControlState.Normal); }
private static async void FinishCreatingAsync(BackButton backButton, Frame frame, NavigationService service) { await Task.CompletedTask; // TODO: add this feature back in if you can figure out the reason for an err // await ClearExpiredCacheAsync(service); service.BackButtonHandling = backButton; frame.RequestedTheme = Settings.DefaultTheme; if (backButton == BackButton.Attach) { // frame.RegisterPropertyChangedCallback(Frame.BackStackDepthProperty, (s, args) => BackButtonService.GetInstance().UpdateBackButton(service.CanGoBack)); frame.Navigated += (s, args) => BackButtonService.UpdateBackButton(service.CanGoBack); BackButtonService.BackRequested += async(s, e) => e.Handled = await service.GoBackAsync(); } if (!Instances.Any()) { Default = service; } Instances.Add(service); Central.MessengerService.Send(new Messages.NavigationServiceCreatedMessage { NavigationService = service, BackButtonHandling = backButton, IsDefault = Default == service, Dispatcher = service.GetDispatcher() }); }
private void QuitButton_Click(object sender, EventArgs e) { try { Program.gameController.QuitGame(_state.GetValue().id, Program.infoController.profile.id); ExitGame(); } catch (FaultException <PlayerNotInSpecifiedGameFault> ) { UpdateTimer.Enabled = false; MessageBox.Show("Player not in specified game!"); ExitGame(); } catch (FaultException <EmptyResultsFault> ) { UpdateTimer.Enabled = false; MessageBox.Show("Game is not available!"); ExitGame(); } catch (CommunicationException) { UpdateTimer.Enabled = false; MessageBox.Show("Unable to connect to server!\nPlease try again Later."); BackButton.Show(); } catch (Exception ex) { UpdateTimer.Enabled = false; MessageBox.Show("Unforseen error!, " + ex.Message); BackButton.Show(); } }
public TicTacToePage() { InitializeComponent(); _state = new BasicObserver <MatchState>(); BackButton.Hide(); _gameOver = false; }
private async void LoadBackground() { #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed if (!Settings.PerformanceMode) { Task.Run(async() => { BitmapImage bmp = await Database.GetFanArt(series.id); Dispatcher.Invoke(() => { if (bmp != null) { BackgroundImage.Source = bmp; Darkener.Visibility = Visibility.Visible; var sb = (Storyboard)FindResource("BlurImage"); sb.Begin(); var sboard = (Storyboard)FindResource("OpacityUp"); sboard.Begin(BackgroundImage); } else { BackButton.SetResourceReference(Image.SourceProperty, "BackIcon"); } }, DispatcherPriority.Send); }); } #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed }
public void OnClickArcadeBurger(int mode) { PlayerPrefs.SetInt("RecipeSelected", mode); StartCoroutine(LoadLevel("Arcade Scene")); NextPanel(LoadingPanel); BackButton.SetActive(false); }
void ReleaseDesignerOutlets() { if (ActivatedLabel != null) { ActivatedLabel.Dispose(); ActivatedLabel = null; } if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } if (IconImage != null) { IconImage.Dispose(); IconImage = null; } if (NavItem != null) { NavItem.Dispose(); NavItem = null; } }
private void Setup() { if (string.IsNullOrEmpty(PrivacyPolicy)) { StartCoroutine(GET_FILE(SERVER_FILE.PP)); } Accept.GetComponentInChildren <TextMeshProUGUI>().text = "Continue"; Decline.GetComponentInChildren <TextMeshProUGUI>().text = "Back"; Decline.onClick.AddListener(delegate() { Setup(); BackButton.GetComponent <Button>().onClick.Invoke(); }); MainContent.text = "\n\n\nThe YUR Mobile App requires the creation of a YUR account." + "\n In order to do that, you will have to read, understand and agree to the following" + "\n Privacy Policy, Terms of Service, and End User License Agreement." + "\n" + "\n" + "Press Continue"; Accept.interactable = true; unityAction = new UnityEngine.Events.UnityAction(delegate() { Display_PrivacyPolicy(); }); Accept.onClick.AddListener(unityAction); Legal.SetActive(true); SignUp.SetActive(false); }
private void TimeTable_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Back) { BackButton.PerformClick(); } }
private void InitializeAllStrings() { // login EmailTextField.Placeholder = Application.LocalizedString("EmailAddress"); PasswordTextField.Placeholder = Application.LocalizedString("Password"); LoginButton.SetTitle(Application.LocalizedString("Login"), UIControlState.Normal); WhatIsSeekiosButton.SetTitle(Application.LocalizedString("WhatIsSeekios"), UIControlState.Normal); // double action forget/create ForgetPasswordButton.SetTitle(Application.LocalizedString("ForgetPassword"), UIControlState.Normal); CreateAccountButton.SetTitle(Application.LocalizedString("CreateAccount"), UIControlState.Normal); BackButton.SetTitle(Application.LocalizedString("Back"), UIControlState.Normal); // createAccount FirstNameTextField.Placeholder = Application.LocalizedString("FirstName"); LastNameTextField.Placeholder = Application.LocalizedString("LastName"); PasswordTextFieldOfRegistration.Placeholder = Application.LocalizedString("Password"); ConfirmPasswordTextField.Placeholder = Application.LocalizedString("ConfirmPassword"); RegistrationButton.SetTitle(Application.LocalizedString("CreateMyAccount"), UIControlState.Normal); EmailTextFieldOfRegistration.Placeholder = Application.LocalizedString("EmailAddress"); ErrorMessageLabel.Text = Application.LocalizedString("PasswordErrorLength"); // forget Password EmailTextFieldOfForgetPassword.Placeholder = Application.LocalizedString("EmailAddress"); ResetPasswordButton.SetTitle(Application.LocalizedString("ResetPassword"), UIControlState.Normal); }
/// <summary> /// Creates a new NavigationService from the gived Frame to the /// WindowWrapper collection. In addition, it optionally will setup the /// shell back button to react to the nav of the Frame. /// A developer should call this when creating a new/secondary frame. /// </summary> /// <remarks> /// The shell back button should only be setup one time. /// </remarks> public static async Task <INavigationService> CreateAsync(BackButton backButton, Frame frame = null) { await CheckAllCacheExpiryAsync(); var existing = frame.GetNavigationService(); if (existing != null) { return(existing); } var service = new NavigationService(frame); service.BackButtonHandling = backButton; if (backButton == BackButton.Attach) { frame.RegisterPropertyChangedCallback(Frame.BackStackDepthProperty, (s, args) => BackButtonService.BackButtonService.Instance.UpdateBackButton(service.CanGoBack)); frame.Navigated += (s, args) => BackButtonService.BackButtonService.Instance.UpdateBackButton(service.CanGoBack); BackButtonService.BackButtonService.Instance.BackRequested += async(s, e) => e.Handled = await service.GoBackAsync(); } if (!NavigationServiceHelper.Instances.Any()) { NavigationServiceHelper.Default = service; } NavigationServiceHelper.Instances.Add(service); return(service); }
void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (ButtonView != null) { ButtonView.Dispose(); ButtonView = null; } if (ContentText != null) { ContentText.Dispose(); ContentText = null; } if (HeaderLabel != null) { HeaderLabel.Dispose(); HeaderLabel = null; } if (UrlLabel != null) { UrlLabel.Dispose(); UrlLabel = null; } }
// Update is called once per frame void Update() { if (GameObject.Find("Player").transform.position.x >= -46.5f && GameObject.Find("Player").transform.position.y <= 51.2f && GameObject.Find("Player").transform.position.y >= 50f) { BackButton.OnTap(); } }
void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (ForgotYourPasswordButton != null) { ForgotYourPasswordButton.Dispose(); ForgotYourPasswordButton = null; } if (LogInButton != null) { LogInButton.Dispose(); LogInButton = null; } if (PasswordLabel != null) { PasswordLabel.Dispose(); PasswordLabel = null; } if (UserNameLabel != null) { UserNameLabel.Dispose(); UserNameLabel = null; } }
void Start() { gameOverUI = GameObject.Find("GameOver").gameObject; back = gameOverUI.GetComponent<ScoreUpdate>().back; gold = GameObject.Find("GameOverGoldCubes").GetComponent<GameOverGoldCubes>(); LanguageManager languageManager = LanguageManager.Instance; languageManager.OnChangeLanguage += OnChangeLanguage; OnChangeLanguage(languageManager); initRest(); }
/// <summary> /// Craetes a new FamFrame and adds the resulting NavigationService to the /// WindowWrapper collection. In addition, it optionally will setup the /// shell back button to react to the nav of the Frame. /// A developer should call this when creating a new/secondary frame. /// The shell back button should only be setup one time. /// </summary> public Services.NavigationService.NavigationService NavigationServiceFactory(BackButton backButton, ExistingContent existingContent) { var frame = new Frame { Language = Windows.Globalization.ApplicationLanguages.Languages[0], Content = (existingContent == ExistingContent.Include) ? Window.Current.Content : null, }; var navigationService = new Services.NavigationService.NavigationService(frame); WindowWrapper.Current().NavigationServices.Add(navigationService); if (backButton == BackButton.Attach) { // TODO: unattach others // update shell back when backstack changes // only the default frame in this case because secondary should not dismiss the app frame.RegisterPropertyChangedCallback(Frame.BackStackDepthProperty, (s, args) => UpdateShellBackButton()); // update shell back when navigation occurs // only the default frame in this case because secondary should not dismiss the app frame.Navigated += (s, args) => UpdateShellBackButton(); } // this is always okay to check, default or not // expire any state (based on expiry) DateTime cacheDate; // default the cache age to very fresh if not known var otherwise = DateTime.MinValue.ToString(); if (DateTime.TryParse(navigationService.FrameFacade.GetFrameState(CacheDateKey, otherwise), out cacheDate)) { var cacheAge = DateTime.Now.Subtract(cacheDate); if (cacheAge >= CacheMaxDuration) { // clear state in every nav service in every view foreach (var service in WindowWrapper.ActiveWrappers.SelectMany(x => x.NavigationServices)) { service.FrameFacade.ClearFrameState(); } } } else { // no date, that's okay } return navigationService; }
public void Awake() { businessAd = GameObject.Find("BusinessAd"); backBtn = GameObject.Find("BackButton").GetComponent<BackButton>(); }
// Use this for initialization void Start () { b = transform.parent.parent.GetComponentInChildren<BackButton>(); img.sprite = imgCont.resourceIcons[(int)WorkerSender.resOpen]; }
void Start() { menus = GameObject.Find("Menus").GetComponent<MenusController>(); back = menus.backButton.GetComponent<BackButton>(); }