private void Tutopopup_NextStep(BCA_TutoPopup popup) { _tutoIndex++; if (_tutoIndex == StartDisclaimer.ShopTutorial.Length - 1) { popup.btnNext.Visibility = Visibility.Hidden; popup.btnSkip.ButtonText = "Fin !"; popup.btnSkip.Update(); } switch (_tutoIndex) { case 1: SetOriginalColor(btn_searchcard); SetTutorialColor(btn_brocante); break; } if (_tutoIndex >= StartDisclaimer.ShopTutorial.Length) { SkipTutorial(popup); } else { popup.SetText(StartDisclaimer.ShopTutorial[_tutoIndex]); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { lb_booster.Items.Clear(); foreach (BoosterInfo item in BoosterManager.Boosters[PurchaseType.Booster]) { lb_booster.Items.Add(item); } img_booster.MouseLeftButtonDown += Img_booster_MouseLeftButtonDown; lb_booster.SelectedIndex = 0; if (FormExecution.ClientConfig.DoTutoShop) { BCA_TutoPopup tutopopup = new BCA_TutoPopup(); maingrid.Children.Add(tutopopup); tutopopup.HorizontalAlignment = HorizontalAlignment.Center; tutopopup.VerticalAlignment = VerticalAlignment.Center; tutopopup.tuto_popup.IsOpen = true; tutopopup.tuto_popup.Placement = System.Windows.Controls.Primitives.PlacementMode.Center; tutopopup.tuto_popup.PlacementTarget = maingrid; tutopopup.SetText(StartDisclaimer.ShopTutorial[_tutoIndex]); tutopopup.tuto_popup.MaxWidth = this.Width - 200; tutopopup.SkipTuto += SkipTutorial; tutopopup.NextStep += Tutopopup_NextStep; SetTutorialColor(btn_searchcard); } }
private void Chat_Loaded(object sender, RoutedEventArgs e) { LoadStyle(); cb_defaultdeck.PreviewMouseLeftButtonDown += cb_defaultdeck_click; RefreshDeck(); cb_defaultdeck.Text = YgoproConfig.GetDefaultDeck(); tb_version.Text = FormExecution.Username + " - " + Main.VERSION + "c" + FormExecution.ClientConfig.CardsStuffVersion; this.Title = FormExecution.Username + " - " + Main.VERSION + "c" + FormExecution.ClientConfig.CardsStuffVersion; foreach (var groups in FormExecution.AssetsManager.Smileys) { TextBlock tb = new TextBlock(); tb.Text = groups.Key; tb.FontStyle = FontStyles.Italic; tb.FontWeight = FontWeights.Bold; tb.TextDecorations = TextDecorations.Underline; tb.Width = smiley_popup.Width; tb.Margin = new Thickness(0, 5, 0, 5); wp_smileys.Children.Add(tb); foreach (Smiley s in groups.Value) { BCA_Smiley uismiley = new BCA_Smiley(s.Pic); uismiley.Clicked += () => AddSmiley(s.Name); wp_smileys.Children.Add(uismiley); } } logger.Trace("Style loaded."); if (FormExecution.ClientConfig.DoTutoChat) { BCA_TutoPopup tutopopup = new BCA_TutoPopup(); maingrid.Children.Add(tutopopup); tutopopup.HorizontalAlignment = HorizontalAlignment.Center; tutopopup.VerticalAlignment = VerticalAlignment.Center; tutopopup.tuto_popup.IsOpen = true; tutopopup.tuto_popup.Placement = System.Windows.Controls.Primitives.PlacementMode.Center; tutopopup.tuto_popup.PlacementTarget = maingrid; tutopopup.SetText(StartDisclaimer.ChatTutorial[_tutoIndex]); tutopopup.tuto_popup.MaxWidth = this.Width - 200; tutopopup.SkipTuto += SkipTutorial; tutopopup.NextStep += Tutopopup_NextStep; } }
private void Tutopopup_NextStep(BCA_TutoPopup popup) { _tutoIndex++; if (_tutoIndex == StartDisclaimer.ArenaTutorial.Length - 1) { popup.btnNext.Visibility = Visibility.Hidden; popup.btnSkip.ButtonText = "Fin !"; popup.btnSkip.Update(); } switch (_tutoIndex) { case 1: SetTutorialColor(btn_ranking); SetTutorialColor(btn_playranked); break; case 2: SetOriginalColor(btn_ranking); SetOriginalColor(btn_playranked); SetTutorialColor(btn_host); break; case 3: SetOriginalColor(btn_host); SetTutorialColor(btn_IA); break; case 4: SetOriginalColor(btn_IA); SetTutorialColor(btn_Switch_Rooms_Visible); break; case 5: SetOriginalColor(btn_Switch_Rooms_Visible); break; } if (_tutoIndex >= StartDisclaimer.ArenaTutorial.Length) { SkipTutorial(popup); } else { popup.SetText(StartDisclaimer.ArenaTutorial[_tutoIndex]); } }
private void Arena_Loaded(object sender, RoutedEventArgs e) { LoadStyle(); if (FormExecution.ClientConfig.DoTutoArena) { BCA_TutoPopup tutopopup = new BCA_TutoPopup(); maingrid.Children.Add(tutopopup); tutopopup.HorizontalAlignment = HorizontalAlignment.Center; tutopopup.VerticalAlignment = VerticalAlignment.Center; tutopopup.tuto_popup.IsOpen = true; tutopopup.tuto_popup.Placement = System.Windows.Controls.Primitives.PlacementMode.Center; tutopopup.tuto_popup.PlacementTarget = maingrid; tutopopup.SetText(StartDisclaimer.ArenaTutorial[_tutoIndex]); tutopopup.tuto_popup.MaxWidth = this.Width - 200; tutopopup.SkipTuto += SkipTutorial; tutopopup.NextStep += Tutopopup_NextStep; } }
private void DailyQuestWindow_Loaded(object sender, RoutedEventArgs e) { if (FormExecution.ClientConfig.DoTutoQuests) { BCA_TutoPopup tutopopup = new BCA_TutoPopup(); maingrid.Children.Add(tutopopup); tutopopup.HorizontalAlignment = HorizontalAlignment.Center; tutopopup.VerticalAlignment = VerticalAlignment.Center; tutopopup.tuto_popup.IsOpen = true; tutopopup.tuto_popup.Placement = System.Windows.Controls.Primitives.PlacementMode.Center; tutopopup.tuto_popup.PlacementTarget = maingrid; tutopopup.SetText(StartDisclaimer.QuestsTutorial); tutopopup.tuto_popup.MaxWidth = FormExecution.GetChat().Width - 200; tutopopup.btnNext.Visibility = Visibility.Hidden; tutopopup.btnSkip.ButtonText = "Fin !"; tutopopup.btnSkip.Update(); tutopopup.SkipTuto += SkipTutorial; tutopopup.NextStep += Tutopopup_NextStep; } }
private void Tutopopup_NextStep(BCA_TutoPopup popup) { _tutoIndex++; if (_tutoIndex == StartDisclaimer.ChatTutorial.Length - 1) { popup.btnNext.Visibility = Visibility.Hidden; popup.btnSkip.ButtonText = "Fin !"; popup.btnSkip.Update(); } switch (_tutoIndex) { case 1: SetTutorialColor(btnArene); break; case 2: SetOriginalColor(btnArene); SetTutorialColor(btnShop); break; case 3: SetOriginalColor(btnShop); SetTutorialColor(btnDecks); break; case 4: SetOriginalColor(btnDecks); SetTutorialColor(btnAnimations); break; case 5: SetOriginalColor(btnAnimations); SetTutorialColor(btnTools); break; case 6: SetOriginalColor(btnTools); SetTutorialColor(btnProfil); SetTutorialColor(btnReplay); SetTutorialColor(btnQuest); SetTutorialColor(btnRules); break; case 7: SetTutorialColor(btnFAQ); SetOriginalColor(btnProfil); SetOriginalColor(btnReplay); SetOriginalColor(btnQuest); SetOriginalColor(btnRules); break; case 8: SetOriginalColor(btnFAQ); SetTutorialColor(btnNote); SetTutorialColor(btnDiscord); break; } if (_tutoIndex >= StartDisclaimer.ChatTutorial.Length) { SkipTutorial(popup); } else { popup.SetText(StartDisclaimer.ChatTutorial[_tutoIndex]); } }