Jump to content

How to do........


drk

Recommended Posts

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

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

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
Link to comment

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...