# Derma\_Install\_Convar\_Functions

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

```lua
Derma_Install_Convar_Functions( Panel target )
```

## Açıklama

Paneli (genellikle bir tür girdi), aşağıdaki fonksiyonları panele ekleyerek konsol değişkenlerindeki değişikliklere yanıt verir hale getirir:

- [Panel:SetConVar](https://gmod.tr/wiki/Panel:SetConVar)
- [Panel:ConVarChanged](https://gmod.tr/wiki/Panel:ConVarChanged)
- [Panel:ConVarStringThink](https://gmod.tr/wiki/Panel:ConVarStringThink)
- [Panel:ConVarNumberThink](https://gmod.tr/wiki/Panel:ConVarNumberThink)

Konsol değişkeninin değeri, panelin `m_strConVar` özelliğinde saklanır.

Panel, [PANEL:Think](https://gmod.tr/wiki/PANEL:Think) kancasında [Panel:ConVarStringThink](https://gmod.tr/wiki/Panel:ConVarStringThink) veya [Panel:ConVarNumberThink](https://gmod.tr/wiki/Panel:ConVarNumberThink) fonksiyonunu çağırmalı ve panelin değeri değiştiğinde [Panel:ConVarChanged](https://gmod.tr/wiki/Panel:ConVarChanged) fonksiyonunu çağırmalıdır.

## Argümanlar

1. [Panel](https://gmod.tr/wiki/Panel) **target**: Fonksiyonların ekleneceği panel.

### Örnek

Fonksiyonları bir panele ekler (vgui/dcheckbox.lua dosyasından bir kesit)

```lua
local PANEL = {}

Derma_Install_Convar_Functions( PANEL )

function PANEL:Init()
	-- Init fonksiyonu burada
end
function PANEL:Think()
	self:ConVarStringThink()
end
```

**Çıktı:** `PANEL` tablosu artık `SetConVar`, `ConVarChanged`, `ConVarStringThink` ve `ConVarNumberThink` fonksiyonlarını (ve bir `Init` ile `Think` fonksiyonunu) içerir

- [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/Global.Derma_Install_Convar_Functions
