void EnsureLineControls(int count) { while (m_componentLines.Count < count) { var itemSize = m_progressMode ? new Vector2(0.3f, 0.05f) : new Vector2(0.235f, 0.05f); var item = new ComponentLineControl(itemSize * new Vector2(1, baseScale), 0.035f * baseScale); m_componentLines.Add(item); Elements.Add(item); } }