コード例 #1
0
        public void DoList(Rect rect)
        {
            if (ReorderableList.s_Defaults == null)
            {
                ReorderableList.s_Defaults = new ReorderableList.Defaults();
            }
            Rect headerRect = new Rect(rect.x, rect.y, rect.width, this.headerHeight);
            Rect listRect   = new Rect(rect.x, headerRect.y + headerRect.height, rect.width, this.GetListElementHeight());
            Rect footerRect = new Rect(rect.x, listRect.y + listRect.height, rect.width, this.footerHeight);

            this.DoListHeader(headerRect);
            this.DoListElements(listRect);
            this.DoListFooter(footerRect);
        }
コード例 #2
0
        public void DoLayoutList()
        {
            if (ReorderableList.s_Defaults == null)
            {
                ReorderableList.s_Defaults = new ReorderableList.Defaults();
            }
            Rect rect1 = GUILayoutUtility.GetRect(0.0f, this.headerHeight, new GUILayoutOption[1] {
                GUILayout.ExpandWidth(true)
            });
            Rect rect2 = GUILayoutUtility.GetRect(10f, this.GetListElementHeight(), new GUILayoutOption[1] {
                GUILayout.ExpandWidth(true)
            });
            Rect rect3 = GUILayoutUtility.GetRect(4f, this.footerHeight, new GUILayoutOption[1] {
                GUILayout.ExpandWidth(true)
            });

            this.DoListHeader(rect1);
            this.DoListElements(rect2);
            this.DoListFooter(rect3);
        }
コード例 #3
0
		public void DoList(Rect rect)
		{
			if (ReorderableList.s_Defaults == null)
			{
				ReorderableList.s_Defaults = new ReorderableList.Defaults();
			}
			Rect headerRect = new Rect(rect.x, rect.y, rect.width, this.headerHeight);
			Rect listRect = new Rect(rect.x, headerRect.y + headerRect.height, rect.width, this.GetListElementHeight());
			Rect footerRect = new Rect(rect.x, listRect.y + listRect.height, rect.width, this.footerHeight);
			this.DoListHeader(headerRect);
			this.DoListElements(listRect);
			this.DoListFooter(footerRect);
		}
コード例 #4
0
		public void DoLayoutList()
		{
			if (ReorderableList.s_Defaults == null)
			{
				ReorderableList.s_Defaults = new ReorderableList.Defaults();
			}
			Rect rect = GUILayoutUtility.GetRect(0f, this.headerHeight, new GUILayoutOption[]
			{
				GUILayout.ExpandWidth(true)
			});
			Rect rect2 = GUILayoutUtility.GetRect(10f, this.GetListElementHeight(), new GUILayoutOption[]
			{
				GUILayout.ExpandWidth(true)
			});
			Rect rect3 = GUILayoutUtility.GetRect(4f, this.footerHeight, new GUILayoutOption[]
			{
				GUILayout.ExpandWidth(true)
			});
			this.DoListHeader(rect);
			this.DoListElements(rect2);
			this.DoListFooter(rect3);
		}