# Panel:SetTooltipPanel

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/Panel:SetTooltipPanel
- **Çeviri tarihi:** 2025-10-03

```lua
Panel:SetTooltipPanel( Panel tooltipPanel = nil )
```

## Açıklama

Bir oyuncu panel nesnesinin üzerine imleciyle geldiğinde, bir [DTooltip](https://gmod.tr/wiki/DTooltip)'un içeriği olarak görüntülenecek paneli ayarlar. [DTooltip](https://gmod.tr/wiki/DTooltip)'un kendisini geçersiz kılmak istiyorsanız [Panel:SetTooltipPanelOverride](https://gmod.tr/wiki/Panel:SetTooltipPanelOverride)'a bakın.

> **NOT:** [Panel:SetTooltip](https://gmod.tr/wiki/Panel:SetTooltip) bu işlevi geçersiz kılacaktır.

> **UYARI:** Bunu [PANEL:OnCursorEntered](https://gmod.tr/wiki/PANEL:OnCursorEntered) içerisinden çağırmak çok geç! Araç ipucu görüntülenmeyecek veya güncellenmeyecektir.
>
> Verilen panel veya daha önce ayarlanan panel otomatik olarak kaldırılmayacaktır.

## Argümanlar

1. [Panel](https://gmod.tr/wiki/Panel) **tooltipPanel** = nil: Araç ipucu olarak kullanılacak panel.

### Örnek

Bu fonksiyonun örnek kullanımı

```lua
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ı:**

![image.png](https://gmod.tr/api/uploads/wiki/3563b8edf95664f21319.png)

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/Panel:SetTooltipPanel
