Wysłany: 2018-12-31, 00:06
Mikołajj
Wiek: 22 Na forum: 2885 dni Posty: 303
Nick w MP: Mikołaj
Piwa : 132
Witam. Ot?? mam takie pytanie dotycz?ce DGS editbox. Nie dzia?a mi funkcja pobierania textu, tzn:
button = exports . dgs : dgsCreateButton ( 0.7 , 0.1 , 0.2 , 0.1 , "OK" , true )
editBox = exports . dgs : dgsCreateEdit ( 0.3 , 0.1 , 0.4 , 0.1 , "" , true )
function outputEditBox ()
text = exports . dgs : dgsGetText ( editBox )
outputChatBox ( text )
end
addEventHandler ( "onClientdgsMouseClick" , button , outputEditBox )
Nawet jak dam tak, to i tak si? nie wy?wietla:
button = exports . dgs : dgsCreateButton ( 0.7 , 0.1 , 0.2 , 0.1 , "OK" , true )
editBox = exports . dgs : dgsCreateEdit ( 0.3 , 0.1 , 0.4 , 0.1 , "" , true )
function outputEditBox ()
text = exports . dgs : dgsGetText ( editBox )
outputChatBox ( text .. "test" )
end
addEventHandler ( "onClientdgsMouseClick" , button , outputEditBox )
Editbox i button si? normalnie wy?wietla, w ds3 - 0 b??d?w.
Wysłany: 2018-12-31, 12:50
Pawel5321
Szkrypter
Wiek: 36 Na forum: 3810 dni Posty: 237
Nick w MP: Pawell
Piwa : 2315
Więcej szczegółów
Wystawiono 1 piw(a):Mikołajj
Wysłany: 2018-12-31, 13:32
Mikołajj
Wiek: 22 Na forum: 2885 dni Posty: 303
Nick w MP: Mikołaj
Piwa : 132
Zrobi?em tak:
button = exports . dgs : dgsCreateButton ( 0.7 , 0.1 , 0.2 , 0.1 , "OK" , true )
editBox = exports . dgs : dgsCreateEdit ( 0.3 , 0.1 , 0.4 , 0.1 , "" , true )
function outputEditBox ()
text = exports . dgs : dgsGetText ( editBox )
outputChatBox ( text )
end
addEventHandler ( "onDgsMouseClick" , button , outputEditBox )
Wiadomo?c si? wysy?a lecz 2 razy, kto? wie dlaczego?
Wysłany: 2018-12-31, 13:44
Nexisten
Moderator
Wiek: 22 Na forum: 4108 dni Posty: 551
Nick w MP: Nexisten
Piwa : 1479
button = exports . dgs : dgsCreateButton ( 0.7 , 0.1 , 0.2 , 0.1 , "OK" , true )
editBox = exports . dgs : dgsCreateEdit ( 0.3 , 0.1 , 0.4 , 0.1 , "" , true )
function outputEditBox ( button , state )
if button == "left" and state == "down" then
text = exports . dgs : dgsGetText ( editBox )
outputChatBox ( text )
end
end
addEventHandler ( "onDgsMouseClick" , button , outputEditBox )
Spr?buj.
Więcej szczegółów
Wystawiono 1 piw(a):Mikołajj
Wysłany: 2018-12-31, 13:51
Mikołajj
Wiek: 22 Na forum: 2885 dni Posty: 303
Nick w MP: Mikołaj
Piwa : 132
Tagi: dgs :: editbox
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: