Jump to content

Centering GUI Window.


Karuzo

Recommended Posts

Posted

Hey Guys,

so i was making a taxi job, and im on the GUI now.

So whats my problem ?

I have centered the window and i just asked myself if i have to set the position of the Labels,Buttons, etc... too ?

Or will it automatically be on the position as the window ?

Thanks.

Posted

Nearly all gui element creation functions (guiCreateButton, guiCreateLabel, etc) have "parent" argument. If you set that to window, then you don't need to set the positions of the lables, buttons, etc again.

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