public void Init(Texture2D appIcon, string postFix, float scaleFactor, int guiDepth, FresviiGUIFriendRequests frameFriendRequests)
        {
            if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                guiStyleTitle.font = null;

                guiStyleTitle.fontStyle = FontStyle.Bold;

                guiStyleBackButton.font = null;
            }

            this.scaleFactor = scaleFactor;

            this.title = FresviiGUIText.Get("FriendRequests");

            this.frameFriendRequests = frameFriendRequests;

            this.guiDepth = guiDepth;

            palette = FresviiGUIColorPalette.Palette;

            guiStyleTitle.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.NavigationBarTitle);

            texCoordsMenu = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.NavigationBarBackground);

            texCoordsBorderLine = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.NavigationBarUnderLine);

            this.backIcon = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.BackIconTextureName + postFix, false);

            height *= scaleFactor;

            guiStyleTitle.fontSize = (int)(guiStyleTitle.fontSize * scaleFactor);

            vMargin *= scaleFactor;

            colorNormal = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.NavigationBarNormal);
        }
        public void Init(Fresvii.AppSteroid.Models.User user, float scaleFactor, bool isHiddenCard, FresviiGUIFriendRequests guiFriendRequest)
        {
            this.User = user;

            this.guiFriendRequest = guiFriendRequest;

            this.isHiddenCard = isHiddenCard;

            if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                guiStyleUserName.font = null;

                guiStyleUserName.fontStyle = FontStyle.Bold;

                guiStyleDescription.font = null;

                guiStyleButtonAdd.font = null;

                guiStyleButtonHide.font = null;
            }

            palette = FresviiGUIColorPalette.Palette;

            userIconPosition = FresviiGUIUtility.RectScale(userIconPosition, scaleFactor);

            userNamePosition = FresviiGUIUtility.RectScale(userNamePosition, scaleFactor);

            userDescriptionPosition = FresviiGUIUtility.RectScale(userDescriptionPosition, scaleFactor);

            sideMargin = userIconPosition.x;

            hMargin *= scaleFactor;

            buttonSize *= scaleFactor;

            guiStyleUserName.fontSize = (int)(guiStyleUserName.fontSize * scaleFactor);

            guiStyleUserName.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.CardUserName);

            guiStyleDescription.fontSize = (int)(guiStyleDescription.fontSize * scaleFactor);

            guiStyleDescription.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.CardText1);

            guiStyleButtonAdd.fontSize = (int)(guiStyleButtonAdd.fontSize * scaleFactor);

            guiStyleButtonAdd.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.CardAddButtonText);

            guiStyleButtonHide.fontSize = (int)(guiStyleButtonHide.fontSize * scaleFactor);

            guiStyleButtonHide.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.CardHideButtonText);

            texCoordsBackground = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.CardBackground);
        }