Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: scroll
1. Scroll
Witaj! Wiesz mo?e, co zrobi?, aby po zwi?kszeniu liczby w "vehicles", pozycja scrolla si? nie zmienia?a?

Za pomoc daje piwka!

Tutaj wklejam kod:

Kod:

local sx, sy = guiGetScreenSize()
local k5 = 10
local m5 = 10
local n5 = 10

function roundedRectangle(x, y, w, h, color)
dxDrawRectangle(x, y, w, h, color, false)
dxDrawRectangle(x + 2, y - 1, w - 4, 1, color, false)
dxDrawRectangle(x + 2, y + h, w - 4, 1, color, false)
dxDrawRectangle(x - 1, y + 2, 1, h - 4, color, false)
dxDrawRectangle(x + w, y + 2, 1, h - 4, color, false)
end

vehicles = 11

if 10 < vehicles then
size = k5*350
_size = size/#vehicles+399+(10+(1.9*(vehicles-11)))

size2 = m5*350
_size2 = size2/#vehicles
roundedRectangle(sx*1178/1920, sy*440/1080, sx*10/1920, sy*350/1080,tocolor(255,255,255,200))
roundedRectangle(sx*1178/1920, sy*_size/1080, sx*10/1920, sy*_size2/1080,tocolor(255,0,0,255))
end


bindKey("mouse_wheel_down", "both", function()
scrollUp2()
end)

bindKey("mouse_wheel_up", "both", function()
scrollDown2()
end)

function scrollDown2()
if n5 == m5 then return end
k5 = k5-1
n5 = n5-1
end

function scrollUp2()
if n5 >= vehicles then return end
k5 = k5+1
n5 = n5+1
end
2. scroll bar dx
Pierwsze pytanie to czy da si? zrobi? scrollbar w dx, bo wiem, ?e da si? z pomoca html. Je?eli macie jakie? podpowiedzi to napiszcie :p
3. Scroll w DxDrawText
Witam, ot?? jak doda? scrola od gui w dx?
kod
[lua]

local dxfont0_normal = dxCreateFont(":buttony-MoveRPG/normal.ttf", 14)
local dxfont1_normal = dxCreateFont(":buttony-MoveRPG/normal.ttf", 10)
local dxfont3_normal = dxCreateFont(":buttony-MoveRPG/normal.ttf", 12)
local screenW, screenH = guiGetScreenSize()


page = "1"
function gui()
if not getElementData(localPlayer, "sklep:gui") == true then return end

if page == "1" then


dxDrawImage(screenW * 0.3172, screenH * 0.1444, screenW * 0.3661, screenH * 0.0472, ":Sklep-MoveRPG/img/pasek.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(screenW * 0.3172, screenH * 0.1861, screenW * 0.3661, screenH * 0.5806, ":Sklep-MoveRPG/img/podstawa.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(screenW * 0.3172, screenH * 0.1444, screenW * 0.1234, screenH * 0.0472, ":Sklep-MoveRPG/img/lewastrona.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(screenW * 0.5594, screenH * 0.1444, screenW * 0.1240, screenH * 0.0472, ":Sklep-MoveRPG/img/prawastrona.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(screenW * 0.4396, screenH * 0.1444, screenW * 0.1224, screenH * 0.0472, ":Sklep-MoveRPG/img/srodek.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(screenW * 0.3396, screenH * 0.3287, screenW * 0.3260, scre...
4. scroll
Witam, potrzebuj? pomocy dotycz?cej paska od scrolla, a dok?adniej jak zrobi?, ?e po klikni?ciu w np prostok?t i przytrzymaniu przycisku prostok?t b?dzie zmienia? swoj? wysoko?? wraz z myszk??
5. Scroll w f1
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
[lua]--[[
@StoriesRPG
@Author: Quick <[email protected]>
@Copryight
@All rights reserved!
]]

local sw, sh=guiGetScreenSize()
local w, h=(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 isMouseIn( x, y, width, height )
if ( not isCursorShowing( ) ) then
return false
end
local sx, sy = guiGetScreenSize ( )
local cx, cy = getCursorPosition ( )
local cx, cy = ( cx * sx ), ( cy * sy )
if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then
return true
else
return false
end
end


addEventHandler("onClientRender", getRootElement(), function()

if ...
6. Scroll
Cze??,

Da rade podmieni? obrazek/zmniejszy? scrollbar stworzony przez guiCreateScrollPane ? Scrollpane jest stworzony w takich rozmiarach jak czarne t?o.