Exemplo n.º 1
0
        /// <summary>Initializes the struct with default values.</summary>
        public static GUIContent Default()
        {
            GUIContent value = new GUIContent();

            value.text    = null;
            value.images  = GUIContentImages.Default();
            value.tooltip = null;

            return(value);
        }
Exemplo n.º 2
0
        /// <summary>Initializes the struct with default values.</summary>
        public static GUIContentImages Default()
        {
            GUIContentImages value = new GUIContentImages();

            value.normal    = null;
            value.hover     = null;
            value.active    = null;
            value.focused   = null;
            value.normalOn  = null;
            value.hoverOn   = null;
            value.activeOn  = null;
            value.focusedOn = null;

            return(value);
        }
Exemplo n.º 3
0
 /// <summary>Constructs content with a string, an image and a tooltip.</summary>
 public GUIContent(LocString text, GUIContentImages image, LocString tooltip)
 {
     this.text    = text;
     this.images  = image;
     this.tooltip = tooltip;
 }
Exemplo n.º 4
0
 /// <summary>Constructs content with a string and an image.</summary>
 public GUIContent(LocString text, GUIContentImages image)
 {
     this.text    = text;
     this.images  = image;
     this.tooltip = null;
 }
Exemplo n.º 5
0
 /// <summary>Constructs content with an image and a tooltip.</summary>
 public GUIContent(GUIContentImages image, LocString tooltip)
 {
     this.text    = null;
     this.images  = image;
     this.tooltip = tooltip;
 }
Exemplo n.º 6
0
 /// <summary>Constructs content with just an image.</summary>
 public GUIContent(GUIContentImages image)
 {
     this.text    = null;
     this.images  = image;
     this.tooltip = null;
 }
Exemplo n.º 7
0
 /// <summary>Constructs content with a string and a tooltip.</summary>
 public GUIContent(LocString text, LocString tooltip)
 {
     this.text    = text;
     this.images  = GUIContentImages.Default();
     this.tooltip = tooltip;
 }