Wysłany: 2018-02-19, 10:43
AspWalczak12
Wiek: 46 Na forum: 3114 dni Posty: 33
Witam, zrobi?em gui w dx i funkcje na zamykanie tego gui, ale co? nie dzia?a
kod: addEventHandler ( "onClientClick" , root , function( btn , state )
if btn == "left" and state == "down" then
if isMouseIn ( screenW * 0.6211 , screenH * 0.6896 , screenW * 0.1406 , screenH * 0.0604 ) and naprawa == true then
naprawa = false
setPlayerHudComponentVisible ( "all" , true )
setElementData ( localPlayer , "hud:enabled" , true )
fadeCamera ( false )
showCursor ( false )
showChat ( true )
end
end
end )
db3: https://i.imgur.com/J5iHLCe.png
Wysłany: 2018-02-19, 10:48
Qwertick
Coming soon...
Wiek: 23 Na forum: 3577 dni Posty: 472
Nick w MP: Qwertick
Piwa : 2726
Masz zrobion? funkcje na isMouseIn?
Podpis
Kontakt
Discord: Qwertick#1210
Więcej szczegółów
Wystawiono 1 piw(a):AspWalczak12
Wysłany: 2018-02-19, 10:58
Ciastuuś
Truck soon...
Wiek: 26 Na forum: 3071 dni Posty: 799
Nick w MP: Ciastuuś
Piwa : 4297
Trzymaj,
function isMouseIn ( x , y , w , h ) if ( not isCursorShowing ()) then return false end local mx , my = getCursorPosition () local fullx , fully = guiGetScreenSize () cursorx , cursory = mx * fullx , my * fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end
Więcej szczegółów
Wystawiono 1 piw(a):AspWalczak12
Wysłany: 2018-02-19, 11:10
AspWalczak12
Wiek: 46 Na forum: 3114 dni Posty: 33
dzi?ki oba macie po piwie i respekcie. Temat mo?na zamkn??
Tagi: nie :: działa :: przycisk
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: