MatreN Posted July 26, 2019 Posted July 26, 2019 We did the login panel but at 1280x720 resolution, the background photo is very big but the 1920x1080 background is fully compatible. What should we do. Help I'am HAPPY ( ͡°◡ ͡° )
Motar2k Posted July 26, 2019 Posted July 26, 2019 (edited) are you doing in relative position and size? Edited July 26, 2019 by Avival My discord: Armisael_#1719 Did my help work for you? Don't forget to thank ¿Mi ayuda funcionó para ti? No olvides agradecer
HassoN Posted July 26, 2019 Posted July 26, 2019 A little example on how you make anything compatible with any resolution. local x, y = guiGetScreenSize() local xs, ys = 1920, 1080 -- this represents the designer's screen resolution. --> for example we have something like: dxDrawText(100, 200, 300, 400, ...) -- this should look fine on your screen, but not fine at all for everyone's else screen. dxDrawText(x * (100/xs), y * (200/ys), x * (300/xs), y * (400/ys), ...) -- this should look fine both on your screen and others' screens. * There is No God but Allah discord: HassoN#2709 Visit my wiki profile: https://wiki.multitheftauto.com/wiki/User:Hassan_saad
sacr1ficez Posted July 27, 2019 Posted July 27, 2019 Check this topic, it's well explained, and it works very nice. Script security
HassoN Posted July 27, 2019 Posted July 27, 2019 (edited) 5 hours ago, majqq said: Check this topic, it's well explained, and it works very nice. That topic is about event handlers how could that help to calculate the right screen position in this case? Edited July 27, 2019 by HassoN * There is No God but Allah discord: HassoN#2709 Visit my wiki profile: https://wiki.multitheftauto.com/wiki/User:Hassan_saad
Moderators IIYAMA Posted July 27, 2019 Moderators Posted July 27, 2019 9 minutes ago, HassoN said: That topic is about event handlers how could that help to calculate the right screen position in this case? He probably meant this topic: 1 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
sacr1ficez Posted July 27, 2019 Posted July 27, 2019 11 hours ago, IIYAMA said: He probably meant this topic: Ah yes, big mistake Sorry. 1 Script security
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now