# Panel:DrawTextEntryText

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

```lua
Panel:DrawTextEntryText( table textCol, table highlightCol, table cursorCol )
```

## Açıklama

Bir derma görünümü içindeki bir [DTextEntry](https://gmod.tr/wiki/DTextEntry)'deki metni çizmek için kullanılır. Bu genellikle [SKIN:PaintTextEntry](https://wiki.facepunch.com/gmod/SKIN:PaintTextEntry) görünüm kancası (skin hook) içinde çağrılır.

> **NOT:** Argümanlardan herhangi biri verilmezse sessizce başarısız olur.

> **NOT:** Bu, 2B çizim bağlamı gerektiren bir çizim fonksiyonudur.
>
> Bu, yalnızca [2B Çizim Kancaları (2d Rendering Hooks)](https://gmod.tr/wiki/2D_Rendering_Hooks) içinde çalışacağı anlamına gelir.

## Argümanlar

1. [table](https://gmod.tr/wiki/table) **textCol**: Ana metnin rengi.
2. [table](https://gmod.tr/wiki/table) **highlightCol**: Seçim vurgusunun rengi (metin seçilirken).
3. [table](https://gmod.tr/wiki/table) **cursorCol**: Metin imlecinin (veya yanıp sönen çizginin) rengi.

### Örnek

Varsayılan derma görünümünde kullanılan paint (çizim) fonksiyonu.

```lua
function SKIN:PaintTextEntry( panel, w, h )

	if ( panel.m_bBackground ) then

		if ( panel:GetDisabled() ) then
			self.tex.TextBox_Disabled( 0, 0, w, h )
		elseif ( panel:HasFocus() ) then
			self.tex.TextBox_Focus( 0, 0, w, h )
		else
			self.tex.TextBox( 0, 0, w, h )
		end

	end

	panel:DrawTextEntryText( panel.m_colText, panel.m_colHighlight, panel.m_colCursor )

end
```

- [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:DrawTextEntryText
