..:D&G:.. Posted June 7, 2016 Share Posted June 7, 2016 Hi, how can I adjust the font of a dx text to the player's resolution? Thanks. Link to comment
WickedBIJ Posted June 8, 2016 Share Posted June 8, 2016 screenW, screenH = guiGetScreenSize() screenW - x- 10, (screenH - y) / 2, (screenW - x- 10) + 285, ( (screenH - y) / 2) + 16 Adjust the x and y according to your requirements. Link to comment
..:D&G:.. Posted June 8, 2016 Author Share Posted June 8, 2016 I don't think you understand... I am not even using a GUI element, I am using a dxDrawText which I have to adjust the font to different resolutions. Link to comment
Tails Posted June 9, 2016 Share Posted June 9, 2016 Hi D&G, Take a look at this thread, it has all your answers in it in regard to scaling and making it fit on any resolution. Read my post especially, I explain exactly what's happening and why. https://forum.multitheftauto.com/viewtopic.php?f=91&t=94987 Link to comment
..:D&G:.. Posted June 9, 2016 Author Share Posted June 9, 2016 Tails said: Hi D&G,Take a look at this thread, it has all your answers in it in regard to scaling and making it fit on any resolution. Read my post especially, I explain exactly what's happening and why. https://forum.multitheftauto.com/viewtopic.php?f=91&t=94987 Thanks a lot That worked! 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