Exemplo n.º 1
0
 private void onPressed(ButtonClickListener.ClickType clickType)
 {
     if (base.enabled)
     {
         Service.Get <PromptManager>().ShowPrompt(exitPromptData, onExitConfirmPromptComplete);
     }
 }
Exemplo n.º 2
0
 private void onHitboxClicked(ButtonClickListener.ClickType clickType)
 {
     if (currentScreen != null)
     {
         currentScreen.OnClick();
     }
 }
Exemplo n.º 3
0
 private void onBubbleClicked(ButtonClickListener.ClickType clickType)
 {
     if (clickToClose && IsOpen)
     {
         closeBubble();
     }
 }
Exemplo n.º 4
0
 public virtual void OnClick(ButtonClickListener.ClickType clickType)
 {
     isSelected = true;
     if (base.enabled && mainNavData.CurrentState != 0)
     {
         setState(MainNavButtonState.SELECTED);
     }
 }
Exemplo n.º 5
0
    public override void OnClick(ButtonClickListener.ClickType clickType)
    {
        DButton dButton = new DButton();

        dButton.Id = "MainNavControl";
        Service.Get <EventDispatcher>().DispatchEvent(new ButtonEvents.ClickEvent(dButton));
        setState(MainNavButtonState.SELECTED);
    }
Exemplo n.º 6
0
 private void onButtonClicked(ButtonClickListener.ClickType clickType)
 {
     if (stateMachineContext != null)
     {
         stateMachineContext.SendEvent(new ExternalEvent("Root", "popup_closed"));
     }
     UnityEngine.Object.Destroy(base.gameObject);
 }
Exemplo n.º 7
0
 private void onButtonClicked(ButtonClickListener.ClickType clickType)
 {
     if (base.isActiveAndEnabled && !isLoadingPrefab)
     {
         isLoadingPrefab = true;
         SceneRefs.FullScreenPopupManager.CreatePopup(mapContentKey, accessibilityKey, useCameraSpace: true, onPrefabCreated);
     }
 }
Exemplo n.º 8
0
 private void OnClicked(ButtonClickListener.ClickType interactedType)
 {
     if (!isCoolingDown)
     {
         isCoolingDown = true;
         dispatcher.DispatchEvent(new InputEvents.SwitchChangeEvent(Switch, isSliding));
         CoroutineRunner.Start(cooldownFinished(), this, "cooldownFinished");
     }
 }
 private void onClicked(ButtonClickListener.ClickType interactedType)
 {
     if (EventManager.Instance != null)
     {
         string     eventName        = (string.IsNullOrEmpty(AudioName) ? "SFX/UI/MainTray/ButtonSmall" : AudioName);
         GameObject parentGameObject = ((OverrideSoundSource != null) ? OverrideSoundSource : base.gameObject);
         EventManager.Instance.PostEvent(eventName, EventType, parentGameObject);
     }
 }
Exemplo n.º 10
0
        public void OnCellPhoneButtonPressed(ButtonClickListener.ClickType clickType)
        {
            Quest activeQuest = Service.Get <QuestService>().ActiveQuest;

            if ((activeQuest == null || activeQuest.Definition.name != "AAC001Q001LeakyShip" || activeQuest.IsObjectiveComplete("Obj0FSM")) && !isCellPhoneOpenOrOpening && SceneManager.GetActiveScene().name != "ClothingDesigner")
            {
                startOpenCellPhone();
            }
        }
        private void onClicked(ButtonClickListener.ClickType clickType)
        {
            MemberAccess component = GetComponent <MemberAccess>();

            if (component == null || component.IsMemberLocked)
            {
                string trigger = base.gameObject.name.Replace("(Clone)", "");
                Service.Get <GameStateController>().ShowAccountSystemMembership(trigger);
            }
        }
 private void onPlayClicked(ButtonClickListener.ClickType interactedType)
 {
     if (Service.Get <ApplicationService>().RequiresUpdate)
     {
         ForcedUpgrade.OpenForcedUpgradePrompt();
         return;
     }
     PlayButtonSpinner.SetActive(value: true);
     PlayButton.interactable = false;
     Service.Get <EventDispatcher>().AddListener <AccountSystemEvents.AccountSystemEnded>(resetPlayButton);
     gameStateController.EnterGame();
 }
Exemplo n.º 13
0
 private void onCollectClicked(ButtonClickListener.ClickType clickType)
 {
     TakeItemButton.OnClick.RemoveListener(onCollectClicked);
     if (popupData.CoinReward > 0)
     {
         Service.Get <CPDataEntityCollection>().GetComponent <CoinsData>(Service.Get <CPDataEntityCollection>().LocalPlayerHandle).AddCoins(popupData.CoinReward);
     }
     if (popupData.XpReward > 0)
     {
         Service.Get <EventDispatcher>().DispatchEvent(default(RewardEvents.ShowSuppressedAddXP));
     }
     ClosePopup();
 }
        private void OnClicked(ButtonClickListener.ClickType interactedType)
        {
            string arg = $"{context}.{action}";

            if (!string.IsNullOrEmpty(message))
            {
                arg = $"{arg}.{message}";
            }
            if (!string.IsNullOrEmpty(type))
            {
                arg = $"{arg}.{type}";
            }
            arg = $"{arg}.{interactedType.ToString()}";
            Service.Get <ICPSwrveService>().NavigationAction(arg);
        }
Exemplo n.º 15
0
 private void onFullscreenButtonClicked(ButtonClickListener.ClickType clickType)
 {
     clickActiveSpeechBubbles();
 }
Exemplo n.º 16
0
 private void onListenerClicked(ButtonClickListener.ClickType interactedType)
 {
     handleEvent();
 }
Exemplo n.º 17
0
 private void onButtonClicked(ButtonClickListener.ClickType clickType)
 {
     Service.Get <EventDispatcher>().DispatchEvent(default(MainNavBarBackButtonClicked));
 }
Exemplo n.º 18
0
        private void OnClicked(ButtonClickListener.ClickType interactedType)
        {
            string callID = $"{id}_{interactedType.ToString()}";

            Service.Get <ICPSwrveService>().ActionSingular(callID, $"game.{context}", action, interactedType.ToString());
        }
Exemplo n.º 19
0
 private void onListenerClicked(ButtonClickListener.ClickType interactedType)
 {
     Object.Destroy(ObjectToDestroy);
 }
Exemplo n.º 20
0
 private void onZonePromptYesClicked(ButtonClickListener.ClickType clickType)
 {
     logTravelToZone();
     Service.Get <ZoneTransitionService>().LoadZone(zoneDefinition);
 }
Exemplo n.º 21
0
 private void onCloseButtonClicked(ButtonClickListener.ClickType clickType)
 {
     animator.SetTrigger("Close");
 }
Exemplo n.º 22
0
 private void onPlayClicked(ButtonClickListener.ClickType interactedType)
 {
     toggleInteraction(isInteractable: false);
     Service.Get <GameStateController>().EnterGame();
 }
Exemplo n.º 23
0
 private void onClickListener(ButtonClickListener.ClickType clickType)
 {
     onPressed();
 }
Exemplo n.º 24
0
 private void onZonePromptNoClicked(ButtonClickListener.ClickType clickType)
 {
     Close();
 }
Exemplo n.º 25
0
 private void onCollectClicked(ButtonClickListener.ClickType clickType)
 {
     TakeItemButton.OnClick.RemoveListener(onCollectClicked);
     hasLastTweenCompleted = false;
     CoroutineRunner.Start(tweenImage(), this, "");
 }
 public void OnCloseButtonPressed(ButtonClickListener.ClickType clickType)
 {
     dispatcher.DispatchEvent(default(CellPhoneEvents.CellPhoneClosed));
 }