Wysłany: 2015-09-04, 15:40
_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
x , y = guiGetScreenSize ()
outputChatBox ( "asd" )
function dxdraw ()
dxDrawText ( "YOU" , 483 / 1366 * x , 60 / 768 * y , 603 / 1366 * x , 135 / 768 * y , tocolor ( 254 , 0 , 1 , 255 ), 4.00 , "pricedown" , "left" , "top" , false , false , false , false , false )
dxDrawText ( "TUBE" , 639 / 1366 * x , 62 / 768 * y , 793 / 1366 * x , 135 / 768 * y , tocolor ( 255 , 255 , 255 , 255 ), 4.00 , "pricedown" , "left" , "top" , false , false , false , false , false )
end
window = guiCreateWindow ( 207 / 1366 * x , 156 / 768 * y , 919 / 1366 * x , 445 / 768 * y , "YOUTUBE" , false )
outputChatBox ( "asd1" )
guiWindowSetSizable ( window , false )
outputChatBox ( "asd2" )
browser = guiCreateBrowser ( 200 / 1366 * x , 150 / 768 * y , 910 / 1366 * x , 440 / 768 * y , false , false , false , window )
outputChatBox ( "asd3" )
guiSetVisible ( window , false )
outputChatBox ( "asd4" )
theBrowser = guiGetBrowser ( browser )
outputChatBox ( "asd5" )
function przegladarka ()
outputChatBox ( "123" )
addEventHandler ( "onClientRender" , root , dxdraw )
outputChatBox ( "1234" )
loadBrowserURL ( theBrowser , "http://www.youtube.com" )
outputChatBox ( "12345" )
end
bindKey ( "F4" , "down" , function()
outputChatBox ( "dupka" )
if guiSetVisible ( window , true ) then
outputChatBox ( "dupka1" )
guiSetVisible ( window , false )
outputChatBox ( "dupka2" )
removeEventHandler ( "onClientBrowserCreated" , theBrowser , przegladarka )
outputChatBox ( "dupka3" )
removeEventHandler ( "onClientRender" , root , dxdraw )
outputChatBox ( "dupka4" )
else
outputChatBox ( "dupka5" )
guiSetVisible ( window , true )
outputChatBox ( "dupka6" )
addEventHandler ( "onClientBrowserCreated" , theBrowser , przegladarka )
outputChatBox ( "dupka7" )
addEventHandler ( "onClientRender" , root , dxdraw )
outputChatBox ( "dupka7" )
end
end )
OutputChatBox dzia?a ale nie tworzy gui itd. Nic w debugu.
Wysłany: 2015-09-04, 16:59
#404
Wiek: 26 Na forum: 4771 dni Posty: 1438
Piwa : 2512
Spr?buj ?adowa? yt za pomoc? eventu:
Wysłany: 2015-09-04, 17:16
_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
Zobacz m?j kod jeszcze raz u?ywam tej funkcji
Wysłany: 2015-09-04, 17:34
Artysta
Lua, Lua, Czekolada
Wiek: 28 Na forum: 4466 dni Posty: 240
Nick w MP: Artysta/Koojot
Piwa : 1427
if guiSetVisible ( window , true ) then
To jest chyba jaka? wy?sza szko?a lua.
Mejbi tak
if guiGetVisible ( window ) == true then
and
local theBrowser = guiGetBrowser ( browser )
addEventHandler ( "onClientBrowserCreated" , theBrowser ,
function()
loadBrowserURL ( source , "http://www.youtube.com" )
end
)
Podpis
Something is coming..
Wysłany: 2015-09-04, 21:18
Tostuch
Wiek: 27 Na forum: 4931 dni Posty: 483
Nick w MP: Tost
Piwa : 137
Rozwi?zany problem, jak co?.
Tagi: przegladarka
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: