示例#1
0
        public void DrawUI(EditorWindow parent)
        {
            if (dataStore.SelectVenue == null)
            {
                return;
            }

            EditorGUILayout.Space();
            GUILayout.Box("", GUILayout.Width(parent.position.width - 10), GUILayout.Height(1));
            EditorGUILayout.Space();

            using (new EditorGUILayout.HorizontalScope())
            {
                GUILayout.FlexibleSpace();
                // タブを描画する
                //Styles.TabToggles, Styles.TabButtonStyle, Styles.TabButtonSize
                currentTab = (Tab)GUILayout.Toolbar((int)currentTab, new[] { "会場の設定", "アップロード" });
                GUILayout.FlexibleSpace();
            }

            if (currentTab == Tab.Edit)
            {
                editVenueView.DrawUI(parent);
            }
            else
            {
                uploadVenueView.DrawUI();
            }
        }
示例#2
0
        void DrawUI()
        {
            using (new EditorGUILayout.HorizontalScope())
            {
                GUILayout.FlexibleSpace();
                currentTab = (Tab)GUILayout.Toolbar((int)currentTab, new[] { "会場の設定", "アップロード" });
                GUILayout.FlexibleSpace();
            }

            if (currentTab == Tab.Edit)
            {
                editVenueView.DrawUI();
            }
            else
            {
                uploadVenueView.DrawUI();
            }
        }