Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2014-11-13, 19:48


Dixers

No-Life






Wiek: 26
Na forum: 4312 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

Witam, zrobi?em sobie sposobem Shuffle, czyli gui stworz?em na rozdzielczo?ci 640x480 a potem doda?em do kodu


mojeW,mojeH 640480
sW,sH guiGetScreenSize()
widthheight = (sW/mojeW), (sH/mojeH)


A wi?c kod wygl?da tak:


mojeW,mojeH 640480
sW,sH guiGetScreenSize()
widthheight = (sW/mojeW), (sH/mojeH)

GUIEditor = {
    button = {}
}
addEventHandler("onClientResourceStart"resourceRoot,
    function()
    monitor guiCreateStaticImage(81*width45*heigth481*width373*heigth"images/monitor.png"false)
    guiSetVisible(monitorfalse)
        zamknij guiCreateButton(323*width291*heigth125*width43*heigth"Zamknij system Windows"falsemonitor)
        monitoring guiCreateLabel(31*width36*heigth212*width34*heigth"Monitoring:"falsemonitor)
        guiSetFont(monitoring"sa-header")
        guiLabelSetColor(monitoring000)
        guiLabelSetHorizontalAlign(monitoring"left"true)
        kamera1 guiCreateButton(31*width75*heigth103*width38*heigth"Gara? 1"falsemonitor)
        napisAlarm guiCreateLabel(311*width39*heigth136*width31*heigth"Alarm:"falsemonitor)
        guiSetFont(napisAlarm"sa-header")
        guiLabelSetColor(napisAlarm000)
        kamera2 guiCreateButton(31*width128*heigth103*width38*heigth"Gara? 2"falsemonitor)
        kamera3 guiCreateButton(0.06*width0.49*heigth0.21*width0.10*heigth"Gara? 3"truemonitor)
        kamera4 guiCreateButton(0.06*width0.64*heigth0.21*width0.10*heigth"Gara? 4"truemonitor)
        kamera5 guiCreateButton(0.30*width0.20*heigth0.21*width0.10*heigth"Przed budynkiem"truemonitor)
        kamera6 guiCreateButton(0.30*width0.34*heigth0.21*width0.10*heigth"W ?rodku"truemonitor)
        alarm guiCreateButton(0.65*width0.20*heigth0.21*width0.10*heigth"Syrena OSP"truemonitor)
        wezwanie guiCreateButton(0.65*width0.34*heigth0.21*width0.10*heigth"Wezwij druh?w"truemonitor)   
       wylacz guiCreateButton(418*width403*heigth212*width44*heigth"Wy??cz podgl?d z kamery"false)  
       
        wezwij guiCreateWindow(92*width163*heigth470*width155*heigth"Panel alarmowy Ochotniczej Stra?y Po?arnej"false)
        guiWindowSetSizable(wezwijfalse)
        guiSetAlpha(wezwij1.00)
        guiSetVisible(wezwijfalse)
        wyslij guiCreateButton(10*width98*heigth185*width47*heigth"Wyslij"falsewezwij)
        anuluj guiCreateButton(275*width98*heigth185*width47*heigth"Anuluj"falsewezwij)
        tekst guiCreateEdit(10*width26*heigth450*width51*heigth""falsewezwij)        
    end
)


A gui i tak nie wida? bo jest tak jakby na rozdzielczo?ci 640x480 :(

Co zrobi?em ?le? Stawiam :piwo: :piwo: :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-13, 20:05


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

Liter?wke pope?ni?e? zmiast *height napisa?e? *heigth - popraw, b?dzia dzia?a?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-13, 20:07


Dixers

No-Life






Wiek: 26
Na forum: 4312 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

O ludu :D Nie zauwa?y?em, to ju? wiadomo w czym tkwi b??d. Dzi?ki maxi, leci :piwo:

Postaw piwo autorowi tego posta
 

 
Tagi: gui :: rozdzielczość
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Gui rozdzielczość Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku