Category:DTooltip

From Garry's Mod
Jump to: navigation, search

Contents

DescriptionPanelPage

This is an internal function or feature.
This means you will be able to use it, but you really shouldn't.

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

Inherited Functions

Inherits the following functions from DLabel and its parents up to 3 levels deep:


Examples

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


Pages in category "DTooltip"

The following 5 pages are in this category, out of 5 total.

Personal tools
Navigation