Exemplo n.º 1
0
 private void ClosePanel()
 {
     isOpen = false;
     UICommonTool.SetComponentState(ref _lbDescribe, false);
     SetLayOutElementHeight(minHeight);
     UICommonTool.SetComponentHeight(ref _imgBG, minHeight);
     UICommonTool.SetComponentY(ref _imgBG, minY);
 }
Exemplo n.º 2
0
            private void OpenPanel()
            {
                isOpen = true;
                UICommonTool.SetComponentState(ref _lbDescribe, true);
                float height = GetContextHeight();

                SetLayOutElementHeight(height);
                UICommonTool.SetComponentHeight(ref _imgBG, height);
                UICommonTool.SetComponentY(ref _imgBG, heightOffset - height / 2);
            }
Exemplo n.º 3
0
 private void ClosePanel()
 {
     isOpen = false;
     UICommonTool.SetComponentState(ref _lbDescribe, false);
     SetLayOutElementHeight(minHeight);
     UICommonTool.SetComponentHeight(ref _imgBG, minHeight);
     UICommonTool.SetComponentY(ref _imgBG, minY);
     this._lbDescribe.SetActiveEx(false);
     this._lbQuestionName.SetActiveEx(true);
 }
Exemplo n.º 4
0
            public void SetData(string questionName, string describe)
            {
                _questionName = questionName;
                _describe     = describe;

                UICommonTool.SetTextContext(ref _lbQuestionName, questionName);
                UICommonTool.SetTextContext(ref _lbDescribe, describe);
                UICommonTool.SetComponentState(ref _lbDescribe, false);

                ClosePanel();
            }
Exemplo n.º 5
0
            private void OpenPanel()
            {
                isOpen = true;
                UICommonTool.SetComponentState(ref _lbDescribe, true);
                float height = GetContextHeight();

                SetLayOutElementHeight(height);
                UICommonTool.SetComponentHeight(ref _imgBG, height);
                //UICommonTool.SetComponentY(ref _imgBG, heightOffset - height / 2);
                this._lbDescribe.SetActiveEx(true);
                this._lbQuestionName.SetActiveEx(false);
            }
Exemplo n.º 6
0
            /// <summary>
            /// 设置组件存储的数据
            /// </summary>
            /// <param name="questionName"></param>
            /// <param name="describe"></param>
            public void SetData(FeelingVo value)
            {
                var tmpStri  = value.content;
                var titleStr = "";

                if (tmpStri.Length > 22)
                {
                    titleStr = tmpStri.Substring(0, 2);
                }
                else
                {
                    titleStr = tmpStri;
                }

                UICommonTool.SetTextContext(ref _lbQuestionName, titleStr);
                UICommonTool.SetTextContext(ref _lbDescribe, tmpStri);
                UICommonTool.SetComponentState(ref _lbDescribe, false);
                ClosePanel();
            }