Panel:SetTooltip
Örnek
Bir DButton'a, oyuncu belirli bir süre boyunca düğmenin üzerinde gezindiğinde otomatik olarak gösterilecek bir ipucu verir. Bu süre tooltip_delay ConVar'ı tarafından belirlenir.
concommand.Add( "test_tooltip", function( ply )
local frame = vgui.Create( "DFrame" )
frame:SetSize( 200, 200 )
frame:Center()
frame:MakePopup()
local btn = frame:Add( "DButton" )
btn:SetPos( 20, 40 )
btn:SetSize( 100, 64 )
btn:SetText( "Hover over me!" )
btn:SetTooltip( "I am the tooltip text!" )
end )
Çıktı: 

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