当前位置: 首页>>代码示例>>C#>>正文


C# Fresvii类代码示例

本文整理汇总了C#中Fresvii的典型用法代码示例。如果您正苦于以下问题:C# Fresvii类的具体用法?C# Fresvii怎么用?C# Fresvii使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Fresvii类属于命名空间,在下文中一共展示了Fresvii类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddSelectedFriend

        public void AddSelectedFriend(Fresvii.AppSteroid.Models.User user, Action<bool> callback)
        {
            foreach (Fresvii.AppSteroid.Models.User _user in selectedUsers)
            {
                if (_user.Id == user.Id)
                {
                    return;
                }
            }

            if (selectedUsers.Count >= SelectableMaxCount)
            {
                string tooMuch = FresviiGUIText.Get("SelectFrindsOvered").Replace("%num", SelectableMaxCount.ToString());

                Fresvii.AppSteroid.Util.DialogManager.Instance.ShowSubmitDialog(tooMuch, FresviiGUIText.Get("OK"), FresviiGUIText.Get("OK"), FresviiGUIText.Get("OK"), (del) => { });

                if (callback != null)
                {
                    callback(false);
                }
            }
            else
            {
                selectedUsers.Add(user);

                if (callback != null)
                {
                    callback(true);
                }
            }

            selectMemberTop.SetSubmit((selectedUsers.Count > 0));
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:33,代码来源:FresviiGUISelectFriends.cs

示例2: OnGetStickerSetList

        void OnGetStickerSetList(IList<Fresvii.AppSteroid.Models.StickerSet> stickerSets, Fresvii.AppSteroid.Models.ListMeta meta, Fresvii.AppSteroid.Models.Error error)
        {
            if (this == null)
            {
                return;
            }

            if (this.enabled == false)
            {
                return;
            }

            if (error != null)
            {
                if (FASSettings.Instance.logLevel <= FAS.LogLevels.Error)
                {
                    Debug.LogError(error.ToString());
                }

                return;
            }

            if (this.listMeta == null || this.listMeta.CurrentPage != 0)
            {
                this.listMeta = meta;
            }

            foreach (var stickerSet in stickerSets)
            {
                UpdateStickerSet(stickerSet);
            }

            pullReflesh.PullRefleshCompleted();
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:34,代码来源:AUIStickerSetSelector.cs

示例3: SetEventboard

        public void SetEventboard(Fresvii.AppSteroid.Models.Eventboard eventboard, AUIGameEvent auiGameEvent)
        {
            this.auiGameEvent = auiGameEvent;

            this.Eventboard = eventboard;

            this.textTitle.text = Eventboard.Leaderboard.Name;

            this.textRankingScore.text = Eventboard.Leaderboard.Description;

            if (string.IsNullOrEmpty(Eventboard.Leaderboard.IconUrl))
            {
                FASLeaderboard.GetLeaderboard(Eventboard.Leaderboard.IconUrl, (leaderboard, error) =>
                {
                    if (error == null)
                    {
                        image.Set(leaderboard.IconUrl);
                    }
                });
            }
            else
            {
                image.Set(Eventboard.Leaderboard.IconUrl);
            }
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:25,代码来源:AUIGameEventboardCell.cs

示例4: GoToEventboard

        public void GoToEventboard(Fresvii.AppSteroid.Models.Eventboard eventboard)
        {
            if (frame.Animating) return;

            RectTransform rectTransform = GetComponent<RectTransform>();

            var auiEventboard = ((GameObject)Instantiate(prfbEventboard)).GetComponent<AUIEventboard>();

            auiEventboard.SetEventboard(eventboard);

            auiEventboard.transform.SetParent(transform.parent, false);

            auiEventboard.transform.SetAsLastSibling();

            auiEventboard.parentFrameTween = this.frame;

            //auiEventboard.backButtonText.text = title.text;

            auiEventboard.frame.backFrame = this.frame;

            auiEventboard.frame.Animate(new Vector2(rectTransform.rect.width, 0f), Vector2.zero, () => { });

            this.frame.Animate(Vector2.zero, new Vector2(-rectTransform.rect.width * 0.5f, 0f), () =>
            {
                this.gameObject.SetActive(false);
            });
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:27,代码来源:AUIGameEvent.cs

示例5: GoToGameEvent

        public void GoToGameEvent(Fresvii.AppSteroid.Models.GameEvent gameEvent)
        {
            if (Application.internetReachability == NetworkReachability.NotReachable)
            {
                Fresvii.AppSteroid.Util.DialogManager.Instance.ShowSubmitDialog(FASText.Get("Offline"), FASText.Get("OK"), FASText.Get("Cancel"), FASText.Get("Close"), (del) => { });

                return;
            }

            RectTransform rectTransform = GetComponent<RectTransform>();

            GameObject goGameEvent = Instantiate(prfbAUIGameEvent) as GameObject;

            AUIGameEvent auiGameEvent = goGameEvent.GetComponent<AUIGameEvent>();

            auiGameEvent.GameEvent = gameEvent;

            goGameEvent.transform.SetParent(transform.parent, false);

            goGameEvent.gameObject.SetActive(true);

            goGameEvent.transform.SetAsLastSibling();

            AUIFrame nextFrame = auiGameEvent.frame;

            nextFrame.backFrame = this.frame;

            nextFrame.Animate(new Vector2(rectTransform.rect.width, 0f), Vector2.zero, () => { });

            frame.Animate(Vector2.zero, new Vector2(-rectTransform.rect.width * 0.5f, 0f), () =>
            {
                this.gameObject.SetActive(false);
            });
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:34,代码来源:AUIMoreApps.cs

示例6: StickerSelected

 public void StickerSelected(Fresvii.AppSteroid.Models.Sticker sticker)
 {
     if (OnStickerSelected != null)
     {
         OnStickerSelected(sticker);
     }
 }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:7,代码来源:AUIStickerPicker.cs

示例7: SetFriend

        public void SetFriend(Fresvii.AppSteroid.Models.Friend friend, AUIFriendList parentPage)
        {
            this.Friend = friend;

            this.parentPage = parentPage;

            this.user = this.Friend.ToUser();

            if (this.user.Id == FAS.CurrentUser.Id)
            {
                tagLabel.gameObject.SetActive(true);

                tagText.text = FASText.Get("You");

                if (!tagSized)
                {
                    userName.rectTransform.sizeDelta = new Vector2(userName.rectTransform.sizeDelta.x - tagLabel.rectTransform.sizeDelta.x - 30f, userName.rectTransform.sizeDelta.y);

                    tagSized = true;
                }
            }

            userIcon.Set(user.ProfileImageUrl);

            userName.text = user.Name;
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:26,代码来源:AUIFriendListCell.cs

示例8: SetApp

        public void SetApp(Fresvii.AppSteroid.Models.App addApp, AUIRecommendedApps AUIRecommendedApps)
        {
            this.AUIRecommendedApps = AUIRecommendedApps;

            if (addApp == null)
            {
                if (banner != null)
                    banner.gameObject.SetActive(false);

                appIcon.gameObject.SetActive(false);

                textAppName.gameObject.SetActive(false);

                textDeveloperName.gameObject.SetActive(false);

                button.interactable = false;
            }
            else
            {
                this.AddApp = addApp;

                if (banner != null)
                    banner.Set(this.AddApp.IconUrl);

                appIcon.Set(this.AddApp.IconUrl);

                textAppName.text = this.AddApp.Name;

                textDeveloperName.text = this.AddApp.GameGenres[0].Name;
            }
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:31,代码来源:AUIRecommendedAppsDetailCell.cs

示例9: OnMatchMakingMatchCompleted

    void OnMatchMakingMatchCompleted(Fresvii.AppSteroid.Models.Match match)
    {
        if (completeMatch == null)
        {
            completeMatch = match;
        }
        else if (completeMatch.Id == match.Id)
        {
            return;
        }
        else
        {
            completeMatch = match;
        }

        if (!(Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer))
        {
            Application.LoadLevel(loadSceneNameOnMatchCompleted);
        }
        else
        {
            Fresvii.AppSteroid.Util.DialogManager.Instance.SetLabel("Yes", "No", "Close");

            Fresvii.AppSteroid.Util.DialogManager.Instance.ShowSelectDialog("Match completed! Sample Game?", delegate(bool del)
            {
                if (del)
                {
                    Application.LoadLevel(loadSceneNameOnMatchCompleted);
                }
            });
        }
    }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:32,代码来源:MatchMakingObserver.cs

示例10: GoToAppDetail

        public void GoToAppDetail(Fresvii.AppSteroid.Models.App app)
        {
            FASUtility.SendPageView("event.ad.click.store", this.App.Id, System.DateTime.UtcNow, (e) =>
            {
                if (e != null)
                    Debug.LogError(e.ToString());

                Application.OpenURL(this.App.StoreUrl);
            });

            /*if (parentFrame.Animating) return;

            RectTransform rectTransform = GetComponent<RectTransform>();

            var auiAppDetail = ((GameObject)Instantiate(prfbAppDetail)).GetComponent<AUIAppDetail>();

            auiAppDetail.SetApp(app);

            auiAppDetail.transform.SetParent(parentFrame.transform.parent, false);

            auiAppDetail.transform.SetAsLastSibling();

            auiAppDetail.frame.backFrame = this.parentFrame;

            auiAppDetail.frame.Animate(new Vector2(rectTransform.rect.width, 0f), Vector2.zero, () => { });

            this.parentFrame.Animate(Vector2.zero, new Vector2(-rectTransform.rect.width * 0.5f, 0f), () =>
            {
                parentFrame.gameObject.SetActive(false);
            });*/
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:31,代码来源:AUIBannerCell.cs

示例11: GoToDirectMessage

        public void GoToDirectMessage(IList<Fresvii.AppSteroid.Models.DirectMessage> directMessages, Fresvii.AppSteroid.Models.ListMeta meta, bool animation)
        {
            if (frameTween.Animating || AUISlideButton.open) return;

            scrollView.StopScroll();

            RectTransform rectTransform = GetComponent<RectTransform>();

            AUIDirectMessages directMessagesPage = ((GameObject)Instantiate(prfbDirectMessages)).GetComponent<AUIDirectMessages>();

            directMessagesPage.listMeta = meta;

            directMessagesPage.transform.SetParent(transform.parent, false);

            directMessagesPage.transform.SetAsLastSibling();

            directMessagesPage.parentFrameTween = this.frameTween;

            if (animation)
            {
                directMessagesPage.frameTween.Animate(new Vector2(rectTransform.rect.width, 0f), Vector2.zero, () => { });

                this.frameTween.Animate(Vector2.zero, new Vector2(-rectTransform.rect.width * 0.5f, 0f), () =>
                {
                    this.gameObject.SetActive(false);
                });
            }
            else
            {
                directMessagesPage.frameTween.SetPosition(Vector2.zero);

                this.gameObject.SetActive(false);
            }
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:34,代码来源:AUIMessageList.cs

示例12: SetPreview

        public void SetPreview(Fresvii.AppSteroid.Models.Video video, AUIPreviewVideoList auiPreviewVideoList)
        {
            this.auiPreviewVideoList = auiPreviewVideoList;

            this.Video = video;

            videoThumbnail.Set(this.Video.ThumbnailUrl);

            if (this.Video.App != null)
            {
                appIcon.Set(this.Video.App.IconUrl);

                textAppName.text = this.Video.App.Name;

                if (this.Video.App.GameGenres.Count > 0)
                    textGameCategory.text = this.Video.App.GameGenres[0].Name;

            }

            uint min = video.Duration / 60;

            uint sec = video.Duration % 60;

            uploadedText.text = video.CreatedAt.ToLocalTime().ToString(FASText.Get("LocalDateFormat")) + " " + FASText.Get("Uploaded");

            durationText.text = min + ":" + sec.ToString("00");
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:27,代码来源:AUIPreviewDetailCell.cs

示例13: GoToGameEvent

        public void GoToGameEvent(Fresvii.AppSteroid.Models.GameEvent gameEvent)
        {
            RectTransform rectTransform = GetComponent<RectTransform>();

            GameObject goGameEvent = Instantiate(prfbAUIGameEvent) as GameObject;

            AUIGameEvent auiGameEvent = goGameEvent.GetComponent<AUIGameEvent>();

            auiGameEvent.GameEvent = gameEvent;

            goGameEvent.transform.SetParent(transform.parent, false);

            goGameEvent.gameObject.SetActive(true);

            goGameEvent.transform.SetAsLastSibling();

            AUIFrame nextFrame = auiGameEvent.frame;

            nextFrame.backFrame = this.frame;

            nextFrame.Animate(new Vector2(rectTransform.rect.width, 0f), Vector2.zero, () => { });

            frame.Animate(Vector2.zero, new Vector2(-rectTransform.rect.width * 0.5f, 0f), () =>
            {
                this.gameObject.SetActive(false);
            });
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:27,代码来源:AUIEvents.cs

示例14: SetStickerSet

        public void SetStickerSet(Fresvii.AppSteroid.Models.StickerSet stickerSet, AUIStickerSetSelector selector)
        {
            this.StickerSet = stickerSet;

            this.selector = selector;

            image.Set(this.StickerSet.Url);
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:8,代码来源:AUIStickerSetCell.cs

示例15: SetSticker

        public void SetSticker(Fresvii.AppSteroid.Models.Sticker sticker, AUIStickerSelector stickerSelector)
        {
            this.Sticker = sticker;

            this.stickerSelector = stickerSelector;

            image.Set(sticker.Url);
        }
开发者ID:sinfonia2015,项目名称:iOS_AdditionCrash,代码行数:8,代码来源:AUIStickerCell.cs


注:本文中的Fresvii类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。