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

Wysłany: 2017-07-24, 12:47


BoCzKu

Mapper & Lua






Wiek: 24
Na forum: 3465 dni
Posty: 87
Nick w MP: BoKu

Piwa: 331

Respekt: 135
Respekt: 135

Witam, m?g?by mi kto? wyskalowa? GUI na wszystkie rozdzielczo?ci ekranu?


addEventHandler("onClientRender"root,
    function()
        if not getElementDatalocalPlayer"skin" then return end
        if getElementDatalocalPlayer"Jezyk" ) == "Brak" then return end
        local Jezyk getElementDatalocalPlayer"Jezyk" )
        local Nick getPlayerNamelocalPlayer )
        local ID getElementData(localPlayer"id")
        local Kille getElementData(localPlayer"Kills") or 0
        local Ranga getElementData(localPlayer"LVL") or 0
        local r,getPlayerNametagColorlocalPlayer )
   dxDrawRectangle(1091629271105tocolor(000150), false)
        dxDrawText("Zab?jstwa - "..Kille..""10946411356678tocolor(r,b254), 1.00"bankgothic""left""top"falsefalsefalsefalsefalse)
        dxDrawText(""..Nick.." ["..ID.."]"11265871331629tocolor(r,b255), 0.90"bankgothic""center""top"falsefalsefalsefalsefalse)
        dxDrawText("Ranga - "..Ranga..""10946891356728tocolor(r,b254), 1.00"bankgothic""left""top"falsefalsefalsefalsefalse)
    end
)



ddEventHandler("onClientRender",root,function ()
    if isPedInVehicle(localPlayerthen
    dxDrawRectangle(071628052tocolor(000150), false)
        dxDrawText(getVehicleName(getPedOccupiedVehicle(localPlayer)).." | "..math.ceil(getElementSpeed(getPedOccupiedVehiclelocalPlayer ),1)).."km/h"0730269764tocolor(r,g,b255), 0.7"bankgothic""center""top"falsefalsefalsefalsefalse)    
    end
    end)

Dam Repke i Piwko :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-07-24, 13:20


Szymczu

Programista bo tak






Wiek: 27
Na forum: 3434 dni
Posty: 194
Nick w MP: Szymczu

Piwa: 36

Respekt: 120
Respekt: 120

W zmiennych screenWW i screenHH to 800 i 600 zamie? na rozdzia?ke w jakiej projektowales to gui

local screenWscreenH guiGetScreenSize()
local screenWWscreenHH = (screenW/800), (screenH/600)

addEventHandler("onClientRender"root,
    function()
        if not getElementDatalocalPlayer"skin" then return end
        if getElementDatalocalPlayer"Jezyk" ) == "Brak" then return end
        local Jezyk getElementDatalocalPlayer"Jezyk" )
        local Nick getPlayerNamelocalPlayer )
        local ID getElementData(localPlayer"id")
        local Kille getElementData(localPlayer"Kills") or 0
        local Ranga getElementData(localPlayer"LVL") or 0
        local r,getPlayerNametagColorlocalPlayer )
   dxDrawRectangle(1091*screenWW629271*screenWW105tocolor(000150), false)
        dxDrawText("Zab?jstwa - "..Kille..""1094*screenWW641*screenHH1356*screenWW678*screenHHtocolor(r,b254), 1.00"bankgothic""left""top"falsefalsefalsefalsefalse)
        dxDrawText(""..Nick.." ["..ID.."]"1126*screenWW587*screenHH1331*screenWW629*screenHHtocolor(r,b255), 0.90"bankgothic""center""top"falsefalsefalsefalsefalse)
        dxDrawText("Ranga - "..Ranga..""1094*screenWW689*screenHH1356*screenWW728*screenHHtocolor(r,b254), 1.00"bankgothic""left""top"falsefalsefalsefalsefalse)
    end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-07-30, 03:38


BoCzKu

Mapper & Lua






Wiek: 24
Na forum: 3465 dni
Posty: 87
Nick w MP: BoKu

Piwa: 331

Respekt: 135
Respekt: 135

Dzia?a ;) Dzi?kuje za Pomoc.

Podpis
Postaw piwo autorowi tego posta
 

 
Tagi: wyskalowanie :: gui
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Wyskalowanie GUI 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