/*
		 * Draw in inspector
		 */
		public void drawInspector()
		{
			foreach (ReleaseType releaseType in m_releaseTypes.getReleaseTypeList())
			{
				ReleaseTypeRenderer releaseTypeRenderer = new ReleaseTypeRenderer(releaseType);
				
				if (GUIUtils.DrawHeader(releaseType.name, true, ref releaseType.isActive))
				{
					GUIUtils.BeginContents();
					releaseTypeRenderer.drawInspector();
					
					if (GUIUtils.DrawDeleteRedButton())
					{
						m_releaseTypes.getReleaseTypeList().Remove(releaseType);
						break;
					}
					GUIUtils.EndContents();
				}
			}

			GUILayout.Space(5f);

			EditorGUILayout.BeginHorizontal(LegacyGUIStyle.CenterMarginStyle);
			if (GUILayout.Button("Add Release Type"))
			{
				ReleaseType releaseType = new ReleaseType(m_releaseTypes.getReleaseTypeList().Count + 1);
				m_releaseTypes.getReleaseTypeList().Add(releaseType);
			}
			EditorGUILayout.EndHorizontal();
		}
		/*
		 * Constructor
		 */
		public ReleaseTypeRenderer(ReleaseType releaseType)
		{
			m_releaseType = releaseType;
		}