Jump to content

How to know ScreenPosition?


xTravax

Recommended Posts

keeping in mind that different people use different resolutions, use the function

guiGetScreenSize() 

say you want that area to be 300px wide and 70px from the bottom, then you use

  
x,y=guiGetScreenSize(); 
elementPositionX = x / 2 - 300 / 2; 
elementPositionY = y - 70; 
  
guiCreateLabel ( elementPositionX , elementPositionY , 300, 70, "at emt they serve it up", false ); 
  

and your final question: the wiki

most of the time i look it up too just to answer a question here

bitch_please.jpg

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