Ejemplo n.º 1
0
        //Add a renatal property
        internal void ListARental()
        {
            //To skip the highlighted option
            SkipButton?.Click();
            System.Threading.Thread.Sleep(5000);
            // Populating the data from Excel
            ExcelLib.PopulateInCollection(Base.ExcelPath, "AddNewProperty");
            OwnersSelect.Click();
            System.Threading.Thread.Sleep(5000);
            PropertiesSelect.Click();
            ListRental.Click();
            //Value set for adding rental property
            SelectProperty.SendKeys(ExcelLib.ReadData(10, "RentalPropertyValue"));
            Title.SendKeys(ExcelLib.ReadData(2, "RentalPropertyValue"));
            MovingCost.SendKeys(ExcelLib.ReadData(3, "RentalPropertyValue"));
            RentalDescription.SendKeys(ExcelLib.ReadData(7, "RentalPropertyValue"));
            RentalTargetRent.SendKeys(ExcelLib.ReadData(4, "RentalPropertyValue"));
            Furnishing.SendKeys(ExcelLib.ReadData(8, "RentalPropertyValue"));
            AvailableDate.SendKeys(ExcelLib.ReadData(5, "RentalPropertyValue"));
            IdealTenant.SendKeys(ExcelLib.ReadData(9, "RentalPropertyValue"));
            Occupants.SendKeys(ExcelLib.ReadData(6, "RentalPropertyValue"));
            SaveRental.Click();

            IAlert alert = Global.Driver.driver.SwitchTo().Alert();

            alert.Accept();
        }
Ejemplo n.º 2
0
    public void GetStarted(int playerNumber)
    {
        Game.hasStarted = false;
        Game.isPaused = false;
        
        firstSpawnPosition = transform.position;
        this.playerNumber = playerNumber;        
        rb = GetComponent<Rigidbody>();
        timer = GetComponentInChildren<Timer>();
        tiles = GameObject.Find("Map/Tiles").GetComponent<Tiles>();
        tileColorsIntroduction = tiles.GetComponent<TileColorsIntroduction>(); // Get the script for the colour introduction
        settings = GameObject.Find("Map").GetComponent<MapSettings>();
        lastSpawnOffset = settings.GetSpawnPositionOffset();        
        cameraFollow = GetPlayerCamera().GetComponent<CameraFollow>();
        skipButton = GetComponentInChildren<SkipButton>();
        tutorialManager = GetComponentInChildren<TutorialManager>(true);
        accelerometerInformation = GetComponentInChildren<AccelorometerReading>(true).transform.parent.gameObject;

        GameObject loseTile = GameObject.Find("Map/UntaggedGameObjects/LoseHeight");
        loseHeight = loseTile.transform.position.y;
        rb.constraints = RigidbodyConstraints.FreezeAll;
        timer.GetReady();
        SceneTransitionValues.record = timer.GetBestTime();
        SceneTransitionValues.alreadyEnteredEndScreen = false;

        if(SceneTransitionAudio.Instance != null)
        {
            SceneTransitionAudio.Instance.gameObject.GetComponent<AudioSource>().Stop();
        }
 
        StartCoroutine(Introduction(cameraFollow, skipButton));
    }
Ejemplo n.º 3
0
 //Add new Advertised Jobs
 internal void AddingAdvertisedJobs()
 {
     //To skip the highlighted option
     SkipButton?.Click();
     System.Threading.Thread.Sleep(5000);
     // Populating the data from Excel
     ExcelLib.PopulateInCollection(Base.ExcelPath, "AdvisedJobs");
     System.Threading.Thread.Sleep(3000);
     OwnersSelect.Click();
     System.Threading.Thread.Sleep(3000);
     AdvertisedJob.Click();
     System.Threading.Thread.Sleep(3000);
     NewJobButton.Click();
     SelectPropertyForJob.Click();
     PropertyNameDropdown.Click();
     TitleForJob.SendKeys(ExcelLib.ReadData(2, "Value"));
     MaximumBudget.SendKeys(ExcelLib.ReadData(3, "Value"));
     JobDescription.SendKeys(ExcelLib.ReadData(4, "Value"));
     // Image upload
     Global.Driver.driver.FindElement(By.Id("file-upload")).Click();
     System.Threading.Thread.Sleep(10000);
     SendKeys.SendWait(@"E:\MVP Studio\Task-2\images.jpg");
     System.Threading.Thread.Sleep(10000);
     SendKeys.SendWait(@"{Enter}");
     System.Threading.Thread.Sleep(5000);
     SubmitForJob.Click();
 }
Ejemplo n.º 4
0
        void ReleaseDesignerOutlets()
        {
            if (TutorialText != null)
            {
                TutorialText.Dispose();
                TutorialText = null;
            }

            if (TutorialView != null)
            {
                TutorialView.Dispose();
                TutorialView = null;
            }

            if (SkipButton != null)
            {
                SkipButton.Dispose();
                SkipButton = null;
            }

            if (ContinueButton != null)
            {
                ContinueButton.Dispose();
                ContinueButton = null;
            }
        }
    public override void OnInspectorGUI()
    {
        SkipButton targetMenuButton = (SkipButton)target;

        // Show default inspector property editor
        DrawDefaultInspector();
    }
Ejemplo n.º 6
0
 private void ImportMatchDialogForm_Load(object sender, EventArgs e)
 {
     if (Properties.Settings.Default.ImportMatch_Location.X > 0 &&
         Properties.Settings.Default.ImportMatch_Location.Y > 0)
     {
         this.Location = Properties.Settings.Default.ImportMatch_Location;
     }
     if (MatchCommand.ToLower().Equals("update"))
     {
         UpdateButton.Focus();
     }
     else if (MatchCommand.ToLower().Equals("updateall"))
     {
         UpdateAllButton.Focus();
     }
     else if (MatchCommand.ToLower().Equals("skip"))
     {
         SkipButton.Focus();
     }
     else if (MatchCommand.ToLower().Equals("skipall"))
     {
         SkipAllButton.Focus();
     }
     else
     {
         SkipButton.Focus();
     }
 }
        void ReleaseDesignerOutlets()
        {
            if (NextButton != null)
            {
                NextButton.Dispose();
                NextButton = null;
            }

            if (PageControl != null)
            {
                PageControl.Dispose();
                PageControl = null;
            }

            if (SkipButton != null)
            {
                SkipButton.Dispose();
                SkipButton = null;
            }

            if (StartButton != null)
            {
                StartButton.Dispose();
                StartButton = null;
            }
        }
Ejemplo n.º 8
0
        //Adding Repayment,Expenses and Liabilities
        internal void RepaymentExpensesLiabilities()
        {
            //To skip the highlighted option
            SkipButton?.Click();
            System.Threading.Thread.Sleep(5000);
            // Populating the data from Excel
            ExcelLib.PopulateInCollection(Base.ExcelPath, "AddNewProperty");
            OwnersSelect.Click();
            System.Threading.Thread.Sleep(5000);
            PropertiesSelect.Click();
            ClickingAddNewProperty.Click();
            //Value set for property page details
            PropertyName.SendKeys(ExcelLib.ReadData(2, "Value"));
            SearchAddress.SendKeys(ExcelLib.ReadData(33, "Value"));
            System.Threading.Thread.Sleep(5000);
            //Value set using google api
            var address = Global.Driver.driver.FindElements(By.ClassName("pac-item"))[0];

            address.Click();
            TargetRent.SendKeys(ExcelLib.ReadData(14, "Value"));
            LandArea.SendKeys(ExcelLib.ReadData(10, "Value"));
            BedRooms.SendKeys(ExcelLib.ReadData(11, "Value"));
            CarParks.SendKeys(ExcelLib.ReadData(12, "Value"));
            Description.SendKeys(ExcelLib.ReadData(13, "Value"));
            FloorArea.SendKeys(ExcelLib.ReadData(15, "Value"));
            BathRooms.SendKeys(ExcelLib.ReadData(16, "Value"));
            YearBuilt.SendKeys(ExcelLib.ReadData(9, "Value"));
            NextButton.Click();
            //Value set for financial details page
            System.Threading.Thread.Sleep(2000);
            PurchasePrice.SendKeys(ExcelLib.ReadData(17, "Value"));
            HomeValue.SendKeys(ExcelLib.ReadData(18, "Value"));
            Mortgage.SendKeys(ExcelLib.ReadData(19, "Value"));
            //Adding repayment option
            AddRepayment.Click();
            RepaymentAmount.SendKeys(ExcelLib.ReadData(2, "AddRepaymentfieldValue"));
            RepaymentStartDate.SendKeys(ExcelLib.ReadData(3, "AddRepaymentfieldValue"));
            //Adding expenses option
            AddExpense.Click();
            ExpenseAmount.SendKeys(ExcelLib.ReadData(2, "AddExpensefieldValue"));
            var ExpenseDescription = Global.Driver.driver.FindElement(By.ClassName("seven")).FindElement(By.ClassName("width")).FindElement(By.Id("Text1"));

            ExpenseDescription.SendKeys(ExcelLib.ReadData(3, "AddExpensefieldValue"));
            ExpenseDate.SendKeys(ExcelLib.ReadData(4, "AddExpensefieldValue"));
            NextButton2.Click();
            //Value set for financial details page
            TenantEmail.SendKeys(ExcelLib.ReadData(20, "Value"));
            FirstName.SendKeys(ExcelLib.ReadData(21, "Value"));
            LastName.SendKeys(ExcelLib.ReadData(22, "Value"));
            StartDate.SendKeys(ExcelLib.ReadData(23, "Value"));
            EndDate.SendKeys(ExcelLib.ReadData(24, "Value"));
            RentAmount.SendKeys(ExcelLib.ReadData(25, "Value"));
            PaymentStartDate.SendKeys(ExcelLib.ReadData(26, "Value"));
            //Adding liability option
            NewLiability.Click();
            Amount.SendKeys(ExcelLib.ReadData(2, "NewLiabilityFieldValue"));
            Save.Click();
        }
Ejemplo n.º 9
0
        protected override void InitBindings()
        {
            ViewPager.Adapter = new WelcomePagerAdapter(ChildFragmentManager, ViewModel.WelcomeTabEntries);
            DotsLayout.SetupWithViewPager(ViewPager);
            ViewPager.PageSelected += ViewPagerOnPageSelected;

            FinishButton.Visibility = ViewStates.Gone;

            FinishButton.SetOnClickCommand(ViewModel.FinishCommand);
            SkipButton.SetOnClickCommand(ViewModel.FinishCommand);
        }
    void Ini()
    {
        GameObject obj = GameObject.Find(ObjectName.EMMISION_PARENT);

        emmisonCharacteresParent = obj;
        ScaleAnimationManager     animation = new ScaleAnimationManager();
        EmmisionGachaIllustlation illust    = new EmmisionGachaIllustlation(AttachRate.AttachGachaRate.GetGachaRate());

        AttachRate.AttachGachaRate.Gacha();
        SkipButton skip = new SkipButton();
        CrySe      cry  = new CrySe();
    }
Ejemplo n.º 11
0
        //Add new property
        internal void AddingProperty()
        {
            //To skip the highlighted option
            SkipButton?.Click();
            System.Threading.Thread.Sleep(5000);
            // Populating the data from Excel
            ExcelLib.PopulateInCollection(Base.ExcelPath, "AddNewProperty");
            System.Threading.Thread.Sleep(5000);
            OwnersSelect.Click();
            System.Threading.Thread.Sleep(5000);
            PropertiesSelect.Click();
            ClickingAddNewProperty.Click();
            //Value set for property details page
            PropertyName.SendKeys(ExcelLib.ReadData(2, "Value"));
            SearchAddress.SendKeys(ExcelLib.ReadData(33, "Value"));
            System.Threading.Thread.Sleep(5000);
            //Value set using google api
            var address = Global.Driver.driver.FindElements(By.ClassName("pac-item"))[0];

            address.Click();
            TargetRent.SendKeys(ExcelLib.ReadData(14, "Value"));
            LandArea.SendKeys(ExcelLib.ReadData(10, "Value"));
            BedRooms.SendKeys(ExcelLib.ReadData(11, "Value"));
            CarParks.SendKeys(ExcelLib.ReadData(12, "Value"));
            Description.SendKeys(ExcelLib.ReadData(13, "Value"));
            FloorArea.SendKeys(ExcelLib.ReadData(15, "Value"));
            BathRooms.SendKeys(ExcelLib.ReadData(16, "Value"));
            YearBuilt.SendKeys(ExcelLib.ReadData(9, "Value"));
            imagebox.Click();
            //Image upload
            Global.Driver.driver.FindElement(By.Id("file-upload")).Click();
            System.Threading.Thread.Sleep(10000);
            SendKeys.SendWait("E:\\Document\\house.jpg");
            System.Threading.Thread.Sleep(10000);
            SendKeys.SendWait(@"{Enter}");
            System.Threading.Thread.Sleep(5000);
            NextButton.Click();
            System.Threading.Thread.Sleep(5000);
            //Value set for financial details page
            PurchasePrice.SendKeys(ExcelLib.ReadData(17, "Value"));
            HomeValue.SendKeys(ExcelLib.ReadData(18, "Value"));
            Mortgage.SendKeys(ExcelLib.ReadData(19, "Value"));
            NextButton2.Click();
            //Value set for Tenant details page
            TenantEmail.SendKeys(ExcelLib.ReadData(20, "Value"));
            FirstName.SendKeys(ExcelLib.ReadData(21, "Value"));
            LastName.SendKeys(ExcelLib.ReadData(22, "Value"));
            StartDate.SendKeys(ExcelLib.ReadData(23, "Value"));
            EndDate.SendKeys(ExcelLib.ReadData(24, "Value"));
            RentAmount.SendKeys(ExcelLib.ReadData(25, "Value"));
            PaymentStartDate.SendKeys(ExcelLib.ReadData(26, "Value"));
            Save.Click();
        }
Ejemplo n.º 12
0
    public void DisplayTiles(bool chooseCheckPoints, SkipButton skipButton, CameraFollow cam)
    {
        this.skipButton = skipButton;
        if (chooseCheckPoints)
        {
            colors.Remove(checkpoints);
        }

        for (int i = 0; i < colors.Count; i++)
        {
            StartCoroutine(SetColor(colors[i], chooseCheckPoints, cam));
        }
    }
Ejemplo n.º 13
0
        public CoachMarks(CoachMarksSettings settings)
        {
            Settings = settings;

            Overlay = new CoachMarksOverlay();

            // Buttons
            Next = new NextButton(NextButtonTapped);
            Skip = new SkipButton(SkipButtonTapped);
            Back = new BackButton(BackButtonTapped);

            // Buttons stacks
            TopButtons    = new TopButtonContainer();
            BottomButtons = new BottomButtonContainer();
        }
Ejemplo n.º 14
0
 private void ShowAnswer()
 {
     foreach (var player in _players.Keys)
     {
         _buzzedPlayers[player] = true;
     }
     _server.BroadcastMessage(MessageSigns.TimesUpMessage);
     QuestionLabel.Content = _question.AnswerText;
     AnswerQueueBox.Items.Clear();
     SkipButton.Content = "К выбору вопроса";
     SkipButton.RemoveHandler(Button.ClickEvent, (RoutedEventHandler)SkipButton_Click);
     SkipButton.AddHandler(Button.ClickEvent, new RoutedEventHandler(ExitButton_Click));
     RightAnswerButton.Visibility = Visibility.Hidden;
     WrongAnswerButton.Visibility = Visibility.Hidden;
 }
Ejemplo n.º 15
0
        //Delete an existing Advertised Jobs
        internal void DeleteAdvertisedJobs()
        {
            //To skip the highlighted option
            SkipButton?.Click();
            System.Threading.Thread.Sleep(5000);
            // Populating the data from Excel
            ExcelLib.PopulateInCollection(Base.ExcelPath, "AdvisedJobs");
            System.Threading.Thread.Sleep(3000);
            OwnersSelect.Click();
            System.Threading.Thread.Sleep(3000);
            AdvertisedJob.Click();
            System.Threading.Thread.Sleep(3000);

            DeleteForJob.Click();
            DeleteOpt2.Click();
            ConfirmDelete.Click();
        }
Ejemplo n.º 16
0
        public void Common_methods()
        {
            Driver.wait(5);
            //Click on skip button on popup window
            SkipButton.Click();
            Thread.Sleep(1000);

            //Click on the Owners tab
            // Debug.Assert(Driver.driver.Title == "Login");

            Ownertab.Click();
            Thread.Sleep(1000);
            //Global.Driver.wait(5);
            //Select properties page
            PropertiesPage.Click();
            Thread.Sleep(1000);
        }
Ejemplo n.º 17
0
        //Edit an existing Advertised Jobs
        internal void EditAdvertisedJobs()
        {
            //To skip the highlighted option
            SkipButton?.Click();
            System.Threading.Thread.Sleep(5000);
            // Populating the data from Excel
            ExcelLib.PopulateInCollection(Base.ExcelPath, "AdvisedJobs");
            System.Threading.Thread.Sleep(3000);
            OwnersSelect.Click();
            System.Threading.Thread.Sleep(3000);
            AdvertisedJob.Click();
            System.Threading.Thread.Sleep(3000);

            EditForJob.Click();
            EditedMaximumBudget.Clear();
            EditedMaximumBudget.SendKeys(ExcelLib.ReadData(3, "EditedValue"));
            SaveEdit.Click();
        }
Ejemplo n.º 18
0
        //Edit existing Property
        internal void editProperty()
        {
            //To skip the highlighted option
            SkipButton?.Click();
            System.Threading.Thread.Sleep(5000);
            // Populating the data from Excel
            //ExcelLib.PopulateInCollection(Base.ExcelPath, "AddNewProperty");
            System.Threading.Thread.Sleep(5000);
            OwnersSelect.Click();
            System.Threading.Thread.Sleep(5000);
            PropertiesSelect.Click();
            //Choosing edit option
            var editOption = Global.Driver.driver.FindElements(By.ClassName("segment"))[0].FindElement(By.ClassName("top-right-corner")).FindElement(By.TagName("i"));

            editOption.Click();
            System.Threading.Thread.Sleep(5000);
            EditProperty.Click();
            // Populating the data from Excel
            ExcelLib.PopulateInCollection(Base.ExcelPath, "AddNewProperty");
            EditedPropertyName.Clear();
            //Editing existing property
            EditedPropertyName.SendKeys(ExcelLib.ReadData(2, "Edited Value"));
            SaveEditedValue.Click();
        }
Ejemplo n.º 19
0
    public void StateUpdate()
    {
        if (GameObject.Find("Skip") != null && skipButton_Ref == null)
        {
            skipButton_Ref = GameObject.Find("Skip").GetComponent <SkipButton>();
        }
        TimeTracker();

        if (!isDisplayingMessage)
        {
            PlayerInput();
        }

        if (Input.GetKeyDown(gameStateMachine.playerOneInput_Ref.upThruster) &&
            !gameStateMachine.IntroIsDone)
        {
            skipButton_Ref.IsButtonPressed(true);
        }
        else if (Input.GetKeyUp(gameStateMachine.playerOneInput_Ref.upThruster) &&
                 !gameStateMachine.IntroIsDone)
        {
            skipButton_Ref.IsButtonPressed(false);
        }
    }
Ejemplo n.º 20
0
        public void Create(object masterView, string bgLayerImageName, string logoImageName, RectangleF frame, OnButtonClick onClick)
        {
            // take the handler
            OnClick = onClick;

            View = PlatformView.Create( );
            View.BackgroundColor = ControlStylingConfig.OOBE_Splash_BG_Color;
            View.AddAsSubview(masterView);

            ImageBG = PlatformImageView.Create( );
            ImageBG.AddAsSubview(View.PlatformNativeObject);
            MemoryStream stream = Rock.Mobile.IO.AssetConvert.AssetToStream(bgLayerImageName);

            if (stream != null)
            {
                stream.Position        = 0;
                ImageBG.Opacity        = 0;
                ImageBG.Image          = stream;
                ImageBG.ImageScaleType = PlatformImageView.ScaleType.ScaleAspectFill;
                stream.Dispose( );
            }

            NetworkErrorLabel = PlatformLabel.Create( );
            NetworkErrorLabel.SetFont(ControlStylingConfig.Font_Light, 18);
            NetworkErrorLabel.TextColor     = 0xCCCCCCFF;
            NetworkErrorLabel.Text          = OOBEStrings.NetworkError;
            NetworkErrorLabel.TextAlignment = TextAlignment.Center;
            NetworkErrorLabel.Opacity       = 0;
            NetworkErrorLabel.SizeToFit( );
            NetworkErrorLabel.AddAsSubview(View.PlatformNativeObject);


            NetworkRetryButton = PlatformButton.Create( );
            NetworkRetryButton.SetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Medium_FontSize);
            NetworkRetryButton.TextColor = 0xCCCCCCFF;
            NetworkRetryButton.Text      = OOBEStrings.NetworRetry;
            NetworkRetryButton.Opacity   = 0;
            NetworkRetryButton.SizeToFit( );
            NetworkRetryButton.ClickEvent = (PlatformButton button ) =>
            {
                OnClick(-1, false);
            };
            NetworkRetryButton.AddAsSubview(View.PlatformNativeObject);


            WelcomeLabel = PlatformLabel.Create( );
            WelcomeLabel.SetFont(ControlStylingConfig.Font_Bold, 85);
            WelcomeLabel.TextColor = 0xCCCCCCFF;
            WelcomeLabel.Text      = OOBEStrings.Welcome;
            WelcomeLabel.Opacity   = 0;
            WelcomeLabel.SizeToFit( );
            WelcomeLabel.AddAsSubview(View.PlatformNativeObject);

            CampusHeader = PlatformLabel.Create( );
            CampusHeader.SetFont(ControlStylingConfig.Font_Light, 18);
            CampusHeader.TextColor     = 0xCCCCCCFF;
            CampusHeader.Text          = OOBEStrings.CampusIntro;
            CampusHeader.TextAlignment = TextAlignment.Center;
            CampusHeader.Opacity       = 0;
            CampusHeader.SizeToFit( );
            CampusHeader.AddAsSubview(View.PlatformNativeObject);

            // we'll wait to setup campuses until after a successful download
            CampusButtons = new List <PlatformButton>( );

            RegisterButton = PlatformButton.Create( );
            RegisterButton.SetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Large_FontSize);
            RegisterButton.TextColor = 0xCCCCCCFF;
            RegisterButton.Text      = string.Format(OOBEStrings.WantAccount, GeneralConfig.OrganizationShortName);
            RegisterButton.Opacity   = 0;
            RegisterButton.SizeToFit( );
            RegisterButton.ClickEvent = (PlatformButton button ) =>
            {
                // do not allow multiple register taps
                if (State == OOBE_State.WaitForAccountChoice)
                {
                    OnClick(0, false);

                    EnterNextState(OOBE_State.Done);
                }
            };
            RegisterButton.AddAsSubview(View.PlatformNativeObject);


            RegisterSeperator = PlatformView.Create( );
            RegisterSeperator.BackgroundColor = ControlStylingConfig.BG_Layer_BorderColor;
            RegisterSeperator.Bounds          = new RectangleF(0, 0, 0, 1);
            RegisterSeperator.AddAsSubview(View.PlatformNativeObject);


            LoginButton = PlatformButton.Create( );
            LoginButton.SetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Large_FontSize);
            LoginButton.TextColor = 0xCCCCCCFF;
            LoginButton.Text      = string.Format(OOBEStrings.HaveAccount, GeneralConfig.OrganizationShortName);
            LoginButton.Opacity   = 0;
            LoginButton.SizeToFit( );
            LoginButton.ClickEvent = (PlatformButton button ) =>
            {
                // do not allow multiple register taps
                if (State == OOBE_State.WaitForAccountChoice)
                {
                    OnClick(1, false);

                    EnterNextState(OOBE_State.Done);
                }
            };
            LoginButton.AddAsSubview(View.PlatformNativeObject);

            LoginSeperator = PlatformView.Create( );
            LoginSeperator.BackgroundColor = ControlStylingConfig.BG_Layer_BorderColor;
            LoginSeperator.Bounds          = new RectangleF(0, 0, 0, 1);
            LoginSeperator.AddAsSubview(View.PlatformNativeObject);


            SkipButton = PlatformButton.Create( );
            SkipButton.SetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Large_FontSize);
            SkipButton.TextColor = 0xCCCCCCFF;
            SkipButton.Text      = OOBEStrings.SkipAccount;
            SkipButton.Opacity   = 0;
            SkipButton.SizeToFit( );
            SkipButton.ClickEvent = (PlatformButton button ) =>
            {
                // do not allow multiple register taps
                if (State == OOBE_State.WaitForAccountChoice)
                {
                    OnClick(2, false);

                    EnterNextState(OOBE_State.Done);
                }
            };
            SkipButton.AddAsSubview(View.PlatformNativeObject);

            stream          = Rock.Mobile.IO.AssetConvert.AssetToStream(logoImageName);
            stream.Position = 0;
            ImageLogo       = PlatformImageView.Create( );
            ImageLogo.AddAsSubview(View.PlatformNativeObject);
            ImageLogo.Image          = stream;
            ImageLogo.ImageScaleType = PlatformImageView.ScaleType.ScaleAspectFit;
            stream.Dispose( );

            State = OOBE_State.Startup;
        }
Ejemplo n.º 21
0
 public void ClickOnSkip()
 {
     SkipButton.Click();
 }
Ejemplo n.º 22
0
 public SkipButton()
 {
     instance  = this;
     buttonobj = GameObject.Find(SKIP_OBJ).GetComponent <Button>();
 }
Ejemplo n.º 23
0
                    /* --------------- STATUS: INTRODUCTION, PLAYER HAS TO WAIT ---------------  */
    /*
     *  All the colours of the non-standard tiles will be shown
     *  When all colours have faded, then the game starts
     */
    IEnumerator Introduction(CameraFollow cameraFollow, SkipButton skipButton)
    {
        while(!cameraFollow.GetCameraReachedFinalPosition())                        // wait for the user to finish watching the introduction screen
        {
            yield return new WaitForSeconds(TIME_TO_CHECK_AGAIN);
        }


        // if(settings.IsIntroductionScreen())                                         // check if the level has a introduction screen to show
        // {
            // tutorialManager.gameObject.SetActive(true);
          /*  ShowIntroductionScreen();                                               // if so, show it

            while(!hasWatchedIntroductionScreen)                                    // wait for the user to finish watching the introduction screen
            {
                
                yield return new WaitForSeconds(TIME_TO_CHECK_AGAIN);
            }*/
        // }

        /* --------------- DISPLAYING NON-STANDARD TILES ---------------  */
                

        bool chooseCheckPoints = settings.GetNumberOfCheckpoints() > 0;             // are there any checkpoints to choose for this map
        ShowNonStandardTiles(chooseCheckPoints);        
        
        if(chooseCheckPoints)
        {
            while(!tileColorsIntroduction.IsReadyForCheckpoints())                  // once the colours have appeared, it will wait with the fading process
            {
                yield return new WaitForSeconds(TIME_TO_CHECK_AGAIN);               // check regularly if all the colours have appeared
            }

            ControlsCheckpoint checkpointController = GetComponent<ControlsCheckpoint>();   // get the controls for choosing the checkpoints
            bool isStoptimeForCheckpoints = settings.GetStoptimeForCheckpoints() > 0;       // get the boolean, if a limited time for choosing checkpoints is set
            SelectCheckpoints(checkpointController, isStoptimeForCheckpoints);
                                    
            while(!(isStoptimeForCheckpoints && timer.IsStopTimeOver()) &&          // there is a stopwatch for choosing checkpoints and it's not over yet and
                  !skipButton.IsButtonPressed())                                    // the skipButton, for confirming the player's selections, has not been pressed yet
            {                
                yield return new WaitForSeconds(TIME_TO_CHECK_AGAIN);               // it will check regularly if the player has choosen the checkpoints
            }
            
            FinishedSelectingCheckpoints(checkpointController);
            
            while(!cameraFollow.GetCameraReachedFinalPosition())                    // wait for the camera to be back in position
            {
                if(skipButton.IsButtonPressed())
                {
                    cameraFollow.GoToTargetInstantly();
                }
                yield return new WaitForSeconds(TIME_TO_CHECK_AGAIN);
            }
            
            FinishShowingNonStandardTiles();
        }
                
        while(!tileColorsIntroduction.IsFinished())                                 // waiting for the tiles to finish fading
        {
            yield return new WaitForSeconds(TIME_TO_CHECK_AGAIN);
        }

        WaitForCameraToBeInPlayingPosition();

        while(!cameraFollow.GetCameraReachedFinalPosition())                        // wait for the camera to be back in position
        {
            if(skipButton.IsButtonPressed())
            {
                cameraFollow.GoToTargetInstantly();
            }
            yield return new WaitForSeconds(TIME_TO_CHECK_AGAIN);
        }
                
        SetCountdownForPlaying();

        while (!timer.IsStopTimeOver() && !skipButton.IsButtonPressed())            // as soon as the stoptime is over or the skipbutton pressed, the game will start
        {
            yield return new WaitForSeconds(TIME_TO_CHECK_AGAIN);
        }

        PrepareGameStart();        
        GameStarts();                                                               // start the game
    }