Beispiel #1
0
 private void Awake()
 {
     descriptionText.text  = L10nManager.Localize("UI_RANKING_REWARDS_DESCRIPTION");
     firstRewardText.text  = GameConfig.RankingRewardFirst.ToString();
     secondRewardText.text = GameConfig.RankingRewardSecond.ToString();
     thirdRewardText.text  = GameConfig.RankingRewardThird.ToString();
 }
Beispiel #2
0
        private void ShowTooltip(ShopItemView view)
        {
            var tooltip = Find <ItemInformationTooltip>();

            inventory.SharedModel.DeselectItemView();

            if (view is null ||
                view.RectTransform == tooltip.Target)
            {
                tooltip.Close();
                return;
            }

            if (SharedModel.State.Value == StateType.Buy)
            {
                tooltip.Show(
                    view.RectTransform,
                    view.Model,
                    ButtonEnabledFuncForBuy,
                    L10nManager.Localize("UI_BUY"),
                    _ => ShowBuyPopup(tooltip.itemInformation.Model.item.Value as ShopItem),
                    _ => shopItems.SharedModel.DeselectItemView());
            }
            else
            {
                tooltip.Show(
                    view.RectTransform,
                    view.Model,
                    ButtonEnabledFuncForSell,
                    L10nManager.Localize("UI_RETRIEVE"),
                    _ =>
                    ShowRetrievePopup(tooltip.itemInformation.Model.item.Value as ShopItem),
                    _ => shopItems.SharedModel.DeselectItemView());
            }
        }
        private List <ITutorialData> GetTutorialData(ScenarioData data)
        {
            var preset    = _preset.First(x => x.id == data.presetId);
            var target    = _targets.ContainsKey(data.targetType) ? _targets[data.targetType] : null;
            var scriptKey = data.scriptKey;
            var script    = L10nManager.TryLocalize(scriptKey, out var s) ? s : scriptKey;

            return(new List <ITutorialData>()
            {
                new GuideBackgroundData(
                    preset.isExistFadeInBackground,
                    preset.isEnableMask,
                    target,
                    _buttonRectTransform,
                    data.fullScreenButton),
                new GuideArrowData(
                    data.noArrow ? GuideType.Stop : data.guideType,
                    target,
                    data.targetPositionOffset,
                    data.targetSizeOffset,
                    data.arrowAdditionalDelay,
                    preset.isSkipArrowAnimation),
                new GuideDialogData(
                    data.emojiType,
                    (DialogCommaType)preset.commaId,
                    script,
                    target)
            });
        }
Beispiel #4
0
        private void SubscribeSelect(bool value)
        {
            _tweener?.Kill();
            _tweener             = null;
            transform.localScale = Vector3.one;

            if (!value)
            {
                SubscribeState(SharedViewModel?.State.Value ?? State.Normal);
                return;
            }

            gameObject.SetActive(true);
            normalImage.enabled   = false;
            disabledImage.enabled = false;
            selectedImage.enabled = true;
            buttonText.color      = ColorHelper.HexToColorRGB("FFF9DD");

            if (L10nManager.TryGetFontMaterial(FontMaterialType.ButtonYellow, out var fontMaterial))
            {
                buttonText.fontSharedMaterial = fontMaterial;
            }

            _tweener = transform
                       .DOScale(1.2f, 1f)
                       .SetEase(Ease.Linear)
                       .SetLoops(-1, LoopType.Yoyo);
        }
Beispiel #5
0
        private void UpdateViewAsDefeat(BattleLog.Result result)
        {
            AudioController.instance.PlayMusic(AudioController.MusicCode.Lose);
            AnalyticsManager.Instance.OnEvent(AnalyticsManager.EventName.ActionBattleLose);

            victoryImageContainer.SetActive(false);
            defeatImageContainer.SetActive(true);
            topArea.SetActive(false);
            defeatTextArea.root.SetActive(true);
            var key = "UI_BATTLE_RESULT_DEFEAT_MESSAGE";

            if (result == BattleLog.Result.TimeOver)
            {
                key = "UI_BATTLE_RESULT_TIMEOUT_MESSAGE";
            }

            defeatTextArea.defeatText.text = L10nManager.Localize(key);
            defeatTextArea.expText.text    = $"EXP + {SharedModel.Exp}";
            bottomText.enabled             = false;
            closeButton.interactable       = true;
            closeButtonText.text           = L10nManager.Localize("UI_MAIN");
            submitButtonText.text          = L10nManager.Localize("UI_BATTLE_AGAIN");

            _coUpdateBottomText = StartCoroutine(CoUpdateBottomText(Timer));
            StartCoroutine(CoUpdateRewards());
        }
        protected override void Awake()
        {
            base.Awake();

            submitButton.SetSubmitText(
                L10nManager.Localize("UI_COMBINATION_WAITING"),
                L10nManager.Localize("UI_RAPID_COMBINATION")
                );

            submitButton.OnSubmitClick.Subscribe(_ =>
            {
                AudioController.PlayClick();
                RapidCombination();
                Close();
            }).AddTo(gameObject);
            touchHandler.OnClick.Subscribe(pointerEventData =>
            {
                if (pointerEventData.pointerCurrentRaycast.gameObject.Equals(gameObject))
                {
                    AudioController.PlayClick();
                    Close();
                }
            }).AddTo(gameObject);

            CloseWidget = null;
        }
        private void DailyReward()
        {
            _renderer.EveryRender <DailyReward>()
            .Where(ValidateEvaluationForCurrentAgent)
            .ObserveOnMainThread()
            .Subscribe(eval =>
            {
                LocalLayer.Instance
                .ClearAvatarModifiers <AvatarDailyRewardReceivedIndexModifier>(
                    eval.Action.avatarAddress);

                UpdateCurrentAvatarState(eval);

                if (eval.Exception is null)
                {
                    UI.Notification.Push(
                        Nekoyume.Model.Mail.MailType.System,
                        L10nManager.Localize("UI_RECEIVED_DAILY_REWARD"));
                    var avatarAddress = eval.Action.avatarAddress;
                    var itemId        = eval.Action.dailyRewardResult.materials.First().Key.ItemId;
                    var itemCount     = eval.Action.dailyRewardResult.materials.First().Value;
                    LocalLayerModifier.RemoveItem(avatarAddress, itemId, itemCount);
                    LocalLayerModifier.AddNewAttachmentMail(avatarAddress, eval.Action.dailyRewardResult.id);
                    WidgetHandler.Instance.Menu.SetActiveActionPointLoading(false);
                }
            }).AddTo(_disposables);
        }
Beispiel #8
0
        public void ChangeTail(int offset)
        {
            var tail = _tail + offset;

            if (tail < 0)
            {
                tail = TailCount + offset;
            }
            else if (tail >= TailCount)
            {
                tail = 0;
            }

            if (tail == _tail)
            {
                return;
            }

            _tail = tail;

            paletteTailText.text = $"{L10nManager.Localize("UI_TAIL")} {_tail + 1}";

            var player = Game.Game.instance.Stage.selectedPlayer;

            if (player is null)
            {
                throw new NullReferenceException(nameof(player));
            }

            player.UpdateTailByCustomizeIndex(_tail);
        }
Beispiel #9
0
 public void SetLockCondition(int condition)
 {
     _lockCondition = condition;
     _messageForCat = string.Format(L10nManager.Localize("UI_REQUIRE_CLEAR_STAGE"),
                                    _lockCondition);
     UpdateLock();
 }
Beispiel #10
0
        public void ChangeLens(int offset)
        {
            var lens = _lens + offset;

            if (lens < 0)
            {
                lens = LensCount + offset;
            }
            else if (lens >= LensCount)
            {
                lens = 0;
            }

            if (lens == _lens)
            {
                return;
            }

            _lens = lens;

            paletteLensText.text = $"{L10nManager.Localize("UI_LENS")} {_lens + 1}";

            var player = Game.Game.instance.Stage.selectedPlayer;

            if (player is null)
            {
                throw new NullReferenceException(nameof(player));
            }

            player.UpdateEyeByCustomizeIndex(_lens);
        }
