# ContentSidebarToolbox

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

## Açıklama

> **DAHİLİ:** Bu dahili olarak kullanılır - kullanabilmenize rağmen muhtemelen kullanmamalısınız.

ContentSidebarToolbox, dahili olarak [ContentSidebar](https://gmod.tr/wiki/ContentSidebar) tarafından kullanılır ve bir kategorinin ikonunu değiştirmek için kullanılır. Dahili olarak bir [DTextEntry](https://gmod.tr/wiki/DTextEntry), [DPanel](https://gmod.tr/wiki/DPanel), [DImageButton](https://gmod.tr/wiki/DImageButton), [Panel](https://gmod.tr/wiki/Panel), [ContentHeader](https://gmod.tr/wiki/ContentHeader) ve bir [DIconBrowser](https://gmod.tr/wiki/DIconBrowser)'dan oluşur.

## Ebeveyn

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

## Uygular

Aşağıdaki kancaları/metotları uygular veya geçersiz kılar. Bunları geçersiz kılmak isterseniz, muhtemelen orijinal fonksiyonu da çağırmak istersiniz.

- [PANEL:Init](https://gmod.tr/wiki/PANEL:Init)
- [PANEL:PerformLayout](https://gmod.tr/wiki/PANEL:PerformLayout)

### Örnek

Nasıl oluşturulur

```lua
Frame = vgui.Create("DFrame")
Frame:SetSize(ScrW() / 2, ScrH() / 2)
Frame:Center()
Frame:MakePopup()

ContentSidebar = vgui.Create( "ContentSidebar", Frame)
ContentSidebar:Dock(FILL)
ContentSidebar:CreateSaveNotification()

for k=1, 6 do
	local Node = ContentSidebar.Tree:AddNode("Example", "icon16/user.png")
	Node:SetHideExpander(true)
	Node:SetExpanded(true)
	Node.DoClick = function(self)
		hook.Call("SpawnlistContentChanged", GAMEMODE or GM)
	end
	for v=1, math.random(1, 5) do
		Node:AddNode("Example", "icon16/star.png")
	end
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/ContentSidebarToolbox
