public override void Init(Texture2D appIcon, string postFix, float scaleFactor, int guiDepth)
        {
            this.GuiDepth = guiDepth;

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

                guiStyleSubject.fontStyle = FontStyle.Bold;

                guiStyleText.font = null;
            }

            textureCoordsBackground = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.DirectMessageBackground);

            directMessageListTopMenu = GetComponent<FresviiGUIDirectMessageTop>();

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

            tabBar = GetComponent<FresviiGUITabBar>();

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

            tabBar.GuiDepth = GuiDepth - 1;

            loadingSpinnerSize *= scaleFactor;

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

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

            guiStyleSubject.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.DirectMessageSubject);

            guiStyleText.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.DirectMessageText);

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

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

            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);

            FAS.Instance.Client.DirectMessageService.GetDirectMessage(DirectMessage.Id, OnGetDirectMessage);

            contentSubject = new GUIContent(DirectMessage.Subject);
        }
        public override void Init(Texture2D appIcon, string postFix, float scaleFactor, int guiDepth)
        {
            this.GuiDepth = guiDepth;

            textureCoordsBackground = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.MainBackground);

            friendRequestTopMenu = GetComponent<FresviiGUIFriendRequestsTopMenu>();

            friendRequestTopMenu.Init(appIcon, postFix, scaleFactor, this.GuiDepth - 10, this);

            tabBar = GetComponent<FresviiGUITabBar>();

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

            tabBar.GuiDepth = GuiDepth - 1;

            this.scaleFactor = scaleFactor;

            sideMargin *= scaleFactor;

            verticalMargin *= scaleFactor;

            miniMargin *= scaleFactor;

            topMargin *= scaleFactor;

            loadingSpinnerSize *= scaleFactor;

            segmentedCtrlHeight *= scaleFactor;

            pullRefleshHeight *= scaleFactor;

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

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

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

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

            Initialized = true;

            SetScrollSlider(scaleFactor * 2.0f);

            FASFriendship.GetFriendshipRequestedUsersList(FAS.CurrentUser.Id, OnGetFriendshipRequestedUsersList);

            FASFriendship.GetHiddenFriendshipRequestedUsersList(OnGetHiddenFriendshipRequestedUsersList);

            loadingSpinnerPlace = LoadingSpinnerPlace.Center;

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

            loadingSpinner = Fresvii.AppSteroid.Gui.LoadingSpinner.Show(loadingSpinnerPosition);

            labels = new List<string>();

            labels.Add(FresviiGUIText.Get("Requested"));

            labels.Add(FresviiGUIText.Get("NotNow"));

            selectedCards = requestedCards;

            segmentedCtrl.Init(scaleFactor, postFix, labels, OnTapSegmentedControl);
        }
        public override void Init(Texture2D appIcon, string postFix, float scaleFactor, int guiDepth)
        {
            this.GuiDepth = guiDepth;

            this.scaleFactor = scaleFactor;

            this.postFix = postFix;

            textureCoordsBackground = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.MainBackground);

            userProfileTopMenu = GetComponent<FresviiGUIMyProfileTopMenu>();

            tabBar = GetComponent<FresviiGUITabBar>();

            if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                guiStyleLabelUserName.font = null;
                guiStyleLabelUserName.fontStyle = FontStyle.Bold;
                guiStyleLabelUserProfile.font = null;
                guiStyleButtonFriend.font = null;
                guiStyleButtonMessage.font = null;
                guiStyleFriendNotification.font = null;
                guiStyleFriendMenuTitle.font = null;
                guiStyleFriendMenuTitle.fontStyle = FontStyle.Bold;
                guiStyleLabelUserCode.font = null;
            }

            palette = FresviiGUIColorPalette.Palette;

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

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

            sideMargin *= scaleFactor;
            vMargin *= scaleFactor;
            margin *= scaleFactor;
            miniMargin *= scaleFactor;
            profileImageBgMargin *= scaleFactor;
            myProfileImageSize *= scaleFactor;
            topMargin *= scaleFactor;
            friendNotificationHeight *= scaleFactor;
            friendMenuTitleBarHeight *= scaleFactor;
            hMargin *= scaleFactor;
            loadingSpinnerSize *= scaleFactor;

            profileImageSize *= scaleFactor;

            guiStyleLabelUserName.fontSize = (int)(guiStyleLabelUserName.fontSize * scaleFactor);
            guiStyleLabelUserName.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.ProfileUserName);

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

            guiStyleLabelUserCode.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.ProfileUserName);

            guiStyleLabelUserProfile.fontSize = (int)(guiStyleLabelUserProfile.fontSize * scaleFactor);
            guiStyleLabelUserProfile.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.ProfileDescription);
            
            guiStyleFriendNotification.fontSize = (int)(guiStyleFriendNotification.fontSize * scaleFactor);
            guiStyleFriendNotification.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.ProfileNotificationText);
            
            guiStyleFriendMenuTitle.fontSize = (int)(guiStyleFriendMenuTitle.fontSize * scaleFactor);

            guiStyleFriendMenuTitle.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.ProfileFriendBarText);

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

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

            texCoordsNotificationBg = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.ProfileNotificationBackground);

            texCoordsFriendTitleBg = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.ProfileFriendBarBackground);

            texCoordsFriendTitleBgH = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.ProfileFriendBarBackgroundH);

            texCoordsFriendTitleLine = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.ProfileFriendBarLine);

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

            scrollPosition = Vector2.zero;

            frameMyProfileEdit = ((GameObject)Instantiate(prfbGUIFrameMyProfileEdit)).GetComponent<FresviiGUIFrame>();

            guiEdit = frameMyProfileEdit.gameObject.GetComponent<FresviiGUIMyProfileEdit>();

            frameMyProfileEdit.Init(FresviiGUIManager.appIcon, FresviiGUIManager.postFix, FresviiGUIManager.scaleFactor, GuiDepth - 20);
            
            frameMyProfileEdit.GetComponent<FresviiGUIMyProfileEdit>().SetGUIMyProfile(this);
            
            frameMyProfileEdit.transform.parent = this.transform;
            
            frameMyProfileEdit.SetDraw(false);
           
            textureMyProfileCircle = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.UserCircleTextureName + 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, FASGui.GuiDepthBase);

            GetAccout();

            SetScrollSlider(scaleFactor * 2.0f);

            requestLabelContent = new GUIContent(FresviiGUIText.Get("FriendRequests"));

            friendCountLabelContent = new GUIContent(FresviiGUIText.Get("Friends"));

            videoListLabelContent = new GUIContent(FresviiGUIText.Get("Videos"));

            directMessageListLabelContent = new GUIContent(FresviiGUIText.Get("DirectMessages"));
            
        }
        public override void Init(Texture2D appIcon, string postFix, float scaleFactor, int guiDepth)
        {
            this.GuiDepth = guiDepth;

            textureCoordsBackground = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.MainBackground);

            loadingSpinnerPlace = LoadingSpinnerPlace.Center;

            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, FASGui.GuiDepthBase);

            forumTopMenu = GetComponent<FresviiGUIForumTopMenu>();

            tabBar = GetComponent<FresviiGUITabBar>();

            forumTopMenu.Init(appIcon, postFix, scaleFactor, FresviiGUIText.Get("Forum"));

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

            this.scaleFactor = scaleFactor;
            this.verticalMargin = verticalMargin * scaleFactor;
            this.reloadHeight *= scaleFactor;
            this.sideMargin *= scaleFactor;
            this.loadingSpinnerSize *= scaleFactor;
            this.postFix = postFix;

            TexForumCommentS = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ForumCommentSTextureName + postFix, false);
            TexForumCommentSH = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ForumCommentSHTextureName + postFix, false);

            TexForumLikeS = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ForumLikeSTextureName + postFix, false);
            TexForumLikeSH = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ForumLikeSHTextureName + postFix, false);

            TexForumCommentL = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ForumCommentLTextureName + postFix, false);
            TexForumCommentLH = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ForumCommentLHTextureName + postFix, false);

            TexForumLikeL = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ForumLikeLTextureName + postFix, false);
            TexForumLikeLH = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ForumLikeLHTextureName + postFix, false);

            TexForumLikeM = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ForumLikeMTextureName + postFix, false);
            TexForumLikeMH = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ForumLikeMHTextureName + postFix, false);

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

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

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

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

            FASForum.GetForumThreadsFromCache(OnGetForumThreads);

            GetForumThreads();

            Initialized = true;

            frameCreateThread = ((GameObject)Instantiate(prfbGUIFrameCreateThread)).GetComponent<FresviiGUIFrame>();

            frameCreateThread.transform.parent = this.transform;

            frameCreateThread.Init(appIcon, postFix, scaleFactor, this.GuiDepth - 10);

            frameCreateThread.PostFrame = this;

            frameCreateThread.SetDraw(false);

            tabBar.GuiDepth = this.GuiDepth - 1;

            SetScrollSlider(scaleFactor * 2.0f);
        }
        public override void Init(Texture2D appIcon, string postFix, float scaleFactor, int guiDepth)
        {
            this.GuiDepth = guiDepth;

            textureCoordsBackground = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.MainBackground);

            friendListTop = GetComponent<FresviiGUIFriendListTop>();

            friendListTop.Init(appIcon, postFix, scaleFactor, guiDepth - 1, this);

            tabBar = GetComponent<FresviiGUITabBar>();

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

            tabBar.GuiDepth = GuiDepth - 1;

            this.scaleFactor = scaleFactor;

            friendMenuTitleBarHeight *= scaleFactor;

            loadingSpinnerSize *= scaleFactor;

            pullRefleshHeight *= this.scaleFactor;

            SetScrollSlider(scaleFactor * 2.0f);

            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);

            GetUserFriendList(1);
        }
        public override void Init(Texture2D appIcon, string postFix, float scaleFactor, int guiDepth)
        {
            this.GuiDepth = FASGui.GuiDepthBase;

            textureCoordsBackground = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.MainBackground);

            groupMessageTopMenu = GetComponent<FresviiGUIGroupMessageTop>();

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

            tabBar = GetComponent<FresviiGUITabBar>();

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

            this.scaleFactor = scaleFactor;

            this.postFix = postFix;

            loadingSpinnerSize *= scaleFactor;

            sideMargin *= scaleFactor;

            topMargin = scaleFactor;

            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);

            pullRefleshHeight *= scaleFactor;

            FASUser.GetAccount(delegate(Fresvii.AppSteroid.Models.User _user, Fresvii.AppSteroid.Models.Error _error) { });

            SetScrollSlider(scaleFactor * 2.0f);

            FASGroup.GetGroupMessageGroupListFromCache(OnGetGroups);

            IconUnread = Fresvii.AppSteroid.Util.ResourceManager.Instance.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.IconUnread + postFix, false);
        }
        public override void Init(Texture2D appIcon, string postFix, float scaleFactor, int guiDepth)
        {
            this.GuiDepth = guiDepth;
		
            textureCoordsBackground = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.MainBackground);

            bgColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.MainBackground);

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

                guiStyleLabelUserName.fontStyle = FontStyle.Bold;
                
                guiStyleLabelUserProfile.font = null;
                
                guiStyleButtonFriend.font = null;
                
                guiStyleButtonLabel.font = null;
                
                guiStyleFriendMenuTitle.font = null;
                
                guiStyleFriendMenuTitle.fontStyle = FontStyle.Bold;

                guiStyleLabelUserCode.font = null;
            }

            userProfileTopMenu = GetComponent<FresviiGUIUserProfileTopMenu>();

            tabBar = GetComponent<FresviiGUITabBar>();

            userProfileTopMenu.Init(appIcon, postFix, scaleFactor, guiDepth - 1, this);

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

            this.scaleFactor = scaleFactor;

            this.postFix = postFix;
            
            verticalMargin *= scaleFactor;
            
            margin *= scaleFactor;
            
            miniMargin *= scaleFactor;
            
            profileImageBgMargin *= scaleFactor;
            
            profileImageSize *= scaleFactor;
            
            topMargin *= scaleFactor;
            
            friendButtonSize *= scaleFactor;
            
            messageButtonSize *= scaleFactor;
            
            buttonIconRelativePosition *= scaleFactor;
            
            buttonLabelRelativePosition *= scaleFactor;
            
            sideMargin *= scaleFactor;
            
            friendMenuTitleBarHeight *= scaleFactor;
			
            loadingSpinnerSize *= scaleFactor;

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

            guiStyleLabelUserName.normal.textColor = guiStyleButtonLabel.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.ProfileUserName);

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

            guiStyleLabelUserCode.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.ProfileUserName);

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

            guiStyleLabelUserProfile.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.ProfileDescription);

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

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

			btnPositiveColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.ProfileButtonText);
            
			btnNegativeColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.ProfileButtonTextL);

			guiStyleFriendMenuTitle.fontSize = (int)(guiStyleFriendMenuTitle.fontSize * scaleFactor);
            
            guiStyleFriendMenuTitle.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.ProfileFriendBarText);

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

            palette = FresviiGUIColorPalette.Palette;

#if GROUP_CONFERENCE
            callLabelContent = new GUIContent(FresviiGUIText.Get("Call"));
#endif
            messageLabelContent = new GUIContent(FresviiGUIText.Get("Message"));

            texCoordsFriendTitleBg = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.ProfileFriendBarBackground);

            texCoordsFriendTitleBgH = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.ProfileFriendBarBackgroundH);

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

            textureUserProfileCircle = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.UserCircleTextureName + postFix, false);
            
            textureButton01 = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.Button01TextureName + postFix, false);
            
            textureButton01H = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.Button01HTextureName + postFix, false);
            
			textureButton03 = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.Button03TextureName + postFix, false);

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

#if GROUP_CONFERENCE
			textureIconCall = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.IconMessageCall + postFix, false);

			textureIconCallD = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.IconMessageCallD + postFix, false);
#endif
            textureRight = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.RightIconTextureName + postFix, false);
            
            tabBar.GuiDepth = GuiDepth - 1;

            Initialized = true;

            SetScrollSlider(scaleFactor * 2.0f);

            videoListLabelContent = new GUIContent(FresviiGUIText.Get("Videos"));

            GetUserVideoList();

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

        }
        public override void Init(Texture2D appIcon, string postFix, float scaleFactor, int guiDepth)
        {
            this.GuiDepth = guiDepth;

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

                guiStyleVideoNumLabel.fontStyle = FontStyle.Bold;
            }

            textureCoordsBackground = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.MainBackground);

            videoListTopMenu = GetComponent<FresviiGUIVideoListTop>();

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

            tabBar = GetComponent<FresviiGUITabBar>();

            if (!IsModal)
            {
                tabBar.Init(postFix, scaleFactor, this.GuiDepth - 1);

                tabBar.GuiDepth = GuiDepth - 1;
            }
            else
            {
                tabBar.enabled = false;
            }

            this.scaleFactor = scaleFactor;

            this.postFix = postFix;

            loadingSpinnerSize *= scaleFactor;

            sideMargin *= scaleFactor;

            topMargin *= scaleFactor;

            cardMargin *= scaleFactor;

            videoNumLabelHeight *= scaleFactor;

            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);

            pullRefleshHeight *= scaleFactor;

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

            SetScrollSlider(scaleFactor * 2.0f);

            TexVideoPlaybackIcon = Fresvii.AppSteroid.Util.ResourceManager.Instance.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.VideoListIconPlayTextureName + postFix, false);

            TexVideoEyeIcon = Fresvii.AppSteroid.Util.ResourceManager.Instance.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.VideoListIconEyeTextureName + postFix, false);

            TexVideoHeartIcon = Fresvii.AppSteroid.Util.ResourceManager.Instance.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.VideoListIconHeaertTextureName + postFix, false);

            TexButtonShare = Fresvii.AppSteroid.Util.ResourceManager.Instance.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ButtonShareTextureName + postFix, false);

            TexButtonShareH = Fresvii.AppSteroid.Util.ResourceManager.Instance.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ButtonShareHTextureName + this.postFix, false);

            videoListLoading = true;

            if (user == null)
            {
                IsMine = true;

                FASVideo.GetCurrentUserVideoList(OnGetVideoList);
            }
            else
            {
                IsMine = false;

                string query = "{\"where\":[{\"collection\":\"users\", \"column\":\"id\", \"value\":\"" + user.Id + "\"}]}";

                FASVideo.GetVideoList(query, OnGetVideoList);
            }

            if(FASGesture.Instance == null)
            {
                gameObject.AddComponent<FASGesture>();
            }

            TexMenu = Fresvii.AppSteroid.Util.ResourceManager.Instance.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ForumMenuTextureName + postFix, false);

            TexMenuH = Fresvii.AppSteroid.Util.ResourceManager.Instance.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.ForumMenuHTextureName + postFix, false);
        }