Garry's Mod Wiki

DTooltip

Description

This is used internally - although you're able to use it you probably shouldn't.

The panel used internally for tool tips. See Panel:SetTooltip.

Parent

Derives from DLabel.

Example

Drawing a Tool Tip manually, then painting over it.

local DFrame = vgui.Create( "DFrame" ) DFrame:SetPos( 100, 100 ) DFrame:SetSize( 100, 100 ) local DTooltip = vgui.Create( "DTooltip" ) DTooltip:SetPos( 0, 0 ) DTooltip:SetSize( 250, 50 ) DTooltip:SetText( "Manual Tooltip" ) DTooltip:OpenForPanel( DFrame ) DTooltip:PositionTooltip() DTooltip.Paint = function() draw.RoundedBox( 5, 0, 0, 250, 50, Color( 255, 255, 255, 255 ) ) end

Page Links


Special Pages


Wikis

?

Render Time: 40ms

Session 0
DB GetPage 8
Generate Html 2
SaveChanges 17
Render Body 0
Render Sidebar 12