Witam, ot?? skaluje mi wi?kszo?? gui, lecz nie skaluje mi outline. Pomo?e kto?? Zastosowa?em skalowanie od?rodkowe.
ss.
na rozdzia?ce 1024x768
https://imgur.com/OhkqEMm
na rozdzia?ce na kt?rej robi?em gui 1920x1080
https://imgur.com/LydL4cY
kod
[lua]
local sx,sy = guiGetScreenSize()
local zoom = 1
local fh = 1920
if sx < fh then
zoom = math.min(2,fh/sx)
end
przecho = false
function mysz(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end
przechowalnie = {
--{{-2532.74, -28.78, 16.49},setElementData(createMarker(-2532.74, -28.78, 16.49-1, "cylinder", 1.2, 255, 80, 0, 50),"przecho:id",1),{['Automobile']=true,['Bike']=true,['BMX']=true,['Quad']=true,['Monster Truck']=true,},"Samochody i motocykle",createColCuboid(-2537.384765625, -25.430768966675, 15.178846359253, 8.25, 5.25, 2.75),{-2534.71,-23.04,16.11,359.8,0.0,87.6}},
{{-1748.66, 962.79, 24.88},setElementData(createMarker(-1748.66, 962.79, 24.88-0.9, "cylinder", 1.2, 255, 80, 0, 50),"przecho:id",1),{['Automobile']=true,['Bike']=true,['BMX']=true,['Quad']=true,['Monster Truck']=true,},"Samochody i motocykle",createColCuboid(-1745.62, 955.64, 23.74, 4.30, 7.55, 4.69),{-1743.65,959.25,24.61,0.3,0.0,180.5}... |