# DColorPalette:OnValueChanged

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/DColorPalette:OnValueChanged
- **Çeviri tarihi:** 2026-05-13

```lua
DColorPalette:OnValueChanged( Color newcol )
```

## Açıklama

Yeni bir değeri tıkladıktan sonra renk değiştirildiğinde çağrılır.

## Argümanlar

1.. [Renk](https://gmod.tr/wiki/Color) **newcol**: Yeni renkleri. [DColorPalette](https://gmod.tr/wiki/DColorPalette)

### Örnek

Değiştirildikten sonra değerleri yazdıran bir renk paleti ile DFrame oluşturur.

```lua
local frame = vgui.Create( "DFrame" )
frame:SetSize( ScrW() - 100, ScrH() - 100 )
frame:Center()
frame:MakePopup()

local palette = vgui.Create( "DColorPalette", frame )
palette:Dock( FILL )

function palette:OnValueChanged( newcol )
	PrintTable( newcol )
end
```

**Çıkış:** Paletten seçilen renk.

- [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/DColorPalette:OnValueChanged
