Dixers
No-Life
Wiek: 26 Na forum: 4312 dni Posty: 549
Nick w MP: Dixers
Piwa : 412
Witam, zrobi?em sobie sposobem Shuffle, czyli gui stworz?em na rozdzielczo?ci 640x480 a potem doda?em do kodu
mojeW , mojeH = 640 , 480
sW , sH = guiGetScreenSize ()
width , height = ( sW / mojeW ), ( sH / mojeH )
A wi?c kod wygl?da tak:
mojeW , mojeH = 640 , 480
sW , sH = guiGetScreenSize ()
width , height = ( sW / mojeW ), ( sH / mojeH )
GUIEditor = {
button = {}
}
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
monitor = guiCreateStaticImage ( 81 * width , 45 * heigth , 481 * width , 373 * heigth , "images/monitor.png" , false )
guiSetVisible ( monitor , false )
zamknij = guiCreateButton ( 323 * width , 291 * heigth , 125 * width , 43 * heigth , "Zamknij system Windows" , false , monitor )
monitoring = guiCreateLabel ( 31 * width , 36 * heigth , 212 * width , 34 * heigth , "Monitoring:" , false , monitor )
guiSetFont ( monitoring , "sa-header" )
guiLabelSetColor ( monitoring , 0 , 0 , 0 )
guiLabelSetHorizontalAlign ( monitoring , "left" , true )
kamera1 = guiCreateButton ( 31 * width , 75 * heigth , 103 * width , 38 * heigth , "Gara? 1" , false , monitor )
napisAlarm = guiCreateLabel ( 311 * width , 39 * heigth , 136 * width , 31 * heigth , "Alarm:" , false , monitor )
guiSetFont ( napisAlarm , "sa-header" )
guiLabelSetColor ( napisAlarm , 0 , 0 , 0 )
kamera2 = guiCreateButton ( 31 * width , 128 * heigth , 103 * width , 38 * heigth , "Gara? 2" , false , monitor )
kamera3 = guiCreateButton ( 0.06 * width , 0.49 * heigth , 0.21 * width , 0.10 * heigth , "Gara? 3" , true , monitor )
kamera4 = guiCreateButton ( 0.06 * width , 0.64 * heigth , 0.21 * width , 0.10 * heigth , "Gara? 4" , true , monitor )
kamera5 = guiCreateButton ( 0.30 * width , 0.20 * heigth , 0.21 * width , 0.10 * heigth , "Przed budynkiem" , true , monitor )
kamera6 = guiCreateButton ( 0.30 * width , 0.34 * heigth , 0.21 * width , 0.10 * heigth , "W ?rodku" , true , monitor )
alarm = guiCreateButton ( 0.65 * width , 0.20 * heigth , 0.21 * width , 0.10 * heigth , "Syrena OSP" , true , monitor )
wezwanie = guiCreateButton ( 0.65 * width , 0.34 * heigth , 0.21 * width , 0.10 * heigth , "Wezwij druh?w" , true , monitor )
wylacz = guiCreateButton ( 418 * width , 403 * heigth , 212 * width , 44 * heigth , "Wy??cz podgl?d z kamery" , false )
wezwij = guiCreateWindow ( 92 * width , 163 * heigth , 470 * width , 155 * heigth , "Panel alarmowy Ochotniczej Stra?y Po?arnej" , false )
guiWindowSetSizable ( wezwij , false )
guiSetAlpha ( wezwij , 1.00 )
guiSetVisible ( wezwij , false )
wyslij = guiCreateButton ( 10 * width , 98 * heigth , 185 * width , 47 * heigth , "Wyslij" , false , wezwij )
anuluj = guiCreateButton ( 275 * width , 98 * heigth , 185 * width , 47 * heigth , "Anuluj" , false , wezwij )
tekst = guiCreateEdit ( 10 * width , 26 * heigth , 450 * width , 51 * heigth , "" , false , wezwij )
end
)
A gui i tak nie wida? bo jest tak jakby na rozdzielczo?ci 640x480
Co zrobi?em ?le? Stawiam