DTextEntry:OnEnter

  DTextEntry:OnEnter( string value )

Açıklama

Bir DTextEntry üzerinde enter tuşuna basıldığında çağrılır.

DTextEntry:IsEditing bu geri çağırımda hala true değerini döndürecektir!

Argümanlar

1 string value
DTextEntry'nin mevcut metni

Örnek

local TextEntry = vgui.Create( "DTextEntry" ) function TextEntry:OnEnter( value ) print("You typed: ", value) end

Örnek

local TextEntry = vgui.Create( "DTextEntry" ) TextEntry.OnEnter = function( self ) -- Alternatif yöntem, DTextEntry nesnesini verir. print("You typed: ", self:GetValue()) -- Metni almak için self:GetValue() kullanın. end
Çıktı: DTextEntry'ye yazılan herhangi bir metin, enter tuşuna basıldığında konsolda görünür.

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