コード例 #1
0
 private void CardViewTutorialSetup()
 {
     helpPopup = new HelpPopup();
     UIHelper.AddToGridInFull(mainGrid, helpPopup);
     helpPopup.Title    = "View your card";
     helpPopup.SubTitle = "(or \"learning\" for short)";
     helpPopup.Text     = "Please press on your deck to start viewing your cards.";
     helpPopup.SetOffSet(0, DEFAULT_HELP_POPUP_VERTICAL_OFFSET);
     helpPopup.ShowWithClose();
 }
コード例 #2
0
 private void StartTutorial()
 {
     helpPopup.Title = "Template";
     helpPopup.SubtitleVisibility = Visibility.Collapsed;
     helpPopup.CloseXVisibility   = Visibility.Collapsed;
     helpPopup.Text = "A template always has a FRONTSIDE and a BACKSIDE.\n"
                      + "FRONTSIDE is the first view of your card while BACKSIDE is shown after you've pressed \"Show Answer\".";
     helpPopup.NextEvent = FirstHelpPopupNext;
     helpPopup.SetOffSet(0, 50);
     helpPopup.ShowWithNext();
 }
コード例 #3
0
        private void SharedDeckTutorialSetup()
        {
            helpPopup = new HelpPopup();
            UIHelper.AddToGridInFull(mainGrid, helpPopup);
            helpPopup.Title = "Shared Decks";
            helpPopup.SubtitleVisibility = Visibility.Collapsed;
            helpPopup.Text = "To download and import decks created by others, please press on the button at the top-left corner.\n"
                             + "(we are not responsible for these contents.)";
            helpPopup.SetOffSet(0, DEFAULT_HELP_POPUP_VERTICAL_OFFSET);
            mainPage.NoticeMe.Stop();
            helpPopup.ShowWithClose();

            AllHelps.Tutorial = AllHelps.TutorialState.NotShow;
            MainPage.UserPrefs.SetHelpShown(AllHelps.HELP_DECK_NOTE, true);
        }
コード例 #4
0
 private void DeckCreationTutorialSetup()
 {
     mainPage.AddButton.Click += TutorialAddButtonClickHandler;
     NewDeckCreatedEvent      += TutorialNewDeckCreatedEvent;
     helpPopup = new HelpPopup();
     UIHelper.AddToGridInFull(mainGrid, helpPopup);
     helpPopup.Title    = "Create a Deck";
     helpPopup.SubTitle = "(A place to store your cards)";
     helpPopup.Text     = "To create a deck please press on the \"Add\" icon."
                          + " Choose any names you like and use \"Basic\" type."
                          + " Leave note type name blank if you want to reuse an old note type.";
     helpPopup.SetOffSet(0, DEFAULT_HELP_POPUP_VERTICAL_OFFSET);
     helpPopup.Show();
     mainPage.NoticeMe.Begin();
 }
コード例 #5
0
 private void SharedDeckTutorialSetup()
 {
     mainPage.SplitViewToggleButton.IsEnabled = true;
     mainPage.SplitViewToggleButton.Click    += TutorialSplitViewToggleButtonClick;
     helpPopup = new HelpPopup();
     UIHelper.AddToGridInFull(mainGrid, helpPopup);
     helpPopup.Title    = "Shared Decks";
     helpPopup.SubTitle = "(Sharing is caring)";
     helpPopup.Text     = "To download and import decks created by others, please press on the button at the top-left corner.\n"
                          + "(we are not responsible for these contents.)";
     helpPopup.SetOffSet(0, DEFAULT_HELP_POPUP_VERTICAL_OFFSET);
     mainPage.NoticeMe.Stop();
     UIHelper.SetStoryBoardTarget(mainPage.BlinkingBlue, mainPage.SplitViewToggleButton.Name);
     mainPage.NoticeMe.Begin();
     helpPopup.Show();
 }