Beispiel #11
0
        public void ChangeHair(int offset)
        {
            var hair = _hair + offset;

            if (hair < 0)
            {
                hair = HairCount + offset;
            }
            else if (hair >= HairCount)
            {
                hair = 0;
            }

            if (hair == _hair)
            {
                return;
            }

            _hair = hair;

            paletteHairText.text = $"{L10nManager.Localize("UI_HAIR")} {_hair + 1}";

            var player = Game.Game.instance.Stage.selectedPlayer;

            if (player is null)
            {
                throw new NullReferenceException(nameof(player));
            }

            player.UpdateHairByCustomizeIndex(_hair);
        }
Beispiel #12
0
        public void ChangeEar(int offset)
        {
            var ear = _ear + offset;

            if (ear < 0)
            {
                ear = EarCount + offset;
            }
            else if (ear >= EarCount)
            {
                ear = 0;
            }

            if (ear == _ear)
            {
                return;
            }

            _ear = ear;

            paletteEarText.text = $"{L10nManager.Localize("UI_EAR")} {_ear + 1}";

            var player = Game.Game.instance.Stage.selectedPlayer;

            if (player is null)
            {
                throw new NullReferenceException(nameof(player));
            }

            player.UpdateEarByCustomizeIndex(_ear);
        }
Beispiel #13
0
        protected override void Awake()
        {
            State.Value = States.Show;
            State.Subscribe(SubscribeState).AddTo(gameObject);
            strongText.gameObject.SetActive(false);
            weakText.gameObject.SetActive(false);
            correctText.gameObject.SetActive(false);
            incorrectText.gameObject.SetActive(false);
            contentText.text          = L10nManager.Localize("UI_LOGIN_CONTENT");
            accountAddressHolder.text = L10nManager.Localize("UI_ACCOUNT_PLACEHOLDERS");
            findPassphraseTitle.text  = L10nManager.Localize("UI_LOGIN_FIND_PASSPHRASE_TITLE");
            findPassphraseText.text   = L10nManager.Localize("UI_LOGIN_FIND_PASSPHRASE");
            backToLoginText.text      = L10nManager.Localize("UI_LOGIN_BACK_TO_LOGIN");
            passPhraseText.text       = L10nManager.Localize("UI_LOGIN_PASSWORD_INFO");
            retypeText.text           = L10nManager.Localize("UI_LOGIN_RETYPE_INFO");
            loginText.text            = L10nManager.Localize("UI_LOGIN_INFO");
            enterPrivateKeyText.text  = L10nManager.Localize("UI_LOGIN_PRIVATE_KEY_INFO");
            successText.text          = L10nManager.Localize("UI_ID_CREATE_SUCCESS");
            passPhraseField.placeholder.GetComponent <Text>().text =
                L10nManager.Localize("UI_LOGIN_INPUT_PASSPHRASE");
            retypeField.placeholder.GetComponent <Text>().text =
                L10nManager.Localize("UI_LOGIN_RETYPE_PASSPHRASE");
            loginField.placeholder.GetComponent <Text>().text =
                L10nManager.Localize("UI_LOGIN_LOGIN");
            findPassphraseField.placeholder.GetComponent <Text>().text =
                L10nManager.Localize("UI_LOGIN_ENTER_PRIVATE_KEY");
            submitText.text = L10nManager.Localize("UI_GAME_START");
            submitButton.OnSubmitClick.Subscribe(_ => Submit());
            base.Awake();

            SubmitWidget = Submit;
        }
Beispiel #14
0
        public void OnException(int code, string message)
        {
            var key       = "ERROR_UNHANDLED";
            var errorCode = "100";

            switch (code)
            {
            case (int)RPCException.NetworkException:
                key       = "ERROR_NETWORK";
                errorCode = "101";
                break;

            case (int)RPCException.InvalidRenderException:
                key       = "ERROR_INVALID_RENDER";
                errorCode = "102";
                break;
            }

            var errorMsg = string.Format(L10nManager.Localize("UI_ERROR_RETRY_FORMAT"),
                                         L10nManager.Localize(key), errorCode);

            Debug.Log($"{message} (code: {code})");
            Game.Event.OnRoomEnter.Invoke(true);
            Game.Game.instance.Stage.OnRoomEnterEnd
            .First()
            .Subscribe(_ =>
            {
                Widget
                .Find <Alert>()
                .Show(L10nManager.Localize("UI_ERROR"), errorMsg,
                      L10nManager.Localize("UI_OK"), false);
            });
        }
        private IEnumerator CoAnimateNPC()
        {
            var go = Game.Game.instance.Stage.npcFactory.Create(
                NPCId,
                npcPosition.position,
                LayerType.UI,
                31);

            _npc = go.GetComponent <NPC>();
            _npc.SpineController.Appear(.3f);
            ShowButton();
            var pos = ActionCamera.instance.Cam.transform.position;

            _sparkVFX = VFXController.instance.CreateAndChaseCam <CombinationSparkVFX>(pos);
            _npc.PlayAnimation(NPCAnimation.Type.Appear_02);
            yield return(new WaitForSeconds(1f));

            _fireVFX = VFXController.instance.CreateAndChaseCam <CombinationBGFireVFX>(pos, new Vector3(-.7f, -.35f));
            speechBubble.SetKey("SPEECH_COMBINATION_START_");
            StartCoroutine(speechBubble.CoShowText(true));
            StartCoroutine(CoWorkshopItemMove());

            var format = L10nManager.Localize("UI_PRESS_TO_CONTINUE_FORMAT");

            for (int timer = ContinueTime; timer >= 0; --timer)
            {
                continueText.text = string.Format(format, timer);
                yield return(_waitForOneSec);
            }

            StartCoroutine(CoDisappearNPC());
        }
Beispiel #16
0
        private void OnSliderChange(float value)
        {
            var gameConfigState = States.Instance.GameConfigState;
            var remainSecond    = (gameConfigState.DailyArenaInterval - value) * 15;
            var timeSpan        = TimeSpan.FromSeconds(remainSecond);

            var sb = new StringBuilder();

            if (timeSpan.Hours > 0)
            {
                sb.Append($"{timeSpan.Hours}h");
            }

            if (timeSpan.Minutes > 0)
            {
                if (timeSpan.Hours > 0)
                {
                    sb.Append(" ");
                }

                sb.Append($"{timeSpan.Minutes}m");
            }

            if (sb.Length == 0)
            {
                sb.Append("1m");
            }

            remainTime.text = string.Format(
                L10nManager.Localize("UI_REMAININGTIME"),
                sb,
                (int)value, gameConfigState.DailyArenaInterval);
        }
        private void RapidCombination()
        {
            LocalLayerModifier.RemoveItem(States.Instance.CurrentAvatarState.address, _row.ItemId,
                                          _cost);
            var blockIndex = Game.Game.instance.Agent.BlockIndex;

            LocalLayerModifier.UnlockCombinationSlot(_slotIndex, blockIndex);
            var slotAddress = States.Instance.CurrentAvatarState.address.Derive(
                string.Format(
                    CultureInfo.InvariantCulture,
                    CombinationSlotState.DeriveFormat,
                    _slotIndex
                    )
                );
            var slotState = States.Instance.CombinationSlotStates[slotAddress];
            var result    = (CombinationConsumable.ResultModel)slotState.Result;

            LocalLayerModifier.AddNewResultAttachmentMail(
                States.Instance.CurrentAvatarState.address, result.id, blockIndex);
            var format = L10nManager.Localize("NOTIFICATION_COMBINATION_COMPLETE");

            Notification.Push(
                MailType.Workshop,
                string.Format(CultureInfo.InvariantCulture, format,
                              result.itemUsable.GetLocalizedName())
                );
            Notification.CancelReserve(result.itemUsable.ItemId);
            Game.Game.instance.ActionManager.RapidCombination(_slotIndex);
        }
Beispiel #18
0
        public override void Initialize()
        {
            base.Initialize();
            monstersAreaText.text = L10nManager.Localize("UI_WORLD_MAP_MONSTERS");
            rewardsAreaText.text  = L10nManager.Localize("UI_REWARDS");
            submitButton.SetSubmitText(L10nManager.Localize("UI_WORLD_MAP_ENTER"));

            var tooltip = Find <ItemInformationTooltip>();

            foreach (var view in rewardsAreaItemViews)
            {
                view.touchHandler.OnClick.Subscribe(_ =>
                {
                    AudioController.PlayClick();
                    var model = new Model.CountableItem(
                        new Nekoyume.Model.Item.Material(view.Data as MaterialItemSheet.Row),
                        1);
                    tooltip.Show(view.RectTransform, model);
                    tooltip.itemInformation.iconArea.itemView.countText.enabled = false;
                }).AddTo(view);
            }

            foreach (var stage in world.Pages.SelectMany(page => page.Stages))
            {
                stage.onClick.Subscribe(worldMapStage =>
                {
                    _sharedViewModel.SelectedStageId.Value =
                        worldMapStage.SharedViewModel.stageId;
                }).AddTo(gameObject);
            }

            submitButton.OnSubmitClick
            .Subscribe(_ => GoToPreparation())
            .AddTo(gameObject);
        }
Beispiel #19
0
        private void ShowTooltip(InventoryItemView view)
        {
            var tooltip = Find <ItemInformationTooltip>();

            if (view is null ||
                view.RectTransform == tooltip.Target)
            {
                tooltip.Close();

                return;
            }

            tooltip.Show(
                view.RectTransform,
                view.Model,
                value => !view.Model.Dimmed.Value,
                view.Model.EquippedEnabled.Value
                    ? L10nManager.Localize("UI_UNEQUIP")
                    : L10nManager.Localize("UI_EQUIP"),
                _ => Equip(tooltip.itemInformation.Model.item.Value),
                _ =>
            {
                equipSlotGlow.SetActive(false);
                inventory.SharedModel.DeselectItemView();
            });
        }
Beispiel #20
0
        public void Show(string placeHolderText, string content, string labelYes = "UI_OK", string labelNo = "UI_CANCEL",
                         bool localize = true)
        {
            text = inputField.text = string.Empty;
            if (localize)
            {
                inputFieldPlaceHolder.text = L10nManager.Localize(placeHolderText);
                this.content.text          = L10nManager.Localize(content);
                this.labelYes.text         = L10nManager.Localize(labelYes);
                this.labelNo.text          = L10nManager.Localize(labelNo);
            }
            else
            {
                inputFieldPlaceHolder.text = placeHolderText;
                this.content.text          = content;
                this.labelYes.text         = "OK";
                this.labelNo.text          = "CANCEL";
            }

            base.Show();
            blur?.Show();
            inputField.Select();

            Observable.NextFrame().Subscribe(_ =>
            {
                inputField.placeholder.transform.SetAsFirstSibling();
                inputField.textComponent.transform.SetAsFirstSibling();
            });
        }
Beispiel #21
0
 public SkillView(Skill skill)
 {
     iconSprite.Value = skill.SkillRow.GetIcon();
     name.Value       = skill.SkillRow.GetLocalizedName();
     power.Value      = $"{L10nManager.Localize("UI_SKILL_POWER")}: {skill.Power}";
     chance.Value     = $"{L10nManager.Localize("UI_SKILL_CHANCE")}: {skill.Chance}%";
 }
Beispiel #22
0
        private void Show(
            Nekoyume.Model.Quest.Quest quest,
            List <CountableItem> rewards,
            bool ignoreShowAnimation = false)
        {
            titleText.text     = L10nManager.Localize("UI_QUEST_COMPLETED");
            continueText.alpha = 0f;

            menuContainer.SetActive(false);
            questRewards.SetActive(true);
            recipeCellView.Hide();

            _rewards = rewards;

            for (var i = 0; i < questRewardViews.Length; ++i)
            {
                var itemView = questRewardViews[i];

                if (i < (_rewards?.Count ?? 0))
                {
                    itemView.SetData(_rewards[i]);
                }

                itemView.Hide();
            }

            AppearNPC(ignoreShowAnimation, NPCAnimation.Type.Emotion_03);
            base.Show(ignoreShowAnimation);
            PlayEffects();
            MakeNotification(quest.GetContent());
            UpdateLocalState(quest.Id, quest.Reward?.ItemMap);
        }
