private void ClosePanel() { isOpen = false; UICommonTool.SetComponentState(ref _lbDescribe, false); SetLayOutElementHeight(minHeight); UICommonTool.SetComponentHeight(ref _imgBG, minHeight); UICommonTool.SetComponentY(ref _imgBG, minY); }
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); }
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); }
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(); }
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); }
/// <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(); }