private float totalHeight() { bCalcHeight = true; curUIPos = Vector2.zero; if (tItem != null) { float num = (float)(int)((float)tItem.CurIcon().width * 0.4f); float b = (float)(int)((float)tItem.CurIcon().height * 0.4f); GUIStyle style = GUI.skin.GetStyle("Label"); float a = style.CalcHeight(new GUIContent(tItem.Name), size.x - num - 8f); curUIPos.y += Mathf.Max(a, b); curUIPos.y += 24f; curUIPos.y += 4f; style = GUI.skin.GetStyle("MiniLabel"); float num2 = style.CalcHeight(new GUIContent(StringMgr.Instance.Get(tItem.comment)), size.x - 16f); curUIPos.y += num2; curUIPos.y += brunchGap; curUIPos.y = property.GagueHeight(curUIPos.y); if (good != null && good.GetCashback() > 0) { curUIPos.y += brunchGap; curUIPos.y += 18f; } DoPriceTag(); DoAmount(); curUIPos.y += 10f; } bCalcHeight = false; return(curUIPos.y); }