Panel:SetTooltipPanel
Örnek
Bu fonksiyonun örnek kullanımı
concommand.Add( "test_tooltip_content", function( ply )
local frame = vgui.Create( "DFrame" )
frame:SetSize( 500, 500 )
frame:Center()
frame:MakePopup()
local panel = vgui.Create( "Panel" )
panel:SetSize( 100, 100 )
panel:SetVisible( false )
panel.Paint = function( self, width, height )
surface.SetDrawColor( 255, 0, 0 )
surface.DrawRect( 0, 0, width, height)
end
local button1 = vgui.Create( "DButton", panel )
button1:SetText( "test" )
button1:SetSize( 50, 50 )
button1:SetPos( 5, 5 )
local button2 = frame:Add( "DButton" )
button2:Dock( TOP )
-- button2:SetTooltip( "test" ) -- Bu, SetTooltipPanel'in çalışmasını durduracaktır.
button2:SetTooltipPanel( panel )
end )
Çıktı: 

Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord