Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------
- -- VARIABLEN --
- ---------------
- local x, y = guiGetScreenSize()
- local trucker_window = false
- local trucker = {button = {}}
- function isCursorOnElement(x,y,w,h)
- local mx,my = getCursorPosition ()
- local fullx,fully = guiGetScreenSize()
- cursorx,cursory = mx*fullx,my*fully
- if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then
- return true
- else
- return false
- end
- end
- ---------------
- -- FENSTER 1 --
- ---------------
- local step = 0.03
- local x, y = guiGetScreenSize()
- local progress = 0
- local fadeIn = true
- function trucker_window_info()
- if fadeIn then
- progress = progress + step
- if progress > 1 then
- progress = 1
- end
- else
- progress = progress - step
- if progress < 0 then
- progress = 0
- removeEventHandler("onClientRender",getRootElement(),infoboxRender)
- end
- end
- dxDrawImage(1453*x/1920, 906*y/1080, 91*x/1920, 193, "images/skins/trucker.png", 0, 0, 0, tocolor(255, 255, 255, 255*progress), false)
- dxDrawRectangle(1007*x/1920, 849*y/1080, 547*x/1920, 27*y/1080, tocolor(49, 49, 49, 255*progress), false)
- dxDrawRectangle(1007*x/1920, 876*y/1080, 547*x/1920, 2*y/1080, tocolor(255, 157, 0, 255*progress), false)
- dxDrawRectangle(1007*x/1920, 878*y/1080, 547*x/1920, 192*y/1080, tocolor(239, 239, 239, 255*progress), false)
- dxDrawRectangle(1715*x/1920, 752*y/1080, 0*x/1920, 0*y/1080, tocolor(255, 255, 255, 255*progress), false)
- dxDrawImage(1453*x/1920, 906*y/1080, 91*x/1920, 193, "images/skins/trucker.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
- dxDrawText("Informationen", 1013*x/1920, 849*y/1080, 1101*x/1920, 876*y/1080, tocolor(255, 254, 254, 255), 1.00, "default-bold", "left", "center", false, false, false, false, false)
- dxDrawText("Hier findest du alle Informationen zum dem Job Lieferrant! ", 1017 - 1*x/1920, 886 - 1*y/1080, 1163 - 1*x/1920, 1007 - 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Hier findest du alle Informationen zum dem Job Lieferrant! ", 1017 + 1*x/1920, 886 - 1*y/1080, 1163 + 1*x/1920, 1007 - 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Hier findest du alle Informationen zum dem Job Lieferrant! ", 1017 - 1*x/1920, 886 + 1*y/1080, 1163 - 1*x/1920, 1007 + 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Hier findest du alle Informationen zum dem Job Lieferrant! ", 1017 + 1*x/1920, 886 + 1*y/1080, 1163 + 1*x/1920, 1007 + 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Hier findest du alle Informationen zum dem Job Lieferrant! ", 1017*x/1920, 886*y/1080, 1163*x/1920, 1007*y/1080, tocolor(255, 254, 254, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawImage(1134*x/1920, 1039*y/1080, 29*x/1920, 27*y/1080, "images/blips/flag.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
- dxDrawImage(1017*x/1920, 1039*y/1080, 29*x/1920, 27*y/1080, "images/blips/airport.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
- dxDrawImage(1056*x/1920, 1039*y/1080, 29*x/1920, 27*y/1080, "images/blips/skinshop.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
- dxDrawImage(1095*x/1920, 1039*y/1080, 29*x/1920, 27*y/1080, "images/blips/burger.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
- dxDrawText("Abgabepunkte", 1017 - 1*x/1920, 1017 - 1*y/1080, 1163 - 1*x/1920, 1039 - 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
- dxDrawText("Abgabepunkte", 1017 + 1*x/1920, 1017 - 1*y/1080, 1163 + 1*x/1920, 1039 - 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
- dxDrawText("Abgabepunkte", 1017 - 1*x/1920, 1017 + 1*y/1080, 1163 - 1*x/1920, 1039 + 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
- dxDrawText("Abgabepunkte", 1017 + 1*x/1920, 1017 + 1*y/1080, 1163 + 1*x/1920, 1039 + 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
- dxDrawText("Abgabepunkte", 1017*x/1920, 1017*y/1080, 1163*x/1920, 1039*y/1080, tocolor(255, 254, 254, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
- dxDrawText("Text", 1173 - 1*x/1920, 886 - 1*y/1080, 1293 - 1*x/1920, 1060 - 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Text", 1173 + 1*x/1920, 886 - 1*y/1080, 1293 + 1*x/1920, 1060 - 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Text", 1173 - 1*x/1920, 886 + 1*y/1080, 1293 - 1*x/1920, 1060 + 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Text", 1173 + 1*x/1920, 886 + 1*y/1080, 1293 + 1*x/1920, 1060 + 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Text", 1173*x/1920, 886*y/1080, 1293*x/1920, 1060*y/1080, tocolor(255, 254, 254, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Text2", 1309 - 1*x/1920, 886 - 1*y/1080, 1429 - 1*x/1920, 1060 - 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Text2", 1309 + 1*x/1920, 886 - 1*y/1080, 1429 + 1*x/1920, 1060 - 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Text2", 1309 - 1*x/1920, 886 + 1*y/1080, 1429 - 1*x/1920, 1060 + 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Text2", 1309 + 1*x/1920, 886 + 1*y/1080, 1429 + 1*x/1920, 1060 + 1*y/1080, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- dxDrawText("Text2", 1309*x/1920, 886*y/1080, 1429*x/1920, 1060*y/1080, tocolor(255, 254, 254, 255), 1.00, "default-bold", "center", "center", true, true, false, false, false)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement