spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * GUI functions and properties

Centre

(Formerly known as CentreGUI, which is now obsolete)

GUI.Centre()
Centres the specified GUI in the middle of the screen. Useful if you've been moving it around with SetPosition and just want to return it to the centre.

Example:

gControlpanel.Centre();
will centre the CONTROLPANEL GUI in the middle of the screen.

See Also: GUI.SetPosition


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.