public void Init(Texture2D appIcon, string postFix, float scaleFactor, string title)
        {
            frameForum = GetComponent<FresviiGUIForum>();

            this.appIcon = appIcon;

            this.title = title;

            if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                guiStyleTitle.font = null;
                guiStyleTitle.fontStyle = FontStyle.Bold;
                guiStyleButton.font = null;
            }

            palette = FresviiGUIColorPalette.Palette;

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

            iconColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.NavigationBarNormal);

            texCoordsMenu = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.NavigationBarBackground);

            texCoordsBorderLine = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.NavigationBarUnderLine);

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

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

            appIconPosition = FresviiGUIUtility.RectScale(appIconPosition, scaleFactor);
            appIconButtonPosition = FresviiGUIUtility.RectScale(appIconButtonPosition, scaleFactor);
        }
        public void Init(Fresvii.AppSteroid.Models.Thread thread, float scaleFactor, string postFix, FresviiGUIForum forum, float cardWidth)
        {
            if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                guiStyleUserName.font = null;
                guiStyleUserName.fontStyle = FontStyle.Bold;
                guiStyleTimeSpan.font = null;
                guiStyleCommentText.font = null;

                likeCountIconPosition.y += scaleFactor;

                commentCountIconPosition.y += scaleFactor;
            }

            this.Thread = thread;
            this.scaleFactor = scaleFactor;
            this.postFix = postFix;
            this.Forum = forum;
            this.popUpOffset *= scaleFactor;

            userIconPosition = FresviiGUIUtility.RectScale(userIconPosition, scaleFactor);
            commentLButtonPosition = FresviiGUIUtility.RectScale(commentLButtonPosition, scaleFactor);
            likeLButtonPosition = FresviiGUIUtility.RectScale(likeLButtonPosition, scaleFactor);
            userNamePosition = FresviiGUIUtility.RectScale(userNamePosition, scaleFactor);
            timespanPosition = FresviiGUIUtility.RectScale(timespanPosition, scaleFactor);
            commentTextPosition = FresviiGUIUtility.RectScale(commentTextPosition, scaleFactor);
            likeCountIconPosition = FresviiGUIUtility.RectScale(likeCountIconPosition, scaleFactor);
            likeCountLabelPosition = FresviiGUIUtility.RectScale(likeCountLabelPosition, scaleFactor);
            commentCountIconPosition = FresviiGUIUtility.RectScale(commentCountIconPosition, scaleFactor);
            commentCountLabelPosition = FresviiGUIUtility.RectScale(commentCountLabelPosition, scaleFactor);
            clipImagePosition = FresviiGUIUtility.RectScale(clipImagePosition, scaleFactor);

            margin *= scaleFactor;

            miniMargin *= scaleFactor;

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

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

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

            guiStyleTimeSpan.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.CardText2);

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

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

            lineWidth *= scaleFactor;

            bottomButtonHeight *= scaleFactor;

            menuButtonMargin *= scaleFactor;

            imageHeight = defaultImageHeight * scaleFactor;

            SetCommentText(cardWidth);

            userIconHitPosition = new Rect(0, 0, userIconPosition.x + userIconPosition.width + margin, userIconPosition.y + userIconPosition.height + margin);

            palette = FresviiGUIColorPalette.Palette;

            texCoordsBackground = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.CardBackground);

            texCoordsLine = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.CardSeperateLine1);

            texCoodsProgressBar = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.CardProgressBar);

            isLike = thread.Comment.Like;

            iTween.ValueTo(this.gameObject, iTween.Hash("from", 0.0f, "to", 1.0f, "time", 0.5f, "easetype", imageTweenEasetype, "onupdatetarget", this.gameObject, "onupdate", "OnUpdateCardAlpha", "oncompletetarget", this.gameObject));

            if(clipImage != null)
                iTween.ValueTo(this.gameObject, iTween.Hash("from", 0.0f, "to", 1.0f, "time", 0.5f, "easetype", imageTweenEasetype, "onupdatetarget", this.gameObject, "onupdate", "OnUpdateAlpha", "oncompletetarget", this.gameObject));
        }