Jump to content

How to do........


drk

Recommended Posts

Posted

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.

Posted

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.

Posted (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 by Guest
Posted
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.

Posted
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?

Posted

Finally i've tried with (sres/yres)*sx, (sres/yres)*sy and it worked. ( local sx, sy = guiGetScreenSize() )

Anyone lock this post.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...