# Panel:ResetAllFades

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

```lua
Panel:ResetAllFades( boolean hold, boolean expiredOnly, number newSustain )
```

## Açıklama

Bir [RichText](https://gmod.tr/wiki/RichText) elementinde [Panel:InsertFade](https://gmod.tr/wiki/Panel:InsertFade) ile oluşturulmuş tüm metin solmalarını sıfırlar.

## Argümanlar

1. [boolean](https://gmod.tr/wiki/boolean) **hold**: Solmaları sıfırlamak için true, aksi takdirde false.
2. [boolean](https://gmod.tr/wiki/boolean) **expiredOnly**: `true`'ya eşit olan herhangi bir değer, yalnızca tamamen solmuş metin segmentlerindeki solmaları sıfırlar.
3. [number](https://gmod.tr/wiki/number) **newSustain**: Her bir solan metin segmentinin yeni bekleme süresi değeri. Eski bekleme süresi değerini korumak için -1 olarak ayarlayın.

### Örnek

İki metin segmentinin yavaşça solduğu ve oluşturulduktan 5 saniye sonra tam alfaya sıfırlandığı bir RichText paneli oluşturur.

```lua
-- Pencere çerçevesi
TextFrame = vgui.Create("DFrame")
TextFrame:SetSize(200, 100)
TextFrame:Center()
TextFrame:SetTitle("ResetAllFades")
TextFrame:MakePopup()

-- Zengin Metin paneli
local richtext = vgui.Create("RichText", TextFrame)
richtext:Dock(FILL)

-- Oluşturulduktan birkaç kare sonra metin ekleyin ve solmayı başlatın (aksi takdirde çalışmaz)
timer.Simple(0.05, function()

	richtext:SetBGColor(Color(32, 32, 32))
	richtext:SetFontInternal("GModNotify")

	richtext:AppendText("This is ")
	richtext:InsertFade(5, 2)

	richtext:AppendText("a test...")
	richtext:InsertFade(5, 1)

end)

-- Oluşturulduktan 5 saniye sonra tüm solmaları sıfırlayın
timer.Simple(5, function()

	richtext:ResetAllFades(true, false, -1)

end)
```

**Çıktı:** ![](https://gmod.tr/api/uploads/wiki/5fe6ec8f72c7356e3c1e.gif)

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