Beispiel #23
0
        protected override void Awake()
        {
            base.Awake();

            closeButton.OnClickAsObservable()
            .Subscribe(_ =>
            {
                if (States.Instance.CurrentAvatarState.worldInformation
                    .TryGetUnlockedWorldByStageClearedBlockIndex(out var world))
                {
                    var canExit = world.StageClearedId >= Battle.RequiredStageForExitButton;
                    if (canExit)
                    {
                        StartCoroutine(OnClickClose());
                    }
                }
            })
            .AddTo(gameObject);
            submitButton.OnClickAsObservable()
            .Subscribe(_ =>
            {
                StartCoroutine(OnClickSubmit());
            })
            .AddTo(gameObject);

            CloseWidget  = closeButton.onClick.Invoke;
            SubmitWidget = submitButton.onClick.Invoke;
            defeatTextArea.root.SetActive(false);
            defeatTextArea.defeatText.text =
                L10nManager.Localize("UI_BATTLE_RESULT_DEFEAT_MESSAGE");

            _victoryImageAnimator = victoryImageContainer.GetComponent <Animator>();
        }
Beispiel #24
0
        public void Show(
            EquipmentItemRecipeSheet.Row row,
            bool ignoreShowAnimation = false)
        {
            if (row is null)
            {
                var sb = new StringBuilder($"[{nameof(CelebratesPopup)}]");
                sb.Append($"Argument {nameof(row)} is null.");
                Debug.LogError(sb.ToString());
                return;
            }

            titleText.text     = L10nManager.Localize("UI_NEW_EQUIPMENT_RECIPE");
            continueText.alpha = 0f;

            recipeCellView.Set(row);

            menuContainer.SetActive(false);
            questRewards.SetActive(false);
            recipeCellView.Show();

            _rewards = null;

            AppearNPC(ignoreShowAnimation, NPCAnimation.Type.Emotion_01);
            base.Show(ignoreShowAnimation);
            PlayEffects();
        }
Beispiel #25
0
        private void ShowTooltip(InventoryItemView view)
        {
            var tooltip = Find <ItemInformationTooltip>();

            shopItems.SharedModel.DeselectItemView();

            if (view is null ||
                view.RectTransform == tooltip.Target)
            {
                tooltip.Close();
                return;
            }

            if (SharedModel.State.Value == StateType.Buy)
            {
                tooltip.Show(view.RectTransform, view.Model);
            }
            else
            {
                ShowSpeech("SPEECH_SHOP_REGISTER_ITEM_");
                tooltip.Show(
                    view.RectTransform,
                    view.Model,
                    value => !DimmedFuncForSell(value as InventoryItem),
                    L10nManager.Localize("UI_SELL"),
                    _ =>
                    ShowSellPopup(tooltip.itemInformation.Model.item.Value as InventoryItem),
                    _ => inventory.SharedModel.DeselectItemView());
            }
        }
Beispiel #26
0
        private IEnumerator CoContinueTimer(float timer)
        {
            blur.button.interactable = true;
            var format = L10nManager.Localize("UI_PRESS_TO_CONTINUE_FORMAT");

            continueText.alpha = 1f;

            var prevFlooredTime = Mathf.Round(timer);

            while (timer >= .3f)
            {
                // 텍스트 업데이트 횟수를 줄이기 위해 소숫점을 내림해
                // 정수부만 체크 후 텍스트 업데이트 여부를 결정합니다.
                var flooredTime = Mathf.Floor(timer);
                if (flooredTime < prevFlooredTime)
                {
                    prevFlooredTime   = flooredTime;
                    continueText.text = string.Format(format, flooredTime);
                }

                timer -= Time.deltaTime;
                yield return(null);
            }

            Close();
            _timerCoroutine = null;
        }
Beispiel #27
0
        public void Read(SellCancelMail mail)
        {
            var avatarAddress   = States.Instance.CurrentAvatarState.address;
            var attachment      = (SellCancellation.Result)mail.attachment;
            var itemBase        = attachment.itemUsable ?? (ItemBase)attachment.costume;
            var nonFungibleItem = attachment.itemUsable ?? (INonFungibleItem)attachment.costume;
            //TODO 관련 기획이 끝나면 별도 UI를 생성
            var popup = Find <ItemCountAndPricePopup>();
            var model = new UI.Model.ItemCountAndPricePopup();

            model.TitleText.Value         = L10nManager.Localize("UI_RETRIEVE");
            model.InfoText.Value          = L10nManager.Localize("UI_SELL_CANCEL_INFO");
            model.PriceInteractable.Value = false;
            model.Price.Value             = attachment.shopItem.Price;
            model.CountEnabled.Value      = false;
            model.Item.Value = new CountEditableItem(itemBase, 1, 1, 1);
            model.OnClickSubmit.Subscribe(_ =>
            {
                LocalLayerModifier.AddItem(avatarAddress, nonFungibleItem.ItemId, false);
                LocalLayerModifier.RemoveNewAttachmentMail(avatarAddress, mail.id);
                popup.Close();
            }).AddTo(gameObject);
            model.OnClickCancel.Subscribe(_ =>
            {
                //TODO 재판매 처리추가되야함\
                LocalLayerModifier.AddItem(avatarAddress, nonFungibleItem.ItemId, false);
                LocalLayerModifier.RemoveNewAttachmentMail(avatarAddress, mail.id);
                popup.Close();
            }).AddTo(gameObject);
            popup.Pop(model);
        }
        public void AnimateNPC()
        {
            var format = L10nManager.Localize("UI_PRESS_TO_CONTINUE_FORMAT");

            continueText.text   = string.Format(format, ContinueTime);
            _npcAppearCoroutine = StartCoroutine(CoAnimateNPC());
        }
Beispiel #29
0
        protected override void Awake()
        {
            base.Awake();

            addressTitleText.text    = L10nManager.Localize("UI_YOUR_ADDRESS");
            privateKeyTitleText.text = L10nManager.Localize("UI_YOUR_PRIVATE_KEY");
            warningText.text         = L10nManager.Localize("UI_ACCOUNT_WARNING");

            volumeMasterSlider.onValueChanged.AddListener(SetVolumeMaster);
            volumeMasterToggle.onValueChanged.AddListener(SetVolumeMasterMute);

            resetStoreText.text    = L10nManager.Localize("UI_CONFIRM_RESET_STORE_TITLE");
            resetKeyStoreText.text = L10nManager.Localize("UI_CONFIRM_RESET_KEYSTORE_TITLE");
            confirmText.text       = L10nManager.Localize("UI_CLOSE");
            redeemCodeText.text    = L10nManager.Localize("UI_REDEEM_CODE");

            addressCopyButton.OnClickAsObservable().Subscribe(_ => CopyAddressToClipboard());
            privateKeyCopyButton.OnClickAsObservable().Subscribe(_ => CopyPrivateKeyToClipboard());
            redeemCode.OnRequested.AddListener(() =>
            {
                Close();
            });
            redeemCode.Close();

            InitResolution();
        }
Beispiel #30
0
        protected override void Awake()
        {
            base.Awake();

            openTouchHandler.OnClick.Subscribe(pointerEventData =>
            {
                AudioController.PlayClick();
                Animator.Play(OpenHash);
            }).AddTo(gameObject);

            closeTouchHandler.OnClick.Subscribe(pointerEventData =>
            {
                Close(true);
            }).AddTo(gameObject);

            closeButton.SetSubmitText(L10nManager.Localize("UI_RECEIVE"),
                                      L10nManager.Localize("UI_RECEIVE"));

            closeButton.OnSubmitClick.Subscribe(_ =>
            {
                Close(true);
            }).AddTo(gameObject);

            CloseWidget = null;
            gameObject.SetActive(false);
        }