IEnumerator DoComeOffScreen()
    {
        for (int i = 0; i < 10; i++)
        {
            controller.manager.SetToCannotInteract();
            switch (i)
            {
            case 0:
                SavegamesListOffScreen();
                break;

            case 1:
                saveGamesUI_careerSavesTitlePanel.OffScreen();
                break;

            case 2:
                saveGamesUI_sandBoxSavesTitlePanel.OffScreen();
                break;

            case 3:
                saveGamesUI_divider4.OffScreen();
                break;

            case 4:
                saveGamesUI_goBackButton.OffScreen();
                break;

            case 5:
                saveGamesUI_divider3.OffScreen();
                break;

            case 6:
                saveGamesUI_createNewSavegameButton.OffScreen();
                break;

            case 7:
                saveGamesUI_divider2.OffScreen();
                break;

            case 8:
                saveGamesUI_titlePanel.OffScreen();
                break;

            case 9:
                saveGamesUI_divider1.OffScreen();
                break;
            }
            yield return(new WaitForSeconds(.045f));
        }
        gameObject.SetActive(false);
    }
Exemple #2
0
    IEnumerator ChooseLogoUIDoComeOffScreen()
    {
        for (int i = 0; i < 4; i++)
        {
            switch (i)
            {
            case 0:
                DisplayedLogosOffScreen();
                break;

            case 1:
                chooseLogoRightArrow.OffScreen();
                break;

            case 2:
                chooseLogoLeftArrow.OffScreen();
                break;

            case 3:
                chooseLogoBG.OffScreen();
                break;
            }
            yield return(new WaitForSeconds(0.055f));
        }
    }
Exemple #3
0
    IEnumerator ViewingCompanyDoComeOffScreen()
    {
        float timeToUse = 0.055f;

        for (int i = 0; i < 11; i++)
        {
            controller.manager.SetToCannotInteract();
            switch (i)
            {
            case 0:
                loadBuildingButton.OffScreen();
                timeToUse = 0.01f;
                break;

            case 1:
                buildingStatsPanel2.OffScreen();
                break;

            case 2:
                buildingStatsPanel1.OffScreen();
                break;

            case 3:
                loadDifferentBuildingButton.OffScreen();
                timeToUse = 0.035f;
                break;

            case 4:
                buildingRatingPanel.OffScreen();
                break;

            case 5:
                buildingNamePanel.OffScreen();
                break;

            case 6:
                buildingScreenshotImage.OffScreen();
                break;

            case 7:
                buildingBGPanel.OffScreen();
                break;

            case 8:
                companyBuildingCountPanel.OffScreen();
                break;

            case 9:
                companyNetWorthPanel.OffScreen();
                break;

            case 10:
                companyBGPanel.OffScreen();
                timeToUse = 0.055f;
                break;
            }
            yield return(new WaitForSeconds(timeToUse));
        }
        //gameObject.SetActive(false);
    }
Exemple #4
0
    IEnumerator DoComeOffScreen()
    {
        for (int i = 0; i < 5; i++)
        {
            switch (i)
            {
            case 0:
                item2TextDisplay.OffScreen();
                break;

            case 1:
                item2PercentDisplay.OffScreen();
                break;

            case 2:
                item1TextDisplay.OffScreen();
                break;

            case 3:
                item1PercentDisplay.OffScreen();
                break;

            case 4:
                mainPanel.OffScreen();
                break;
            }
            yield return(new WaitForSeconds(.05f));
        }
    }
    IEnumerator CompanyTypeSelectorDoComeOffScreen()
    {
        for (int i = 0; i < 4; i++)
        {
            switch (i)
            {
            case 0:
                companyTypeSelector_confirmButton.OffScreen();
                break;

            case 1:
                companyTypeSelector_careerButton.OffScreen();
                companyTypeSelector_sandBoxButton.OffScreen();
                break;

            case 2:
                companyTypeSelectorButtonPanel.OffScreen();
                break;

            case 3:
                companyTypeSelectorTitlePanel.OffScreen();
                break;
            }
            yield return(new WaitForSeconds(.045f));
        }
    }
    IEnumerator TitlePanelsDoComeOffScreen()
    {
        for (int i = 0; i < 4; i++)
        {
            controller.manager.SetToCannotInteract();
            switch (i)
            {
            case 0:
                goBackButton.OffScreen();
                break;

            case 1:
                divider2.OffScreen();
                break;

            case 2:
                titlePanel.OffScreen();
                break;

            case 3:
                divider1.OffScreen();
                break;
            }
            yield return(new WaitForSeconds(.045f));
        }
        //gameObject.SetActive(false);
    }
