コード例 #1
0
        void SetupProductTour()
        {
            productTour       = new ProductTour();
            productTour.Frame = new RectangleF(0, 0, View.Bounds.Width, View.Bounds.Height);

            var bubble = new Bubble(AwesomeButton, "THE FIRST BUTTON", "Click this button for more\nawesome all around!", ArrowPosition.Top, null);

            bubble.FontName = "SourceSansPro-Bold";

            var bubble2 = new Bubble(KindaAwesomeButton, "THE SECOND BUTTON", "Click this button. Just do it.", ArrowPosition.Bottom, null);

            bubble2.FontName = "SourceSansPro-Bold";

            var bubble3 = new Bubble(HelpButton, "HELP BUTTON", "Click to toggle.", ArrowPosition.Right, null);

            bubble3.FontName = "SourceSansPro-Bold";

            var bubbleArray = new NSMutableArray(3);

            bubbleArray.Add(bubble);
            bubbleArray.Add(bubble2);
            bubbleArray.Add(bubble3);
            productTour.Bubbles = bubbleArray;

            Add(productTour);
        }
コード例 #2
0
        ProductTour BuildProductTourView(UITableView tableView)
        {
            var productTour = new ProductTour();

            productTour.Frame = new RectangleF(0, 0, 320, tableView.Frame.Height);

            var bubble = new Bubble(new UIView(new RectangleF(0, 0, 320, 0)), "SCHEDULE MEMEMORIZATION", "Tap the verses you wish to memorize,\nthen tap the\"Move\" button and a day\nto schedule memorization.", ArrowPosition.Top, null);

            bubble.FontName = "SourceSansPro-Bold";

            var bubbleArray = new NSMutableArray(1);

            bubbleArray.Add(bubble);
            productTour.Bubbles = bubbleArray;

            return(productTour);
        }
コード例 #3
0
        void SetupTour()
        {
            var tour = Tour.Instance;

            if (tour.IsEnabled)
            {
                if (tour.Step == 3)
                {
                    productTour       = new ProductTour();
                    productTour.Frame = new RectangleF(0, 0, View.Bounds.Width, View.Bounds.Height);

                    var bubble = new Bubble(queueButton, "VERSES QUEUE", "Click to reveal\nunmemorized verses.", ArrowPosition.Top, null);
                    bubble.FontName = "SourceSansPro-Bold";

                    var bubbleArray = new NSMutableArray(1);
                    bubbleArray.Add(bubble);
                    productTour.Bubbles = bubbleArray;

                    Add(productTour);
                }
            }
        }
コード例 #4
0
        void SetupTour()
        {
            var tour = Tour.Instance;

            if (tour.IsEnabled)
            {
                productTour       = new ProductTour();
                productTour.Frame = new RectangleF(0, 0, View.Bounds.Width, View.Bounds.Height);

                var step = tour.Step;
                if (step == 1)
                {
                    var view   = new UIView(new RectangleF(backingComposeButton.Frame.X, backingComposeButton.Frame.Y - 44, backingComposeButton.Frame.Width, backingComposeButton.Frame.Height));
                    var bubble = new Bubble(view, "DOWNLOAD", "Add a new verse\nto your library.", ArrowPosition.Top, null);
                    bubble.FontName = "SourceSansPro-Bold";

                    var bubbles = new NSMutableArray(1);
                    bubbles.Add(bubble);

                    productTour.Bubbles = bubbles;
                    Add(productTour);
                }
                else if (step == 2)
                {
                    var view   = new UIView(ViewForTab(1));
                    var bubble = new Bubble(view, "SWITCH TABS", "Tap the memorization tab.", ArrowPosition.Bottom, null);
                    bubble.FontName = "SourceSansPro-Bold";

                    var bubbles = new NSMutableArray(1);
                    bubbles.Add(bubble);

                    productTour.Bubbles = bubbles;
                    Add(productTour);
                }
            }
        }
コード例 #5
0
        void SetupTour()
        {
            var tour = Tour.Instance;

            if (tour.IsEnabled) {
                productTour = new ProductTour ();
                productTour.Frame = new RectangleF (0, 0, View.Bounds.Width, View.Bounds.Height);

                var step = tour.Step;
                if (step == 1) {
                    var view = new UIView (new RectangleF(backingComposeButton.Frame.X, backingComposeButton.Frame.Y - 44, backingComposeButton.Frame.Width, backingComposeButton.Frame.Height));
                    var bubble = new Bubble (view, "DOWNLOAD", "Add a new verse\nto your library.", ArrowPosition.Top, null);
                    bubble.FontName = "SourceSansPro-Bold";

                    var bubbles = new NSMutableArray (1);
                    bubbles.Add (bubble);

                    productTour.Bubbles = bubbles;
                    Add (productTour);
                } else if (step == 2) {
                    var view = new UIView (ViewForTab (1));
                    var bubble = new Bubble (view, "SWITCH TABS", "Tap the memorization tab.", ArrowPosition.Bottom, null);
                    bubble.FontName = "SourceSansPro-Bold";

                    var bubbles = new NSMutableArray (1);
                    bubbles.Add (bubble);

                    productTour.Bubbles = bubbles;
                    Add (productTour);
                }
            }
        }
コード例 #6
0
        ProductTour BuildProductTourView(UITableView tableView)
        {
            var productTour = new ProductTour ();
            productTour.Frame = new RectangleF (0, 0, 320, tableView.Frame.Height);

            var bubble = new Bubble (new UIView (new RectangleF (0, 0, 320, 0)), "SCHEDULE MEMEMORIZATION", "Tap the verses you wish to memorize,\nthen tap the\"Move\" button and a day\nto schedule memorization.", ArrowPosition.Top, null);
            bubble.FontName = "SourceSansPro-Bold";

            var bubbleArray = new NSMutableArray (1);
            bubbleArray.Add (bubble);
            productTour.Bubbles = bubbleArray;

            return productTour;
        }
コード例 #7
0
        void SetupTour()
        {
            var tour = Tour.Instance;

            if (tour.IsEnabled) {
                if (tour.Step == 3) {
                    productTour = new ProductTour ();
                    productTour.Frame = new RectangleF (0, 0, View.Bounds.Width, View.Bounds.Height);

                    var bubble = new Bubble (queueButton, "VERSES QUEUE", "Click to reveal\nunmemorized verses.", ArrowPosition.Top, null);
                    bubble.FontName = "SourceSansPro-Bold";

                    var bubbleArray = new NSMutableArray (1);
                    bubbleArray.Add (bubble);
                    productTour.Bubbles = bubbleArray;

                    Add (productTour);
                }
            }
        }