JR10 Posted June 11, 2011 Share Posted June 11, 2011 its really my major problem in scripting , is making a gui or a dx fits on all resolution and i mean fits so it looks the same on all resolutions. is it possible? if you know a way to do this please post it and btw i tried the way in guiGetScreenSize wiki page didn't work . and if you know a way for dx and another way for gui please post both and i am not a copier so please explain what you are posting. thanks in advance Link to comment
Castillo Posted June 11, 2011 Share Posted June 11, 2011 Check this topic: viewtopic.php?f=91&t=32132&p=340545&hilit=resolution+problem#p340545 I had the same problem, that fixed it. Link to comment
Aibo Posted June 11, 2011 Share Posted June 11, 2011 gui can make use of relative position/size, while dx functions use absolute screen coordinates. for dx you need to calculate scaling according to current resolution (using your "reference" resolution or relative screen coordinates). search the forums, it has been discussed: viewtopic.php?f=91&t=33478 viewtopic.php?f=91&t=33412 viewtopic.php?f=91&t=30225 viewtopic.php?f=91&t=31314 etc Link to comment
JR10 Posted June 11, 2011 Author Share Posted June 11, 2011 Check this topic: viewtopic.php?f=91&t=32132&p=340545&hilit=resolution+problem#p340545I had the same problem, that fixed it. HELL F***EN YEAH!!!! ... i tried alot but finally , thanks solidsnake and The Kid for the code DX NOW FITS! --gui im sorry but there is so many ways posted , can you just post the way you use to fit a gui on all resolution? thanks. Link to comment
karlis Posted June 12, 2011 Share Posted June 12, 2011 for example when we want something to be located in center of screen we use sx,sy=guiGetScreenSize() x,y=0.5*sx,0.5*sy just get screen size, and then multiply it by float between 0 and 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