ControlPanel:MatSelect

  MatSelect ControlPanel:MatSelect( string convar, table options = nil, boolean autostretch = nil, number width = nil, number height = nil )

Açıklama

Bir MatSelect paneli oluşturur ve onu bir öğe olarak ekler.

Argümanlar

1 string convar
Bu değer ile MatSelect:SetConVar fonksiyonunu çağırır.
2 table options = nil
Belirtilirse, her tablo girdisi için MatSelect:AddMaterial(key, value) fonksiyonunu çağırır. Eğer tablo anahtarı bir sayı ise, fonksiyon bunun yerine her iki argüman olarak da value ile çağrılır.
3 boolean autostretch = nil
Belirtilirse, bu değer ile MatSelect:SetAutoHeight fonksiyonunu çağırır.
4 number width = nil
Belirtilirse, bu değer ile MatSelect:SetItemWidth fonksiyonunu çağırır.
5 number height = nil
Belirtilirse, bu değer ile MatSelect:SetItemHeight fonksiyonunu çağırır.

Döndürülenler

1 MatSelect
Oluşturulan MatSelect paneli.

Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord