Wysłany: 2016-03-25, 13:38
nox
Wiek: 33 Na forum: 3766 dni Posty: 51
Nick w MP: nox
mam taki kod i panel nie chce sie zamknac
GUIEditor = {
gridlist = {},
staticimage = {},
button = {}
}
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
local screenW , screenH = guiGetScreenSize ()
GUIEditor . staticimage [ 1 ] = guiCreateStaticImage (( screenW - 640 ) / 2 , ( screenH - 400 ) / 2 , 640 , 400 , ":obrazki5/images/1.png" , false )
GUIEditor . label [ 1 ] = guiCreateLabel ( 10 , 304 , 217 , 65 , " ---- " , false , GUIEditor . staticimage [ 1 ])
GUIEditor . button [ 2 ] = guiCreateButton ( 10 , 154 , 217 , 65 , "" , false , GUIEditor . staticimage [ 1 ])
GUIEditor . button [ 3 ] = guiCreateButton ( 10 , 229 , 217 , 65 , "" , false , GUIEditor . staticimage [ 1 ])
GUIEditor . button [ 4 ] = guiCreateButton ( 10 , 304 , 217 , 65 , "" , false , GUIEditor . staticimage [ 1 ])
GUIEditor . gridlist [ 1 ] = guiCreateGridList ( 360 , 47 , 270 , 343 , false , GUIEditor . staticimage [ 1 ])
guiGridListAddColumn ( GUIEditor . gridlist [ 1 ], "Gracz" , 0.9 )
guiSetAlpha ( GUIEditor . gridlist [ 1 ], 0.72 )
end
)
function openPanel ()
guiSetVisible ( GUIEditor . staticimage [ 1 ], true )
showCursor ( true )
end
addCommandHandler ( "pdp" , openPanel )
function zamykamy ()
if source == GUIEditor . label [ 1 ] then
guiSetVisible ( GUIEditor . staticimage [ 1 ], false )
showCursor ( false )
end
end
addEventHandler ( "onClientGUIClick" , root , zamykamy )
w db3 mam cos takiego :
http://i.imgur.com/kszdmXp.png
co zrobic ?
Wysłany: 2016-03-25, 14:02
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
local screenW , screenH = guiGetScreenSize ()
GUIEditor . staticimage [ 1 ] = guiCreateStaticImage (( screenW - 640 ) / 2 , ( screenH - 400 ) / 2 , 640 , 400 , ":obrazki5/images/1.png" , false )
GUIEditor . label [ 1 ] = guiCreateLabel ( 10 , 304 , 217 , 65 , " ---- " , false , GUIEditor . staticimage [ 1 ])
GUIEditor . button [ 2 ] = guiCreateButton ( 10 , 154 , 217 , 65 , "" , false , GUIEditor . staticimage [ 1 ])
GUIEditor . button [ 3 ] = guiCreateButton ( 10 , 229 , 217 , 65 , "" , false , GUIEditor . staticimage [ 1 ])
GUIEditor . button [ 4 ] = guiCreateButton ( 10 , 304 , 217 , 65 , "" , false , GUIEditor . staticimage [ 1 ])
GUIEditor . gridlist [ 1 ] = guiCreateGridList ( 360 , 47 , 270 , 343 , false , GUIEditor . staticimage [ 1 ])
guiGridListAddColumn ( GUIEditor . gridlist [ 1 ], "Gracz" , 0.9 )
guiSetAlpha ( GUIEditor . gridlist [ 1 ], 0.72 )
function openPanel ()
guiSetVisible ( GUIEditor . staticimage [ 1 ], true )
showCursor ( true )
end
addCommandHandler ( "pdp" , openPanel )
function zamykamy ()
if source == GUIEditor . label [ 1 ] then
guiSetVisible ( GUIEditor . staticimage [ 1 ], false )
showCursor ( false )
end
end
addEventHandler ( "onClientGUIClick" , root , zamykamy )
Tagi: panel :: nie :: chce :: się :: zamknąc
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: