drk Posted December 20, 2011 Share Posted December 20, 2011 Hi ! I need help in changing absolute position's to relative. I don't understand how to do this. Example: I have a image and I have absolute position and I want to change absolute to relative to appear in all resolutions. Understand? If anyone want to help me ... If you don't want to help, don't reply please. Link to comment
Evil-Cod3r Posted December 20, 2011 Share Posted December 20, 2011 relative: This is whether sizes and positioning are relative. If this is true, then all x,y,width,height floats must be between 0 and 1, representing sizes/positions as a fraction of the screen size. If false, then the size and co-ordinates are based on client's resolution, accessible using guiGetScreenSize. Link to comment
drk Posted December 20, 2011 Author Share Posted December 20, 2011 Thanks for trying to help, but how it helps? Link to comment
Xeno Posted December 20, 2011 Share Posted December 20, 2011 (edited) Im not sure if it will work with images, but this is what I use for GUI's: sx,sy = guiGetScreenSize() guiCreateWindow(0.700*sx,0.230*sy,0.250*sx,0.550*sy,"window",false) PS: I see your a maggot (Slipknot fan..) Edited December 20, 2011 by Guest Link to comment
TAPL Posted December 20, 2011 Share Posted December 20, 2011 lol? you still can't understand this? viewtopic.php?f=91&t=36758 viewtopic.php?f=91&t=37161 You still don't get it? OMG...We gave you tons of code that do that already! What is it? Do you even test them? Link to comment
drk Posted December 20, 2011 Author Share Posted December 20, 2011 Yeaaah, because isn't what I want, what u said in other topics it only work in 1280 x 720. Link to comment
Xeno Posted December 20, 2011 Share Posted December 20, 2011 Yeaaah, because isn't what I want, what u said in other topics it only work in 1280 x 720. Mine should work with all resolutions. Link to comment
TAPL Posted December 20, 2011 Share Posted December 20, 2011 Yeaaah, because isn't what I want, what u said in other topics it only work in 1280 x 720. really? can you quote my post? Link to comment
drk Posted December 21, 2011 Author Share Posted December 21, 2011 Finally i've tried with (sres/yres)*sx, (sres/yres)*sy and it worked. ( local sx, sy = guiGetScreenSize() ) Anyone lock this post. 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