Exemple #7
0
    IEnumerator DoComeOffScreen()
    {
        for (int i = 0; i < 3; i++)
        {
            switch (i)
            {
            case 0:
                dtLogo.OffScreen();
                THCGraph.OffScreen();
                sativaGraph.OffScreen();
                UnfillDividerBar();
                break;

            case 1:
                PPGDisplay.OffScreen();
                PPGDisplayText1.OffScreen();
                PPGDisplayText2.OffScreen();
                break;

            case 2:
                strainTitleDisplay.OffScreen();
                strainTitleText.OffScreen();
                break;
            }
            yield return(new WaitForSeconds(.075f));
        }
    }
Exemple #8
0
    IEnumerator CreateNewBuildingDoComeOffScreen()
    {
        for (int i = 0; i < 12; i++)
        {
            switch (i)
            {
            case 0:
                finishCreatingNewBuildingButton.OffScreen();
                break;

            case 1:
                newBuildingChooseLocationButton.OffScreen();
                break;

            case 2:
                newBuildingLocationField.OffScreen();
                break;

            case 3:
                newBuildingLocationImage.OffScreen();
                break;

            case 4:
                newBuildingChooseLogoButton.OffScreen();
                break;

            case 5:
                newBuildingLogoImageField.OffScreen();
                break;

            case 6:
                newBuildingNameInputField.OffScreen();
                break;

            case 7:
                newBuildingLogoImage.OffScreen();
                break;

            case 8:
                newBuilding_supplierButton.OffScreen();
                break;

            case 9:
                newBuilding_dispensaryButton.OffScreen();
                break;

            case 10:
                newBuildingTypePanel.OffScreen();
                break;

            case 11:
                newBuildingBG.OffScreen();
                break;
            }
            yield return(null);
        }
    }
Exemple #9
0
 public void MouseLeftCreateNewBuildingButton()
 {
     if (mouseOverCreateNewBuildingButton)
     {
         mouseOverCreateNewBuildingButton = false;
         createNewBuildingExpandedButton.MouseLeft();
         createNewBuildingButton.MouseLeft();
         createNewBuildingExpandedButton.OffScreen();
         divider3.OnScreen();
         goBackButton.OnScreen();
     }
 }
Exemple #10
0
    IEnumerator ViewingCompanyTitlePanelsDoComeOffScreen()
    {
        float timeToUse = 0.055f;

        for (int i = 0; i < 7; i++)
        {
            switch (i)
            {
            case 0:
                divider4.OffScreen();
                break;

            case 1:
                goBackButton.OffScreen();
                break;

            case 2:
                divider3.OffScreen();
                break;

            case 3:
                createNewBuildingButton.OffScreen();
                break;

            case 4:
                divider2.OffScreen();
                break;

            case 5:
                companyNamePanel.OffScreen();
                break;

            case 6:
                divider1.OffScreen();
                break;
            }
            yield return(new WaitForSeconds(timeToUse));
        }
    }
Exemple #11
0
    IEnumerator DoComeOffScreen()
    {
        for (int i = 0; i < 9; i++)
        {
            mainManager.SetToCannotInteract();
            switch (i)
            {
            case 0:
                backToMainMenuButton_keybindingGraphic.OffScreen();
                break;

            case 1:
                backToMainMenuButton_divider.OffScreen();
                break;

            case 2:
                backToMainMenuButton.OffScreen();
                backToMainMenuButton_actionGraphic.OffScreen();
                break;

            case 3:
                browseCurrentCatalogButton_keybindingGraphic.OffScreen();
                break;

            case 4:
                browseCurrentCatalogButton_divider.OffScreen();
                break;

            case 5:
                browseCurrentCatalogButton.OffScreen();
                browseCurrentCatalogButton_actionGraphic.OffScreen();
                break;

            case 6:
                browseNextCategoryButton_keybindingGraphic.OffScreen();
                break;

            case 7:
                browseNextCategoryButton_divider.OffScreen();
                break;

            case 8:
                barImage.OffScreen();
                browseNextCategoryButton.OffScreen();
                browseNextCategoryButton_actionGraphic.OffScreen();
                break;
            }
            yield return(new WaitForSeconds(.075f));
        }
    }
    IEnumerator CreateCompanyUIGroupingDoComeOffScreen()
    {
        for (int i = 0; i < 9; i++)
        {
            switch (i)
            {
            case 0:
                finishCreatingCompanyButton.OffScreen();
                break;

            case 1:
                startupAsSupplierButton.OffScreen();
                startupAsDispensaryButton.OffScreen();
                break;

            case 2:
                startupAsField.OffScreen();
                break;

            case 3:
                managersNameInputField.OffScreen();
                break;

            case 4:
                chooseCompanyLogoButton.OffScreen();
                break;

            case 5:
                companyLogoField.OffScreen();
                break;

            case 6:
                companyNameInputField.OffScreen();
                break;

            case 7:
                companyLogoImage.OffScreen();
                break;

            case 8:
                createCompanyBG.OffScreen();
                break;
            }
            yield return(new WaitForSeconds(.045f));
        }
    }
    IEnumerator SetupBuildingUIGroupingDoComeOffScreen()
    {
        for (int i = 0; i < 9; i++)
        {
            switch (i)
            {
            case 0:
                finishCreatingBuildingButton.OffScreen();
                break;

            case 1:
                chooseBuildingLocationButton.OffScreen();
                break;

            case 2:
                buildingLocationField.OffScreen();
                break;

            case 3:
                startLocationScreenshotImage.OffScreen();
                break;

            case 4:
                chooseBuildingLogoButton.OffScreen();
                break;

            case 5:
                buildingLogoField.OffScreen();
                break;

            case 6:
                buildingNameInputField.OffScreen();
                break;

            case 7:
                buildingLogoImage.OffScreen();
                break;

            case 8:
                createBuildingBG.OffScreen();
                break;
            }
            yield return(new WaitForSeconds(.045f));
        }
    }
