Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructs content with an image and a tooltip.
 /// </summary>
 /// <param name="image">Image to be displayed on top of the GUI element.</param>
 /// <param name="tooltip">Tooltip to be displayed when user hovers over a GUI element.</param>
 public GUIContent(GUIContentImages image, LocString tooltip)
 {
     this.images = image;
     this.tooltip = tooltip;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructs content with just an image.
 /// </summary>
 /// <param name="image">Image to be displayed on top of the GUI element.</param>
 public GUIContent(GUIContentImages image)
 {
     this.images = image;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructs content with a string, an image and a tooltip.
 /// </summary>
 /// <param name="text">Textual portion of the content to be displayed as label in GUI elements.</param>
 /// <param name="image">Image to be displayed on top of the GUI element. Image will be placed to the right or to the 
 ///                     left of the text depending on active GUI style.</param>
 /// <param name="tooltip">Tooltip to be displayed when user hovers over a GUI element.</param>
 public GUIContent(LocString text, GUIContentImages image, LocString tooltip)
 {
     this.text = text;
     this.images = image;
     this.tooltip = tooltip;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Constructs content with a string and an image.
 /// </summary>
 /// <param name="text">Textual portion of the content to be displayed as label in GUI elements.</param>
 /// <param name="image">Image to be displayed on top of the GUI element. Image will be placed to the right or to the 
 ///                     left of the text depending on active GUI style.</param>
 public GUIContent(LocString text, GUIContentImages image)
 {
     this.text = text;
     this.images = image;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Constructs content with a string, an image and a tooltip.
 /// </summary>
 /// <param name="text">Textual portion of the content to be displayed as label in GUI elements.</param>
 /// <param name="image">Image to be displayed on top of the GUI element. Image will be placed to the right or to the
 ///                     left of the text depending on active GUI style.</param>
 /// <param name="tooltip">Tooltip to be displayed when user hovers over a GUI element.</param>
 public GUIContent(LocString text, GUIContentImages image, LocString tooltip)
 {
     this.text    = text;
     this.images  = image;
     this.tooltip = tooltip;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Constructs content with a string and an image.
 /// </summary>
 /// <param name="text">Textual portion of the content to be displayed as label in GUI elements.</param>
 /// <param name="image">Image to be displayed on top of the GUI element. Image will be placed to the right or to the
 ///                     left of the text depending on active GUI style.</param>
 public GUIContent(LocString text, GUIContentImages image)
 {
     this.text   = text;
     this.images = image;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Constructs content with an image and a tooltip.
 /// </summary>
 /// <param name="image">Image to be displayed on top of the GUI element.</param>
 /// <param name="tooltip">Tooltip to be displayed when user hovers over a GUI element.</param>
 public GUIContent(GUIContentImages image, LocString tooltip)
 {
     this.images  = image;
     this.tooltip = tooltip;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Constructs content with just an image.
 /// </summary>
 /// <param name="image">Image to be displayed on top of the GUI element.</param>
 public GUIContent(GUIContentImages image)
 {
     this.images = image;
 }
Ejemplo n.º 10
0
 /// <summary>Constructs content with just an image.</summary>
 public GUIContent(GUIContentImages image)
 {
     this.text    = null;
     this.images  = image;
     this.tooltip = null;
 }