Пример #1
0
        protected int DrawMenu()
        {
            GUILayout.Space(2);
            var index = 0;

            if (string.IsNullOrEmpty(m_SearchString))
            {
                index = m_menuToolbar.Draw();
                GUILayout.Space(4);
            }
            else
            {
                var style = new GUIStyle(EditorStyles.boldLabel);
                style.richText = true;
                var toolbarText = "Search:  '<i>" + m_SearchString + "</i>'";
                EditorGUILayout.LabelField(toolbarText.ToUpper(), style);
                GUILayout.Space(2);
            }



            EditorGUILayout.BeginVertical(SA_PluginSettingsWindowStyles.SeparationStyle);
            GUILayout.Space(5);
            EditorGUILayout.EndVertical();

            return(index);
        }
        protected int DrawMenu()
        {
            GUILayout.Space(2);
            int index = m_menuToolbar.Draw();

            GUILayout.Space(4);

            EditorGUILayout.BeginVertical(SA_PluginSettingsWindowStyles.SeparationStyle);
            GUILayout.Space(5);
            EditorGUILayout.EndVertical();

            return(index);
        }