public override void Init(Texture2D appIcon, string postFix, float scaleFactor, int guiDepth)
        {
            ControlLock = false;

            this.GuiDepth = guiDepth;

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

                guiStyleLableToUsers.font = null;
            }

            textureCoordsBackground = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.MainBackground);

            groupMessageCreateTopMenu = GetComponent<FresviiGUIGroupMessageCreateTop>();

            groupMessageCreateTopMenu.Init(appIcon, postFix, scaleFactor, GuiDepth - 1, this);

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

            guiStyleLabelTo.padding = FresviiGUIUtility.RectOffsetScale(guiStyleLabelTo.padding, scaleFactor);

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

            addCommentBottomMenu = GetComponent<FresviiGUIAddCommentBottomMenu>();

            addCommentBottomMenu.Init(postFix, scaleFactor, GuiDepth - 1, this, AddComment);

            addCommentBottomMenu.autoSendImageLoaded = true;

            this.scaleFactor = scaleFactor;

            toMargin *= scaleFactor;

            loadingSpinnerSize *= scaleFactor;

            sideMargin *= scaleFactor;

            topMargin = scaleFactor;

            heightMessageTo *= scaleFactor;

            scrollPosition.y = 0.0f;

            textureCoordsTo = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.CardBackground);

            textureCheckMark = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.IconFriendTextureName + postFix, false);

            FASFriendship.GetAccountFriendList(OnGetFriends);

            contentLabelTo = new GUIContent(FresviiGUIText.Get("To"));

            loadingSpinnerPosition = new Rect(Screen.width * 0.5f - loadingSpinnerSize.x * 0.5f, Screen.height * 0.5f - loadingSpinnerSize.y * 0.5f, loadingSpinnerSize.x, loadingSpinnerSize.y);

            loadingSpinner = Fresvii.AppSteroid.Gui.LoadingSpinner.Show(loadingSpinnerPosition, GuiDepth - 10);

            SetScrollSlider(scaleFactor * 2.0f);

            addCommentBottomMenu.SetSendEnableAtAction(false, FresviiGUIText.Get("Error"), FresviiGUIText.Get("NoSelectedMember"));

            FASUser.GetOfficialUser((user, error) =>
            {
                if (error == null)
                {
                    OfficialUser = user;
                }
            });
        }
        public override void Init(Texture2D appIcon, string postFix, float scaleFactor, int guiDepth)
        {
            FASGesture.Resume();

            this.GuiDepth = guiDepth;

            textureCoordsBackground = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.MainBackground);

            chatTopMenu = GetComponent<FresviiGUIChatTopMenu>();

            addCommentBottomMenu = GetComponent<FresviiGUIAddCommentBottomMenu>();

            chatTopMenu.Init(appIcon, postFix, scaleFactor, GuiDepth - 1, this);

            addCommentBottomMenu.Init(postFix, scaleFactor, GuiDepth - 1, this, AddComment);

            addCommentBottomMenu.autoSendImageLoaded = true;

            this.scaleFactor = scaleFactor;

            this.postFix = postFix;

            loadingSpinnerSize *= scaleFactor;

            sideMargin *= scaleFactor;

            topMargin *= scaleFactor;

            balloonMargin *= scaleFactor;

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

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

            videoPlaybackIconTexture = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.VideoPlaybackIconTextureName, false);

            chatDateBg = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ChatDateBgTextureName + postFix, false);

            loadingSpinnerPosition = new Rect(Screen.width * 0.5f - loadingSpinnerSize.x * 0.5f, Screen.height * 0.5f - loadingSpinnerSize.y * 0.5f, loadingSpinnerSize.x, loadingSpinnerSize.y);

            loadingSpinner = Fresvii.AppSteroid.Gui.LoadingSpinner.Show(loadingSpinnerPosition, this.GuiDepth - 10);

            heightDate *= scaleFactor;

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

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

            guiStyleDate.padding = FresviiGUIUtility.RectOffsetScale(guiStyleDate.padding, scaleFactor);

            chatBalloonColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.ChatBalloon);

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

            SetScrollSlider(scaleFactor * 2.0f);

            StartCoroutine(PollingGetMessages());

            if (Application.internetReachability == NetworkReachability.NotReachable)
            {
                Fresvii.AppSteroid.Util.DialogManager.Instance.ShowSubmitDialog(FresviiGUIText.Get("Offline"), delegate(bool del) { });

                loadingSpinner.Hide();

                return;
            }
        }