DTooltip.SetContents
From GMod Wiki
Function | |
Syntax | DTooltip:SetContents( ) |
Description: | |
Sets the text that should go in the tooltip area. | |
Returns: | nil |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DTooltip.SetContents]DTooltip.SetContents [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Creates a basic tooltip. |
---|---|
Used on | |
Code | local tooltip = vgui.Create("DToolTip") tooltip:SetPos(9, 11) tooltip:SetContents("Olla.") tooltip:SizeToContents() |
Output | Makes a tooltip. |
Additional Notes
- You should not need to call DToolTip directly.