# ControlPanel

- **Ortam:** İstemci
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/ControlPanel
- **Çeviri tarihi:** 2025-09-08

## Açıklama

Sandbox oyun modundaki içerik menüsü tarafından kullanılır.

[Kaynağı görüntüle](https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/sandbox/gamemode/spawnmenu/controlpanel.lua)

## Ebeveyn

Bu sayfada listelenmeyen metotları vb. [DForm](https://gmod.tr/wiki/DForm)'dan miras alır.

## Metotlar

[Panel](https://gmod.tr/wiki/Panel) ControlPanel:[AddControl](https://gmod.tr/wiki/ControlPanel:AddControl)( [string](https://gmod.tr/wiki/string) type, [table](https://gmod.tr/wiki/table) controlinfo )

Bunu kullanmanız tavsiye edilmez. Gelecekteki bir güncellemede değiştirilebilir veya kaldırılabilir. Bunun yerine DForm'un üyelerini kullanmanız önerilir. Kontrol paneline bir kontrol ekler.

ControlPanel:[AddPanel](https://gmod.tr/wiki/ControlPanel:AddPanel)( [Panel](https://gmod.tr/wiki/Panel) panel )

DForm:AddItem çağrısı yaparak bir öğe ekler.

ControlPanel:[ClearControls](https://gmod.tr/wiki/ControlPanel:ClearControls)()

Bunu kullanmanız tavsiye edilmez. Gelecekteki bir güncellemede değiştirilebilir veya kaldırılabilir. Panel:Clear'ın takma adıdır (alias).

[Panel](https://gmod.tr/wiki/Panel) ControlPanel:[ColorPicker](https://gmod.tr/wiki/ControlPanel:ColorPicker)( [string](https://gmod.tr/wiki/string) label, [string](https://gmod.tr/wiki/string) convarR, [string](https://gmod.tr/wiki/string) convarG, [string](https://gmod.tr/wiki/string) convarB, [string](https://gmod.tr/wiki/string) convarA = nil )

Bir CtrlColor (renk seçici) paneli oluşturur ve bunu bir öğe olarak ekler.

ControlPanel:[ControlValues](https://gmod.tr/wiki/ControlPanel:ControlValues)( [table](https://gmod.tr/wiki/table) data )

Kontrol panelinin kontrol değerlerini ayarlar.

ControlPanel:[FillViaFunction](https://gmod.tr/wiki/ControlPanel:FillViaFunction)( [function](https://gmod.tr/wiki/function) func )

Verilen fonksiyonu tek argüman olarak bu panelle çağırır. Spawnmenu tarafından kontrol panelini doldurmak için kullanılır. Bunu kullanmanız tavsiye edilmez. Gelecekteki bir güncellemede değiştirilebilir veya kaldırılabilir. Bu aptalca. Sadece oluşturucu (builder) fonksiyonunu doğrudan çağırın.

[ControlPanel](https://gmod.tr/wiki/ControlPanel) ControlPanel:[GetEmbeddedPanel](https://gmod.tr/wiki/ControlPanel:GetEmbeddedPanel)()

Bu kontrol panelini döndürür.

[Panel](https://gmod.tr/wiki/Panel) ControlPanel:[KeyBinder](https://gmod.tr/wiki/ControlPanel:KeyBinder)( [string](https://gmod.tr/wiki/string) label1, [string](https://gmod.tr/wiki/string) convar1, [string](https://gmod.tr/wiki/string) label2 = nil, [string](https://gmod.tr/wiki/string) convar2 = nil )

Bir CtrlNumPad (bir Sandbox tuş atayıcı) paneli oluşturur ve bunu bir öğe olarak ekler.

[MatSelect](https://gmod.tr/wiki/MatSelect) ControlPanel:[MatSelect](https://gmod.tr/wiki/ControlPanel:MatSelect)( [string](https://gmod.tr/wiki/string) convar, [table](https://gmod.tr/wiki/table) options = nil, [boolean](https://gmod.tr/wiki/boolean) autostretch = nil, [number](https://gmod.tr/wiki/number) width = nil, [number](https://gmod.tr/wiki/number) height = nil )

Bir MatSelect paneli oluşturur ve bunu bir öğe olarak ekler.

[Panel](https://gmod.tr/wiki/Panel) ControlPanel:[ToolPresets](https://gmod.tr/wiki/ControlPanel:ToolPresets)( [string](https://gmod.tr/wiki/string) group, [table](https://gmod.tr/wiki/table) cvarList )

Bir ControlPresets paneli oluşturur ve bunu bir öğe olarak ekler.

- [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/ControlPanel
