# TOOL:BuildCPanel

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

```lua
TOOL:BuildCPanel( Panel cpanel )
```

## Açıklama

Aracın kontrol panelinin yeniden oluşturulması gerektiğinde çağrılır.

> **UYARI:** Tarihsel nedenlerden dolayı, bu kanca araç nesnesini `self` olarak sağlamaz! Örneklere bakın.

## Argümanlar

1. [Panel](https://gmod.tr/wiki/Panel) **cpanel**: Ayarların ekleneceği [DForm](https://gmod.tr/wiki/DForm) kontrol paneli.

### Örnek

Bu kancanın nasıl düzgün kullanılacağını gösterir.

```lua
-- Build defaults for the preset system.
local ConVarsDefault = TOOL:BuildConVarList()

-- Please note that this function is defined with a dot (.), not a colon (:)!!!
-- This is important! You will not be able to access "self" in this function.
function TOOL.BuildCPanel( CPanel )

	CPanel:AddControl( "Header", { Description = "#tool.ballsocket.help" } )

	CPanel:AddControl( "ComboBox", { MenuButton = 1, Folder = "ballsocket", Options = { [ "#preset.default" ] = ConVarsDefault }, CVars = table.GetKeys( ConVarsDefault ) } )

	CPanel:AddControl( "Slider", { Label = "#tool.forcelimit", Command = "ballsocket_forcelimit", Type = "Float", Min = 0, Max = 50000, Help = true } )

	CPanel:AddControl( "CheckBox", { Label = "#tool.nocollide", Command = "ballsocket_nocollide", Help = true } )

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/TOOL.BuildCPanel
