xTravax Posted November 14, 2014 Share Posted November 14, 2014 hello there i am looking for some easy method how to fit any image or dx rectangle on any resolution without always using calculator and calculating or doing anything complex for text scale to fit on all resolutions i saw a post from Feche local scale = (1 / 1080) * sy-- made on 1920x1080 resolution with scale 1 and dividing with 1080 and * players height is there any simple method to make images and rectangles fit perfect on all resolutions like above example? thanks in advance Link to comment
ViRuZGamiing Posted November 14, 2014 Share Posted November 14, 2014 Perhaps a table with all coordinates and then loop through the table and fit them, not tested, should be possible. Link to comment
xTravax Posted November 14, 2014 Author Share Posted November 14, 2014 and how would i fit them to all resolutions? Link to comment
ViRuZGamiing Posted November 14, 2014 Share Posted November 14, 2014 The calculation in the loop but it'll be easier bcuz you'll need to write the calculation once and not every line Link to comment
xTravax Posted November 14, 2014 Author Share Posted November 14, 2014 can u give me an example? Link to comment
Moderators IIYAMA Posted November 16, 2014 Moderators Share Posted November 16, 2014 https://wiki.multitheftauto.com/wiki/Dx ... entEnabled Link to comment
xTravax Posted November 21, 2014 Author Share Posted November 21, 2014 that could help me later but thats not exactly what im searching for if an icon for example is 128x128 fine on 1920x1080 resolution,on 800x600 resolution it will be seriously too huge how could i simply scale it so that it gets width and height from screen size? Link to comment
Sasu Posted November 24, 2014 Share Posted November 24, 2014 viewtopic.php?f=91&t=69698&hilit=+resolution&sid=095da6c03cb9616230bd10f5f990c357#p649395 Link to comment
xTravax Posted November 24, 2014 Author Share Posted November 24, 2014 finally thank you! the best thing is your code is similiar to above scaling so it will be easy to use it 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