DProperty_Combo:AddChoice

  DProperty_Combo:AddChoice( string Text, any data, boolean select = false )

Açıklama

Açılır menü kontrolünüze bir seçenek ekler.

Argümanlar

1 string Text
Görüntülenen metin.
2 any data
Saklanan Veri.
3 boolean select = false
Bu öğe seçilsin mi?

Örnek

"I am selected" seçeneğini seçili olarak ayarlar.

local choice = DP:CreateRow( "Choices", "Hello world" ) choice:Setup( "Combo" ) choice:AddChoice( "I am a choice", {} ) choice:AddChoice( "I am selected", 8, true ) choice:AddChoice( "I am not selected", "Hello world" )

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