Exemple #1
0
    string GetCursoredElementsText()
    {
        IUIElementGroupScroller uieGroupScroller = (IUIElementGroupScroller)uieGroupScrollerAdaptor.GetUIElement();
        string result = "";

        if (uieGroupScroller != null)
        {
            IUIElement[] curosredElements = uieGroupScroller.GetCursoredElements();
            if (curosredElements != null)
            {
                foreach (IUIElement cursoredElement in curosredElements)
                {
                    if (cursoredElement == null)
                    {
                        result += ", null";
                    }
                    else
                    {
                        result += ", " + uieGroupScroller.GetGroupElementIndex(cursoredElement).ToString();
                    }
                }
            }
            else
            {
                result = "cursoredElements not evaluated";
            }
        }
        else
        {
            result = "uie is not evaluated yet";
        }
        return(result);
    }
        public override void SetUpReference()
        {
            base.SetUpReference();
            IResultLabelPane resultLabelPane = resultLabelPaneAdaptor.GetResultLabelPane();

            thisEndGamePane.SetResultLabelPane(resultLabelPane);

            IResultScorePane scorePane = resultScorePaneAdaptor.GetResultScorePane();

            thisEndGamePane.SetResultScorePane(scorePane);

            IResultHighScorePane highScorePane = resultHighScorePaneAdaptor.GetResultHighScorePane();

            thisEndGamePane.SetResultHighScorePane(highScorePane);

            IResultCurrencyPane currencyPane = resultCurrencyPaneAdaptor.GetResultCurrencyPane();

            thisEndGamePane.SetResultCurrencyPane(currencyPane);

            IWatchADButton button = watchADButtonAdaptor.GetWatchADButton();

            thisEndGamePane.SetWatchADButton(button);

            IMainMenuButtonCluster cluster = buttonClusterAdaptor.GetMainMenuButtonCluster();

            thisEndGamePane.SetMainMenuButtonCluster(cluster);

            IPlayerDataManager playerDataManager = playerDataManagerAdaptor.GetPlayerDataManager();

            thisEndGamePane.SetPlayerDataManager(playerDataManager);

            IUIElementGroupScroller rootScroller = (IUIElementGroupScroller)rootScrollerAdaptor.GetUIElement();

            thisEndGamePane.SetRootScroller(rootScroller);
        }
Exemple #3
0
    string GetCursorOffsetString()
    {
        IUIElementGroupScroller uieGroupScroller = (IUIElementGroupScroller)uieGroupScrollerAdaptor.GetUIElement();

        if (uieGroupScroller != null)
        {
            IUIElement scrollerElement = uieGroupScroller.GetScrollerElement();
            Vector2    offset          = new Vector2();
            for (int i = 0; i < 2; i++)
            {
                float cursorOffset = uieGroupScroller.GetElementCursorOffsetInPixel(
                    scrollerElement.GetLocalPosition()[i],
                    i
                    );
                offset[i] = cursorOffset;
            }
            string result = "Cursored Offset: ( " +
                            offset.x +
                            ", " +
                            offset.y +
                            " )";
            return(result);
        }
        return("");
    }
        public override void SetUpReference()
        {
            base.SetUpReference();
            IUIElementGroupScroller rootScroller = (IUIElementGroupScroller)rootScrollerAdaptor.GetUIElement();

            thisButton.SetRootScroller(rootScroller);
        }
Exemple #5
0
        public override void SetUpReference()
        {
            base.SetUpReference();
            IPopUp popUp = howToPlayPopUpAdaptor.GetPopUp();

            thisHowToPlayButton.SetHowToPlayPopUp(popUp);
            IUIElementGroupScroller scroller = (IUIElementGroupScroller)howToPlayScrollerAdaptor.GetUIElement();

            thisHowToPlayButton.SetHowToPlayScroller(scroller);
        }
        public override void SetUpReference()
        {
            IFadeImage fadeImage = fadeImageAdaptor.GetFadeImage();

            thisStartupManager.SetFadeImage(fadeImage);

            IMainMenuUIElement mainMenuUIElement = mainMenuUIAdaptor.GetMainMenuUIElement();

            thisStartupManager.SetMainMenuUIElement(mainMenuUIElement);

            IUIElementGroupScroller rootScroller = (IUIElementGroupScroller)rootScrollerAdaptor.GetUIElement();

            thisStartupManager.SetRootScroller(rootScroller);

            IColorSchemeManager colorSchemeManager = colorSchemeManagerAdaptor.GetColorSchemeManager();

            thisStartupManager.SetColorSchemeManager(colorSchemeManager);
        }
        public override void SetUpReference()
        {
            IMainMenuUIElement mainMenuUIElement = mainMenuUIAdaptor.GetMainMenuUIElement();

            thisTutorialManager.SetMainMenuUIElement(mainMenuUIElement);
            IGameplayUIElement gameplayUIElement = gameplayUIAdaptor.GetGameplayUIElement();

            thisTutorialManager.SetGameplayUIElement(gameplayUIElement);
            IUIElementGroupScroller rootScroller = (IUIElementGroupScroller)rootScrollerAdaptor.GetUIElement();

            thisTutorialManager.SetRootScroller(rootScroller);
            IFrostManager frostManager = frostManagerAdaptor.GetFrostManager();

            thisTutorialManager.SetFrostManager(frostManager);
            ITutorialTitle tutorialTitle = tutorialTitleAdaptor.GetTutorialTitle();

            thisTutorialManager.SetTutorialTitle(tutorialTitle);
            ITutorialBaseUIElement tutorialBaseUIElement = tutorialBaseUIAdaptor.GetTutorialBaseUIElement();

            thisTutorialManager.SetTutorialBaseUIElement(tutorialBaseUIElement);
        }
        public override void SetUpReference()
        {
            IUIElementGroupScroller bowPanelScroller = (IUIElementGroupScroller)bowPanelGroupScrollerAdaptor.GetUIElement();

            thisWidget.SetBowPanelGroupScroller(bowPanelScroller);

            IBowPanel[] bowPanels = CollectBowPanels();
            thisWidget.SetBowPanels(bowPanels);
            foreach (IBowPanel bowPanel in bowPanels)
            {
                bowPanel.SetBowConfigWidget(thisWidget);
            }

            IPlayerDataManager playerDataManager = playerDataManagerAdaptor.GetPlayerDataManager();

            thisWidget.SetPlayerDataManager(playerDataManager);

            IBowDataCalculator bowDataCalculator = new BowDataCalculator(playerDataManagerAdaptor);

            thisWidget.SetBowDataCalculator(bowDataCalculator);

            IResourcePanel resourcePanel = resourcePanelAdaptor.GetResourcePanel();

            thisWidget.SetResourcePanel(resourcePanel);

            ICurrencyPane currencyPane = currencyPaneAdaptor.GetCurrencyPane();

            thisWidget.SetCurrencyPane(currencyPane);

            IBowUnlockButton[] unlockButtons = CollectBowUnlockButtons();
            thisWidget.SetBowUnlockButtons(unlockButtons);
            foreach (IBowUnlockButton button in unlockButtons)
            {
                button.SetBowConfigWidget(thisWidget);
            }
            IPopText popText = bowConfigLabelPopTextAdaptor.GetPopText();

            thisWidget.SetBowConfigLabelPopText(popText);
        }
        void StartEndGameSequence()
        {
            IGameplayWidget widget = gameplayWidgetAdaptor.GetGameplayWidget();

            widget.ActivateMainMenu();
            IUIElementGroupScroller rootScroller = (IUIElementGroupScroller)rootScrollerAdaptor.GetUIElement();

            rootScroller.DisableInputSelf();
            ITitlePane titlePane = titlePaneAdaptor.GetTitlePane();

            titlePane.Hide(true);

            IEndGamePane endGamePane = endGamePaneAdaptor.GetEndGamePane();

            endGamePane.ActivateThruBackdoor(true);
            endGamePane.ResetEndGamePane();
            endGamePane.FeedStats(
                300,
                200,
                10,
                0
                );
            endGamePane.StartSequence();
        }
 public void SetBowPanelGroupScroller(IUIElementGroupScroller scroller)
 {
     thisBowPanelScroller = scroller;
 }
 public void SetHowToPlayScroller(IUIElementGroupScroller scroller)
 {
     thisHowToPlayScroller = scroller;
 }
        public override void SetUpReference()
        {
            IGameplayUIElement gameplayUIElement = gameplayUIElementAdaptor.GetGameplayUIElement();

            thisWidget.SetGameplayUIElement(gameplayUIElement);

            IPlayerCharacterWaypointsFollower follower = playerCharacterWaypointsFollowerAdaptor.GetPlayerCharacterWaypointsFollower();

            thisWidget.SetPlayerCharacterWaypointsFollower(follower);

            IGameStatsTracker tracker = gameStatsTrackerAdaptor.GetTracker();

            thisWidget.SetGameStatsTracker(tracker);

            IHeadUpDisplay hud = headUpDisplayAdaptor.GetHeadUpDisplay();

            thisWidget.SetHeadUpDisplay(hud);

            IUIElementGroupScroller rootScroller = (IUIElementGroupScroller)rootScrollerAdaptor.GetUIElement();

            thisWidget.SetRootScroller(rootScroller);

            // IFrostGlass frostGlass = rootElementFrostGlassAdaptor.GetFrostGlass();
            // thisWidget.SetRootElementFrostGlass(frostGlass);

            IResourcePanel resourcePanel = resourcePanelAdaptor.GetResourcePanel();

            thisWidget.SetResourcePanel(resourcePanel);

            IMainMenuUIElement mainMenuUIElement = mainMenuUIAdaptor.GetMainMenuUIElement();

            thisWidget.SetMainMenuUIElement(mainMenuUIElement);

            IEndGamePane endGamePane = endGamePaneAdaptor.GetEndGamePane();

            thisWidget.SetEndGamePane(endGamePane);

            ITitlePane titlePane = titlePaneAdaptor.GetTitlePane();

            thisWidget.SetTitlePane(titlePane);

            IPlayerDataManager playerDataManager = playerDataManagerAdaptor.GetPlayerDataManager();

            thisWidget.SetPlayerDataManager(playerDataManager);

            IShootingDataManager shootingDataManager = shootingDataManagerAdaptor.GetShootingDataManager();

            thisWidget.SetShootingDataManager(shootingDataManager);

            IScoreManager scoreManager = scoreManagerAdaptor.GetScoreManager();

            thisWidget.SetScoreManager(scoreManager);

            ICurrencyManager currencyManager = currencyManagerAdaptor.GetCurrencyManager();

            thisWidget.SetCurrencyManager(currencyManager);

            IHeatManager heatManager = heatManagerAdaptor.GetHeatManager();

            thisWidget.SetHeatManager(heatManager);

            ICoreGameplayInputScroller inputScroller = inputScrollerAdaptor.GetInputScroller();

            thisWidget.SetCoreGameplayInputScroller(inputScroller);

            IGameplayPause gameplayPause = gameplayPauseAdaptor.GetGameplayPause();

            thisWidget.SetGameplayPause(gameplayPause);

            IPlayerInputManager playerInputManager = playerInputManagerAdaptor.GetInputManager();

            thisWidget.SetPlayerInputManager(playerInputManager);

            IFrostManager frostManager = frostManagerAdaptor.GetFrostManager();

            thisWidget.SetFrostManager(frostManager);

            ITutorialPane tutorialPane = tutorialPaneAdaptor.GetTutorialPane();

            thisWidget.SetTutorialPane(tutorialPane);

            IColorSchemeManager colorSchemeManager = colorSchemeManagerAdaptor.GetColorSchemeManager();

            thisWidget.SetColorSchemeManager(colorSchemeManager);

            IInterstitialADManager interstitialADManager = interstitialADManagerAdaptor.GetInterstitialADManager();

            thisWidget.SetInterstitialADManager(interstitialADManager);
        }
 public void SetRootScroller(IUIElementGroupScroller scroller)
 {
     thisRootScroller = scroller;
 }
        void PlaceElementByIndexUnderCursor()
        {
            IUIElementGroupScroller groupScroller = (IUIElementGroupScroller)groupScrollerAdaptor.GetUIElement();

            groupScroller.PlaceGroupElementUnderCursor(groupElementIndex);
        }
        void SnapToElementByIndex()
        {
            IUIElementGroupScroller groupScroller = (IUIElementGroupScroller)groupScrollerAdaptor.GetUIElement();

            groupScroller.SnapToGroupElement(groupElementIndex);
        }