# SpawnmenuContentPanel

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

## Açıklama

Varsayılan SpawnmenuContentPanel

> **DAHİLİ:** Bu dahili olarak kullanılır - kullanabiliyor olsanız da muhtemelen kullanmamalısınız.

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

## Ebeveyn

Bu sayfada listelenmeyen metotları vb. [DPanel](https://gmod.tr/wiki/DPanel)'dan türetir.

## 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)

## Metotlar

SpawnmenuContentPanel:[CallPopulateHook](https://gmod.tr/wiki/SpawnmenuContentPanel:CallPopulateHook)( [string](https://gmod.tr/wiki/string) hookname )

İçinde arama yapılacak Spawnmenu kategorisini değiştirir

SpawnmenuContentPanel:[EnableModify](https://gmod.tr/wiki/SpawnmenuContentPanel:EnableModify)()

ContentSidebar'ın değiştirilmesine izin verir

SpawnmenuContentPanel:[EnableSearch](https://gmod.tr/wiki/SpawnmenuContentPanel:EnableSearch)( [string](https://gmod.tr/wiki/string) category, [string](https://gmod.tr/wiki/string) hookname )

İçinde arama yapılacak Spawnmenu kategorisini değiştirir

SpawnmenuContentPanel:[SwitchPanel](https://gmod.tr/wiki/SpawnmenuContentPanel:SwitchPanel)( [Panel](https://gmod.tr/wiki/Panel) panel )

Mevcut paneli verilen panelle değiştirir

### Örnek

SpawnmenuContentPanel'in nasıl oluşturulduğu

```lua
local function CreateContentPanel()

	local ctrl = vgui.Create( "SpawnmenuContentPanel" )

	ctrl.OldSpawnlists = ctrl.ContentNavBar.Tree:AddNode( "#spawnmenu.category.browse", "icon16/cog.png" )

	ctrl:EnableModify()
	hook.Call( "PopulatePropMenu", GAMEMODE )
	ctrl:CallPopulateHook( "PopulateContent" )

	ctrl.OldSpawnlists:MoveToFront()
	ctrl.OldSpawnlists:SetExpanded( true )

	return ctrl

end

spawnmenu.AddCreationTab( "#spawnmenu.content_tab", CreateContentPanel, "icon16/application_view_tile.png", -10 )
```

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