Temp() статический приватный метод

static private Temp ( Texture i ) : GUIContent
i Texture
Результат GUIContent
Пример #1
0
 public static void BeginGroup(Rect position, string text, GUIStyle style)
 {
     BeginGroup(position, GUIContent.Temp(text), style);
 }
Пример #2
0
 public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, string text, params GUILayoutOption[] options)
 {
     return(DoWindow(id, screenRect, func, GUIContent.Temp(text), GUI.skin.window, options));
 }
Пример #3
0
 // Draw the GUIStyle with a text string inside.
 public void Draw(Rect position, string text, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
 {
     Draw(position, GUIContent.Temp(text), -1, isHover, isActive, on, hasKeyboardFocus);
 }
Пример #4
0
 public static void BeginVertical(string text, GUIStyle style, params GUILayoutOption[] options)
 {
     BeginVertical(GUIContent.Temp(text), style, options);
 }
Пример #5
0
 public static void BeginArea(Rect screenRect, string text, GUIStyle style)
 {
     BeginArea(screenRect, GUIContent.Temp(text), style);
 }
Пример #6
0
 public static int Toolbar(int selected, string[] texts, GUIStyle style, params GUILayoutOption[] options)
 {
     return(Toolbar(selected, GUIContent.Temp(texts), style, options));
 }
Пример #7
0
 public static int SelectionGrid(int selected, string[] texts, int xCount, GUIStyle style, params GUILayoutOption[] options)
 {
     return(SelectionGrid(selected, GUIContent.Temp(texts), xCount, style, options));
 }
Пример #8
0
 public static void Box(string text, params GUILayoutOption[] options)
 {
     DoBox(GUIContent.Temp(text), GUI.skin.box, options);
 }
Пример #9
0
 public static void Box(Texture image, GUIStyle style, params GUILayoutOption[] options)
 {
     DoBox(GUIContent.Temp(image), style, options);
 }
Пример #10
0
        public static void Label(string text, GUIStyle style, params GUILayoutOption[] options)
#endif
        {
            DoLabel(GUIContent.Temp(text), style, options);
        }
Пример #11
0
 public static void Box(Texture image, params GUILayoutOption[] options)
 {
     DoBox(GUIContent.Temp(image), GUI.skin.box, options);
 }
Пример #12
0
 public static void Label(string text, params GUILayoutOption[] options)
 {
     DoLabel(GUIContent.Temp(text), GUI.skin.label, options);
 }
Пример #13
0
 public static void Label(Texture image, params GUILayoutOption[] options)
 {
     DoLabel(GUIContent.Temp(image), GUI.skin.label, options);
 }
Пример #14
0
 public static void BeginGroup(Rect position, Texture image, GUIStyle style)
 {
     BeginGroup(position, GUIContent.Temp(image), style);
 }
Пример #15
0
 public static int Toolbar(int selected, string[] texts, params GUILayoutOption[] options)
 {
     return(Toolbar(selected, GUIContent.Temp(texts), GUI.skin.button, options));
 }
Пример #16
0
 public static void Box(string text, GUIStyle style, params GUILayoutOption[] options)
 {
     DoBox(GUIContent.Temp(text), style, options);
 }
Пример #17
0
 public static int Toolbar(int selected, Texture[] images, params GUILayoutOption[] options)
 {
     return(Toolbar(selected, GUIContent.Temp(images), GUI.skin.button, options));
 }
Пример #18
0
 public static bool Button(Texture image, params GUILayoutOption[] options)
 {
     return(DoButton(GUIContent.Temp(image), GUI.skin.button, options));
 }
Пример #19
0
 public static int Toolbar(int selected, Texture[] images, GUIStyle style, params GUILayoutOption[] options)
 {
     return(Toolbar(selected, GUIContent.Temp(images), style, options));
 }
Пример #20
0
 public static bool RepeatButton(string text, params GUILayoutOption[] options)
 {
     return(DoRepeatButton(GUIContent.Temp(text), GUI.skin.button, options));
 }
Пример #21
0
 public static int SelectionGrid(int selected, Texture[] images, int xCount, GUIStyle style, params GUILayoutOption[] options)
 {
     return(SelectionGrid(selected, GUIContent.Temp(images), xCount, style, options));
 }
Пример #22
0
 public static bool RepeatButton(Texture image, GUIStyle style, params GUILayoutOption[] options)
 {
     return(DoRepeatButton(GUIContent.Temp(image), style, options));
 }
Пример #23
0
 public static void BeginVertical(Texture image, GUIStyle style, params GUILayoutOption[] options)
 {
     BeginVertical(GUIContent.Temp(image), style, options);
 }
Пример #24
0
 public static bool RepeatButton(string text, GUIStyle style, params GUILayoutOption[] options)
 {
     return(DoRepeatButton(GUIContent.Temp(text), style, options));
 }
Пример #25
0
 public static void BeginArea(Rect screenRect, Texture image, GUIStyle style)
 {
     BeginArea(screenRect, GUIContent.Temp(image), style);
 }
Пример #26
0
 public static bool Toggle(bool value, Texture image, GUIStyle style, params GUILayoutOption[] options)
 {
     return(DoToggle(value, GUIContent.Temp(image), style, options));
 }
Пример #27
0
 public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, Texture image, GUIStyle style, params GUILayoutOption[] options)
 {
     return(DoWindow(id, screenRect, func, GUIContent.Temp(image), style, options));
 }
Пример #28
0
 public static bool Toggle(bool value, string text, GUIStyle style, params GUILayoutOption[] options)
 {
     return(DoToggle(value, GUIContent.Temp(text), style, options));
 }
Пример #29
0
 // Draw the GUIStyle with an image inside. If the image is too large to fit within the content area of the style it is scaled down.
 public void Draw(Rect position, Texture image, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
 {
     Draw(position, GUIContent.Temp(image), -1, isHover, isActive, on, hasKeyboardFocus);
 }
Пример #30
0
 public static int SelectionGrid(Rect position, int selected, Texture[] images, int xCount, GUIStyle style)
 {
     return(SelectionGrid(position, selected, GUIContent.Temp(images), xCount, style));
 }