예제 #1
0
        /// <summary>
        /// アセットフィールド
        /// </summary>
        private void AssetField(Rect position, LinkAnalyzer.AssetUniqueID uniqueID)
        {
#if SEARCH_TOOLS_DEBUG
            if (displayGUID)
            {
                var label = uniqueID.fileID.ToString("D9") + ":" + uniqueID.guid;
                EditorGUI.LabelField(position, label);
            }
            else               //[fallthrough]
#endif
            {
                var obj = LinkAnalyzer.ConvertUniqueIDToObject(uniqueID);
                CustomGUI.ObjectLabelField(position, obj);
            }

            var include = linkAnalyzer.IsInclude(uniqueID);
            position.xMin = position.xMax - position.height;
            GUI.DrawTexture(position, includeIcons[(int)include]);

            var assetBundle = (linkAnalyzer.GetIncludeStateFlags(uniqueID) & LinkAnalyzer.IncludeStateFlags.AssetBundle) != 0;
            if (assetBundle)
            {
                position.x -= position.width;
                GUI.DrawTexture(position, assetBundleIcons[(int)LinkAnalyzer.IsIncludeReturn.True]);
            }
        }
예제 #2
0
        /// <summary>
        /// アセットフィールド
        /// </summary>
        private void AssetField(Rect position, LinkAnalyzer.AssetUniqueID uniqueID)
        {
#if SEARCH_TOOLS_DEBUG
            if (displayGUID)
            {
                var label = uniqueID.fileID.ToString("D9") + ":" + uniqueID.guid;
                EditorGUI.LabelField(position, label);
            }
            else               //[fallthrough]
#endif
            CustomGUI.ObjectLabelField(position, uniqueID.guid, uniqueID.fileID);

            var include = linkAnalyzer.IsInclude(uniqueID);
            position.xMin = position.xMax - position.height;
            GUI.DrawTexture(position, includeIcons[(int)include]);
        }
예제 #3
0
        public static void ObjectLabelField(Object value, GUIStyle style, params GUILayoutOption[] options)
        {
            var position = GUILayoutUtility.GetRect(GUIContent.none, style, options);

            CustomGUI.ObjectLabelField(position, value, style);
        }
예제 #4
0
        public static void ProgressBarWithLabel(SerializedProperty property, GUIContent label, GUIStyle style, params GUILayoutOption[] options)
        {
            var position = GUILayoutUtility.GetRect(label, style, options);

            CustomGUI.ProgressBarWithLabel(position, property, label, style);
        }
예제 #5
0
        public static float ProgressBarWithLabel(GUIContent label, float value, GUIStyle style, params GUILayoutOption[] options)
        {
            var position = GUILayoutUtility.GetRect(label, style, options);

            return(CustomGUI.ProgressBarWithLabel(position, label, value, style));
        }
예제 #6
0
        public static float ProgressBar(float value, GUIStyle style, params GUILayoutOption[] options)
        {
            var position = GUILayoutUtility.GetRect(GUIContent.none, style, options);

            return(CustomGUI.ProgressBar(position, value, style));
        }