Example #1
0
        public static bool createListButton(string title, bool removeButton = false, GUILayoutOption option = null)
        {
            if (removeButton)
            {
                EditorColors.SET_REMOVE_BUTTON_COLOR();
            }
            else
            {
                EditorColors.SET_ADD_BUTTON_COLOR();
            }

            if (option == null)
            {
                option = GUILayout.ExpandWidth(false);
            }

            bool pressed = GUILayout.Button(title, option);

            EditorColors.SET_DEFAULT_COLOR();

            return(pressed);
        }