File size: 3,093 Bytes
18a519f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#if UNITY_2020_2_OR_NEWER
[assembly: UnityEditor.Localization]
#else
using UnityEngine;
using UnityEditor;

namespace UnityEditor.Timeline
{
    // dummy functions
    internal static class L10n
    {
        public static string Tr(string str)
        {
            return str;
        }

        public static string[] Tr(string[] str_list)
        {
            return str_list;
        }

        public static string Tr(string str, string groupName)
        {
            return str;
        }

        public static string TrPath(string path)
        {
            return path;
        }

        public static GUIContent TextContent(string text, string tooltip = null, Texture icon = null)
        {
            return EditorGUIUtility.TrTextContent(text, tooltip, icon);
        }

        public static GUIContent TextContent(string text, string tooltip, string iconName)
        {
            return EditorGUIUtility.TrTextContent(text, tooltip, iconName);
        }

        public static GUIContent TextContent(string text, Texture icon)
        {
            return EditorGUIUtility.TrTextContent(text, icon);
        }

        public static GUIContent TextContentWithIcon(string text, Texture icon)
        {
            return EditorGUIUtility.TrTextContentWithIcon(text, icon);
        }

        public static GUIContent TextContentWithIcon(string text, string iconName)
        {
            return EditorGUIUtility.TrTextContentWithIcon(text, iconName);
        }

        public static GUIContent TextContentWithIcon(string text, string tooltip, string iconName)
        {
            return EditorGUIUtility.TrTextContentWithIcon(text, tooltip, iconName);
        }

        public static GUIContent TextContentWithIcon(string text, string tooltip, Texture icon)
        {
            return EditorGUIUtility.TrTextContentWithIcon(text, tooltip, icon);
        }

        public static GUIContent TextContentWithIcon(string text, string tooltip, MessageType messageType)
        {
            return EditorGUIUtility.TrTextContentWithIcon(text, tooltip, messageType);
        }

        public static GUIContent TextContentWithIcon(string text, MessageType messageType)
        {
            return EditorGUIUtility.TrTextContentWithIcon(text, messageType);
        }

        public static GUIContent IconContent(string iconName, string tooltip = null)
        {
            return EditorGUIUtility.TrIconContent(iconName, tooltip);
        }

        public static GUIContent IconContent(Texture icon, string tooltip = null)
        {
            return EditorGUIUtility.TrIconContent(icon, tooltip);
        }

        public static GUIContent TempContent(string t)
        {
            return EditorGUIUtility.TrTempContent(t);
        }

        public static GUIContent[] TempContent(string[] texts)
        {
            return EditorGUIUtility.TrTempContent(texts);
        }

        public static GUIContent[] TempContent(string[] texts, string[] tooltips)
        {
            return EditorGUIUtility.TrTempContent(texts, tooltips);
        }
    }
}
#endif