Temp() static private method

static private Temp ( Texture i ) : GUIContent
i Texture
return GUIContent
Example #1
0
 public static void BeginGroup(Rect position, string text, GUIStyle style)
 {
     BeginGroup(position, GUIContent.Temp(text), style);
 }
Example #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));
 }
Example #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);
 }
Example #4
0
 public static void BeginVertical(string text, GUIStyle style, params GUILayoutOption[] options)
 {
     BeginVertical(GUIContent.Temp(text), style, options);
 }
Example #5
0
 public static void BeginArea(Rect screenRect, string text, GUIStyle style)
 {
     BeginArea(screenRect, GUIContent.Temp(text), style);
 }
Example #6
0
 public static int Toolbar(int selected, string[] texts, GUIStyle style, params GUILayoutOption[] options)
 {
     return(Toolbar(selected, GUIContent.Temp(texts), style, options));
 }
Example #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));
 }
Example #8
0
 public static void Box(string text, params GUILayoutOption[] options)
 {
     DoBox(GUIContent.Temp(text), GUI.skin.box, options);
 }
Example #9
0
 public static void Box(Texture image, GUIStyle style, params GUILayoutOption[] options)
 {
     DoBox(GUIContent.Temp(image), style, options);
 }
Example #10
0
        public static void Label(string text, GUIStyle style, params GUILayoutOption[] options)
#endif
        {
            DoLabel(GUIContent.Temp(text), style, options);
        }
Example #11
0
 public static void Box(Texture image, params GUILayoutOption[] options)
 {
     DoBox(GUIContent.Temp(image), GUI.skin.box, options);
 }
Example #12
0
 public static void Label(string text, params GUILayoutOption[] options)
 {
     DoLabel(GUIContent.Temp(text), GUI.skin.label, options);
 }
Example #13
0
 public static void Label(Texture image, params GUILayoutOption[] options)
 {
     DoLabel(GUIContent.Temp(image), GUI.skin.label, options);
 }
Example #14
0
 public static void BeginGroup(Rect position, Texture image, GUIStyle style)
 {
     BeginGroup(position, GUIContent.Temp(image), style);
 }
Example #15
0
 public static int Toolbar(int selected, string[] texts, params GUILayoutOption[] options)
 {
     return(Toolbar(selected, GUIContent.Temp(texts), GUI.skin.button, options));
 }
Example #16
0
 public static void Box(string text, GUIStyle style, params GUILayoutOption[] options)
 {
     DoBox(GUIContent.Temp(text), style, options);
 }
Example #17
0
 public static int Toolbar(int selected, Texture[] images, params GUILayoutOption[] options)
 {
     return(Toolbar(selected, GUIContent.Temp(images), GUI.skin.button, options));
 }
Example #18
0
 public static bool Button(Texture image, params GUILayoutOption[] options)
 {
     return(DoButton(GUIContent.Temp(image), GUI.skin.button, options));
 }
Example #19
0
 public static int Toolbar(int selected, Texture[] images, GUIStyle style, params GUILayoutOption[] options)
 {
     return(Toolbar(selected, GUIContent.Temp(images), style, options));
 }
Example #20
0
 public static bool RepeatButton(string text, params GUILayoutOption[] options)
 {
     return(DoRepeatButton(GUIContent.Temp(text), GUI.skin.button, options));
 }
Example #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));
 }
Example #22
0
 public static bool RepeatButton(Texture image, GUIStyle style, params GUILayoutOption[] options)
 {
     return(DoRepeatButton(GUIContent.Temp(image), style, options));
 }
Example #23
0
 public static void BeginVertical(Texture image, GUIStyle style, params GUILayoutOption[] options)
 {
     BeginVertical(GUIContent.Temp(image), style, options);
 }
Example #24
0
 public static bool RepeatButton(string text, GUIStyle style, params GUILayoutOption[] options)
 {
     return(DoRepeatButton(GUIContent.Temp(text), style, options));
 }
Example #25
0
 public static void BeginArea(Rect screenRect, Texture image, GUIStyle style)
 {
     BeginArea(screenRect, GUIContent.Temp(image), style);
 }
Example #26
0
 public static bool Toggle(bool value, Texture image, GUIStyle style, params GUILayoutOption[] options)
 {
     return(DoToggle(value, GUIContent.Temp(image), style, options));
 }
Example #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));
 }
Example #28
0
 public static bool Toggle(bool value, string text, GUIStyle style, params GUILayoutOption[] options)
 {
     return(DoToggle(value, GUIContent.Temp(text), style, options));
 }
Example #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);
 }
Example #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));
 }