Jump to content

[HELP] Loginpanel Resolution


MatreN

Recommended Posts

Posted

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 ( ͡°◡ ͡°   )

Posted (edited)

are you doing in relative position and size?

Edited 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

How give thanks

 

 

 

 

Posted

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

13319665721.gif

  • Moderators
Posted
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:

 

  • Like 1

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...