DTooltip.SetContents

From GMod Wiki

Jump to: navigation, search
Function
Syntax DTooltip:SetContents( )
Description:
Sets the text that should go in the tooltip area.
Returns: nil
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DTooltip.SetContents]DTooltip.SetContents [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionCreates a basic tooltip.
Used onNewerClient.png
Code
local tooltip = vgui.Create("DToolTip")
tooltip:SetPos(9, 11)
tooltip:SetContents("Olla.")
tooltip:SizeToContents()
 
OutputMakes a tooltip.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox