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

Wysłany: 2018-10-09, 16:45


Pyrek24







Wiek: 25
Na forum: 3438 dni
Posty: 546
Nick w MP: Pyrek

Piwa: 10

Respekt: 50

Witam ot?? doda mi kto? do zak?adki pod f1 scrolla do zak?adki aktualizacj? bardzo prosz?, lub tak? strza?k? , jak si? kliknie to na drug? stron? si? przewija
kod
--[[
@StoriesRPG
@AuthorQuick <gamesadrian@onet.pl>
@Copryight
@All rights reserved!
]]

local swsh=guiGetScreenSize()
local wh=(sw/1680), (sh/1050)
local font dxCreateFont("f.ttf"20*w)
local font2 dxCreateFont("f.ttf"10*w)

local tick=getTickCount()
local tick2=getTickCount()

local menuf1=false
local bg=false
local info=false
local pomoc=false
local premium=false
local aktualizacje=false

local updates={}

--[Wypelnienie zakladek]
local infotresc=[[

edsaewsd

]]


local pomoctresc=[[

df112

]]


local premiumtresc=[[

sdadas

]]
local aktualizacjetresc=[[
dsad




]]



--[end:wyeplnieniezakladek]

addEvent("client:showUpdates"true)
addEventHandler("client:showUpdates"root, function(tabelka)
    updates tabelka
end)