Exemple #14
0
    IEnumerator LoadDifferentBuildingUIDoComeOffScreen()
    {
        float timeToUse = 0.055f;

        for (int i = 0; i < 3; i++)
        {
            switch (i)
            {
            case 0:
                SendDispensariesOffScreen();
                SendSuppliersOffScreen();
                break;

            case 1:
                loadDifferentBuilding_suppliersTitleImage.OffScreen();
                break;

            case 2:
                loadDifferentBuilding_dispensariesTitleImage.OffScreen();
                break;
            }
            yield return(new WaitForSeconds(timeToUse));
        }
    }
 void Update()
 {
     if (!controller.manager.canInteract)
     {
         return;
     }
     if (gameObject.activeSelf)
     {
         Ray          ray  = mainCamera.ScreenPointToRay(Input.mousePosition);
         RaycastHit[] hits = Physics.RaycastAll(ray);
         bool         createNewSavegameButtonHit = false;
         foreach (RaycastHit hit in hits)
         {
             //print(hit.transform.name);
             bool hitSmallButton = hit.transform.name.Equals(saveGamesUI_createNewSavegameButton.name);
             bool hitBigButton   = hit.transform.name.Equals(saveGamesUI_createNewSavegamesExpandedButton.name);
             if (hitSmallButton || hitBigButton)
             {
                 if (hitSmallButton)
                 {
                     //saveGamesUI_createNewSavegamesExpandedButton.MouseOver();
                 }
                 MouseOverCreateNewSavegameButton();
                 createNewSavegameButtonHit = true;
                 if (Input.GetMouseButtonUp(0))
                 {
                     controller.StartCreatingNewCompany();
                     saveGamesUI_createNewSavegamesExpandedButton.OffScreen();
                 }
             }
             else if (hit.transform.name.Equals(saveGamesUI_goBackButton.name))
             {
                 if (Input.GetMouseButtonUp(0))
                 {
                     controller.CancelViewingSavegames();
                 }
             }
             else if (hit.transform.tag == "SavegameButton")
             {
                 if (Input.GetMouseButtonUp(0))
                 {
                     Company companyToLoad = database.GetCompany(hit.transform.name);
                     controller.viewingCompanyUIGrouping.currentDispensary = null;
                     controller.viewingCompanyUIGrouping.currentSupplier   = null;
                     controller.viewingCompanyUIGrouping.currentCompany    = companyToLoad;
                     var storeNumber    = 0;
                     var buildingNumber = 0;
                     if (companyToLoad.dispensaries.Count > 0)
                     {
                         storeNumber    = companyToLoad.dispensaries[0].dispensaryNumber;
                         buildingNumber = companyToLoad.dispensaries[0].buildingNumber;
                     }
                     else if (companyToLoad.suppliers.Count > 0)
                     {
                         storeNumber    = companyToLoad.suppliers[0].supplierNumber;
                         buildingNumber = companyToLoad.suppliers[0].buildingNumber;
                     }
                     controller.manager.StartViewingCompany(storeNumber, buildingNumber);
                 }
             }
         }
         if (!createNewSavegameButtonHit)
         {
             MouseLeftCreateNewSavegameButton();
         }
     }
 }