MatreN Posted July 26, 2019 Share 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 Link to comment
Motar2k Posted July 26, 2019 Share Posted July 26, 2019 (edited) are you doing in relative position and size? Edited July 26, 2019 by Avival Link to comment
HassoN Posted July 26, 2019 Share 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. Link to comment
Scripting Moderators ds1-e Posted July 27, 2019 Scripting Moderators Share Posted July 27, 2019 Check this topic, it's well explained, and it works very nice. Link to comment
HassoN Posted July 27, 2019 Share 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 Link to comment
Moderators IIYAMA Posted July 27, 2019 Moderators Share 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 Link to comment
Scripting Moderators ds1-e Posted July 27, 2019 Scripting Moderators Share Posted July 27, 2019 11 hours ago, IIYAMA said: He probably meant this topic: Ah yes, big mistake Sorry. 1 Link to comment
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