示例#1
0
        public override void OnEnter()
        {
            UIMenu.Instance.OnboardingBlock = true;
            PopupWindowManager.ClosePopup();
            string spawnText  = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_OBJECT_SPAWN");
            string cancelText = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_CANCEL_SPAWN");

            spawnText = string.Format(spawnText, LanguageManager.Instance.GetTextValue("BUTTON"));
            TooltipManager.ShowControllerTooltip(spawnText, ControllerTooltipManager.TooltipControllers.Right, ControllerTooltipManager.TooltipButtons.Trigger);
            TooltipManager.ShowControllerTooltip(cancelText, ControllerTooltipManager.TooltipControllers.Right, ControllerTooltipManager.TooltipButtons.Grip);
        }
示例#2
0
        public override void OnEnter()
        {
            StateMachine.UiMenu.HighlightMenuItem(OnboardingStateMachine.ButtonGuid);
            string selectObject = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_OBJECT_SELECT");

            selectObject = string.Format(selectObject, LanguageManager.Instance.GetTextValue("BUTTON"));

            TooltipManager.ShowControllerTooltip(selectObject,
                                                 ControllerTooltipManager.TooltipControllers.Right,
                                                 ControllerTooltipManager.TooltipButtons.Trigger);
            StateMachine.UiMenu.OnMenuClosed += UiMenuOnOnMenuClosedWhenButtonSpawn;
        }
示例#3
0
        public override void OnEnter()
        {
            UIMenu.Instance.OnboardingBlock = true;

            PopupHelper.Show(LanguageManager.Instance.GetTextValue("TUTORIAL_POPUP_MOVING"),
                             null,
                             StateMachine.ImageContainer.Teleport);
            string teleport = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_MOVING");

            TooltipManager.ShowControllerTooltip(teleport,
                                                 ControllerTooltipManager.TooltipControllers.Right,
                                                 ControllerTooltipManager.TooltipButtons.Touchpad);

            InputAdapter.Instance.PointerController.IsMenuOpened = false;

            // We need to test what GO was taking the teleportarea tag in build
            var go = GameObject.FindWithTag("TeleportArea");

            if (go != null)
            {
                Debug.Log("!!!!!!!!!!!!!" + go.name);
            }

            GameObject teleportArea = GameObject.Find("/_Level/Floor_teleport_zone");

            if (teleportArea != null)
            {
                teleportArea.layer = 5;

                Collider colliderTeleport = teleportArea.GetComponentInChildren <Collider>();

                if (colliderTeleport != null)
                {
                    InputAdapter.Instance.PlayerController.PlayerTeleported += position =>
                    {
                        _conditionsMoving = true;

                        TooltipManager.HideControllerTooltip(ControllerTooltipManager.TooltipControllers.Right,
                                                             ControllerTooltipManager.TooltipButtons.Touchpad);
                    };
                }

                else
                {
                    Debug.LogError("TeleportArea collider not found!");
                }
            }

            else
            {
                Debug.LogError("TeleportArea not found!");
            }
        }
        public override void OnEnter()
        {
            PopupHelper.Show(LanguageManager.Instance.GetTextValue("ONBOARDING_POPUP_PREVIEW_MENU_CHANGE_MODE"),
                             null,
                             StateMachine.ImageContainer.Eye);
            string openMenu = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_OPEN_MENU");

            TooltipManager.ShowControllerTooltip(openMenu,
                                                 ControllerTooltipManager.TooltipControllers.Left,
                                                 ControllerTooltipManager.TooltipButtons.ButtonTwo);
            StateMachine.UiMenu.OnMenuOpened += () => { _conditionsMenuOpening = true; };
        }
示例#5
0
        public override void OnEnter()
        {
            StateMachine.UiMenu.HighlightSaveButton();
            PopupWindowManager.ClosePopup();
            string pressOk = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_POINTER_CLICK");

            pressOk = string.Format(pressOk, LanguageManager.Instance.GetTextValue("SAVE"));

            TooltipManager.ShowControllerTooltip(pressOk,
                                                 ControllerTooltipManager.TooltipControllers.Right,
                                                 ControllerTooltipManager.TooltipButtons.Trigger);
            StateMachine.UiMenu.OnMenuClosed += UiMenuOnOnMenuClosedWhenSaving;
            ProjectData.OnSave += () => { _conditionsSaving = true; };
        }
示例#6
0
        public override void OnEnter()
        {
            string pressOk = LanguageManager.Instance.GetTextValue("ONBOARDING_TOOLTIP_POINTER_CLICK_EYE");

            TooltipManager.ShowControllerTooltip(pressOk,
                                                 ControllerTooltipManager.TooltipControllers.Right,
                                                 ControllerTooltipManager.TooltipButtons.Trigger);

            TooltipManager.SetObjectTooltip(UIMenu.Instance.ModeButton,
                                            LanguageManager.Instance.GetTextValue("ONBOARDING_TOOLTIP_PRESS_EYE_ICON"),
                                            ObjectTooltip.ObjectTooltipSize.Small,
                                            0.1f);

            StateMachine.UiMenu.OnMenuClosed += UiMenuOnOnMenuClosedWhenSaving;

            ProjectData.GameModeChanged += GmChanged;
        }
示例#7
0
        public override void OnEnter()
        {
            StateMachine.UiMenu.HighlightModeButton();
            string pressOk = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_POINTER_CLICK");

            pressOk = string.Format(pressOk, LanguageManager.Instance.GetTextValue("MODE"));

            TooltipManager.ShowControllerTooltip(pressOk,
                                                 ControllerTooltipManager.TooltipControllers.Right,
                                                 ControllerTooltipManager.TooltipButtons.Trigger);


            TooltipManager.SetObjectTooltip(UIMenu.Instance.ModeButtonOffset,
                                            LanguageManager.Instance.GetTextValue("ONBOARDING_POPUP_MENU_CHANGE_MODE"),
                                            ObjectTooltip.ObjectTooltipSize.Small,
                                            0.1f);

            StateMachine.UiMenu.OnMenuClosed += UiMenuOnOnMenuClosedWhenSaving;

            ProjectData.GameModeChanged += GmChanged;
        }
示例#8
0
        public override void OnEnter()
        {
            UIMenu.Instance.OnboardingBlock = true;
            string text = LanguageManager.Instance.GetTextValue("TUTORIAL_POPUP_OBJECT_MOVE");

            text = string.Format(text, LanguageManager.Instance.GetTextValue("BUTTON"));
            //PopupState.Show(text, null, StateMachine.ImageContainer.Grab);

            string moveMe = text; //LanguageManager.Instance.GetTextValue("TUTORIAL_MOVE_ME");

            TooltipManager.SetObjectTooltip(StateMachine.ButtonGameObject,
                                            moveMe,
                                            ObjectTooltip.ObjectTooltipSize.Large,
                                            0.1f);

            string toolTip = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_GRIP");

            TooltipManager.ShowControllerTooltip(toolTip,
                                                 ControllerTooltipManager.TooltipControllers.Right,
                                                 ControllerTooltipManager.TooltipButtons.Grip);
        }
示例#9
0
        public override void OnEnter()
        {
            UIMenu.Instance.OnboardingBlock = true;

            string message = LanguageManager.Instance.GetTextValue("TUTORIAL_POPUP_LOGIC_START");

            PopupHelper.Show(message,
                             () =>
            {
                InputAdapter.Instance.PointerController.IsMenuOpened = false;
            },
                             StateMachine.ImageContainer.Use,
                             true);
            string trigger = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOL_TIP_BUTTON_USE");

            TooltipManager.ShowControllerTooltip(trigger,
                                                 ControllerTooltipManager.TooltipControllers.Right,
                                                 ControllerTooltipManager.TooltipButtons.Trigger);

            string button = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOL_TIP_PRESS_ME");

            TooltipManager.SetObjectTooltip(StateMachine.ButtonGameObject, button);
        }
示例#10
0
        public override void OnEnter()
        {
            UIMenu.Instance.OnboardingBlock = true;

            PopupHelper.Show(LanguageManager.Instance.GetTextValue("TUTORIAL_POPUP_HELLO"),
                             () =>
            {
                _conditionsHello = true;

                TooltipManager.HideControllerTooltip(ControllerTooltipManager.TooltipControllers.Right,
                                                     ControllerTooltipManager.TooltipButtons.Trigger);
            },
                             StateMachine.ImageContainerCommon.Hello,
                             true,
                             LanguageManager.Instance.GetTextValue("ONBOARDING_POPUP_START_BUTTON"));
            string pressOk = LanguageManager.Instance.GetTextValue("TUTORIAL_TOOLTIP_POINTER_CLICK");

            pressOk = string.Format(pressOk, LanguageManager.Instance.GetTextValue("ONBOARDING_POPUP_START_BUTTON"));

            TooltipManager.ShowControllerTooltip(pressOk,
                                                 ControllerTooltipManager.TooltipControllers.Right,
                                                 ControllerTooltipManager.TooltipButtons.Trigger);
        }