コード例 #1
0
        /// <summary>
        /// Adds a GuiLabel to the GuiController collection.
        /// </summary>
        /// <param name="id">The id of this new control</param>
        /// <param name="text">The visible text of the label</param>
        /// <param name="tooltip">The mouseover tooltip of the label</param>
        /// <returns>The newly created label.</returns>
        public GuiLabel AddLabel(string id, string text, string tooltip)
        {
            GuiLabel label = new GuiLabel();

            label.ID      = id;
            label.Text    = text;
            label.ToolTip = tooltip;

            AddGuiControl(label);

            return(label);
        }
コード例 #2
0
		/// <summary>
		/// Adds a GuiLabel to the GuiController collection.
		/// </summary>
		/// <param name="id">The id of this new control</param>
		/// <param name="text">The visible text of the label</param>
		/// <param name="tooltip">The mouseover tooltip of the label</param>
		/// <returns>The newly created label.</returns>
		public GuiLabel AddLabel(string id, string text, string tooltip) 
		{
			GuiLabel label = new GuiLabel();
			label.ID = id;
			label.Text = text;
			label.ToolTip = tooltip;

			AddGuiControl(label);

			return label;
		}