function isMouseInxywidthheight )
    if ( not isCursorShowing( ) ) then
        return false
    end
    local sxsy guiGetScreenSize ( )
    local cxcy getCursorPosition ( )
    local cxcy = ( cx sx ), ( cy sy )
    if ( cx >= and cx <= width ) and ( cy >= and cy <= height then
        return true
    else
        return false
    end
end


addEventHandler("onClientRender"getRootElement(), function()
    
    if bg then
        exports["srpg-blurr"]:dxDrawBluredRectangle(00swshtocolor220220220,  a2), false)
        local a2=interpolateBetween(00025500, (getTickCount()-tick2)/500"Linear")
        dxDrawImage(196*w144*h1280*w720*h"i/background.png"000tocolor(255255255a2), false)
    end
    
    a interpolateBetween(00025500, (getTickCount()-tick)/500"Linear")
    
    if menuf1 then
        

        
        if isMouseIn(459*w492*h64*w132*hthen
            dxDrawImage(459*w492*h64*w132*h"i/icons/icon_info.png"000tocolor(255255255200), false)
        else
            dxDrawImage(459*w492*h64*w132*h"i/icons/icon_info.png"000tocolor(255255255a), false)
        end
        
        if isMouseIn(656*w492*h95*w132*hthen
            dxDrawImage(656*w492*h95*w132*h"i/icons/icon_help.png"000tocolor(255255255200), false)
        else
            dxDrawImage(656*w492*h95*w132*h"i/icons/icon_help.png"000tocolor(255255255a), false)
        end
        
        if isMouseIn(882*w492*h110*w128*hthen
            dxDrawImage(882*w492*h110*w128*h"i/icons/icon_premium.png"000tocolor(255255255200), false)
        else
            dxDrawImage(882*w492*h110*w128*h"i/icons/icon_premium.png"000tocolor(255255255a), false)
        end
        
        if isMouseIn(1106*w492*h118*w122*hthen
            dxDrawImage(1106*w492*h118*w122*h"i/icons/icon_updates.png"000tocolor(255255255200), false)
        else
            dxDrawImage(1106*w492*h118*w122*h"i/icons/icon_updates.png"000tocolor(255255255a), false)
        end
        
    
        dxDrawText("Informacje"415*w624*h578*w664*htocolor(255255255a), 1.00font"center""center"falsefalsefalsefalsefalse)
        dxDrawText("Pomoc"623*w624*h786*w664*htocolor(255255255a), 1.00,  font"center""center"falsefalsefalsefalsefalse)
        dxDrawText("Premium"858*w620*h1021*w660*htocolor(255255255a), 1.00,  font"center""center"falsefalsefalsefalsefalse)
        dxDrawText("Aktualizacje"1085*w614*h1248*w654*htocolor(255255255a), 1.00,  font"center""center"falsefalsefalsefalsefalse)
        
    end
    
    if info then 
        dxDrawText(infotresc409*w427*h1268*w744*htocolor(255255255a), 1.00font2"center""top"falsetruefalsefalsefalse)
        dxDrawImage(793*w784*h95*w90*h"i/back.png"000tocolor(255255255a), false)
    end
    
    if pomoc then
        dxDrawText(pomoctresc409*w427*h1268*w744*htocolor(255255255a), 1.00font2"center""top"falsetruefalsefalsefalse)
        dxDrawImage(793*w784*h95*w90*h"i/back.png"000tocolor(255255255a), false)
    end
    
    if premium then
        dxDrawText(premiumtresc409*w427*h1268*w744*htocolor(255255255a), 1.00font2"center""top"falsetruefalsefalsefalse)
        dxDrawImage(793*w784*h95*w90*h"i/back.png"000tocolor(255255255a), false)
    end
    
    if aktualizacje then
            dxDrawText(aktualizacjetresc409*w427*h1268*w744*htocolor(255255255a), 1.00font2"center""top"falsetruefalsefalsefalse)
            dxDrawImage(793*w784*h95*w90*h"i/back.png"000tocolor(255255255a), false)
        end

    
end)


addEventHandler("onClientClick"getRootElement(), function(btn,state)
    if btn ~= "left" and state ~= "down" then return end
    if isMouseIn(459*w492*h64*w132*h) and menuf1 == true then
        tick=getTickCount()
        menuf1=false
        info=true
        wroc=true
    elseif isMouseIn(656*w492*h95*w132*h) and menuf1 == true then
        tick=getTickCount()
        menuf1=false
        pomoc=true
        wroc=true
    elseif isMouseIn(882*w492*h110*w128*h) and menuf1 == true then
        tick=getTickCount()
        menuf1=false
        premium=true
        wroc=true
    elseif isMouseIn(1106*w492*h118*w122*h) and menuf1 == true then
        tick=getTickCount()
        triggerServerEvent("f1:showUpdates"localPlayer)
        menuf1=false
        aktualizacje=true
        wroc=true
    end
    
    if wroc and btn == "left" and state == "down" then
        if isMouseIn(793*w784*h95*w90*hthen
            tick=getTickCount()
            info=false
            pomoc=false
            premium=false
            aktualizacje=false
            wroc=false
            menuf1=true
        end
    end
end)

bindKey("f1""down", function()
    if not getElementData(localPlayer,"player:logged"then return end
    if bg == false then
        showChat(false)
        tick=getTickCount()
        tick2=getTickCount()
        bg=true
        menuf1=true
        showCursor(true)
    else
        showChat(true)
        menuf1=false
        wroc=false
        info=false
        pomoc=false
        premium=false
        bg=false
        aktualizacje=false
        showCursor(false)
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-10-11, 17:32


Norbert1234

Nie umiem w LUA






Wiek: 22
Na forum: 3988 dni
Posty: 319
Nick w MP: Gusterowskyy

Piwa: 242

Respekt: 60

No nie, nikt za Ciebie nie b?dzie odwala? takiej roboty. Spr?buj mo?e
Więcej informacji znajdziesz w Wikipedii MTA:

guiCreateScrollBarClient
a mo?e
Więcej informacji znajdziesz w Wikipedii MTA:

guiCreateScrollPane


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-10-13, 11:59


Mezo.

Mod-Team






Wiek: 24
Na forum: 3211 dni
Posty: 548
Nick w MP: Mezo

Piwa: 6070

Respekt: 517
Respekt: 517

Nadal potrzebujesz pomocy?

Podpis
- Na forum pomagam na miarę swoich możliwości, oraz bezpłatnie.
- Jeżeli potrzebujesz pomocy, pisz do mnie w prywatnej wiadomości, pomoc uzyskasz szybciej.
Współpraca - [email protected]


Użytkownik - 19.08.2017
GTAO MEMBER - 29.03.2019
Support-Team - 03.02.2019 - 07.05.2019
Moderator - 07.05.2019 - 02.08.2020
Mod-Team - 02.08.2020 - 25.03.2022

Postaw piwo autorowi tego posta
 

 
Tagi: scroll
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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