☠ RaZeR ☠ Posted April 13, 2016 Share Posted April 13, 2016 (edited) -- Edited April 14, 2016 by Guest Link to comment
Simple0x47 Posted April 13, 2016 Share Posted April 13, 2016 What you're doing right now it's not gonna appear in most of the screens. I would recommend to you to make a simple calculation to convert your gui's and dxdraw's to "adaptive". An example is: local screenX, screenY = guiGetScreenSize() local dxDraw = dxDrawText(screenX*0.421, screenY*0.236) -- The decimals came from my gui's editor element positions on my screen divided by my screen size. For example 540/1280, 540 is the x position on my screen and 1280 is my screenX size. Link to comment
☠ RaZeR ☠ Posted April 13, 2016 Author Share Posted April 13, 2016 ok # please can you help me to change the topbar chat from top to bottom ! Link to comment
Simple0x47 Posted April 13, 2016 Share Posted April 13, 2016 Just modify the X - Y positions Link to comment
☠ RaZeR ☠ Posted April 13, 2016 Author Share Posted April 13, 2016 Just modify the X - Y positions give me example plz ! Link to comment
Urban_West Posted April 13, 2016 Share Posted April 13, 2016 Just choose if you wanna use relative or fixed coordinates, if fixed coordinates then this: local screenX, screenY = guiGetScreenSize() will be the bottom and right position of your screen, if relative coordinates then 0,0 will be the top left corner and 1,1 the bottom right corner, you do the math. Ps, the function who's coordinates you should change are the dxDraw... functions inside the "onClientRender" event. Good luck. 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