Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-29-2013, 10:37 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Center GUI per screenwidth

I'm having an extremely hard time centering a gui control per screenwidth, so when screen width changes it's still centered. I know the GraalControl resize, and I'm using it.

The problem is just finding how to center it. I can get it close to center, but then when I resize Graal's window it gets all screwed up, even with the same center script. I've tried a multitude of things, but this is the most recent....

PHP Code:
= (screenwidth getimgwidth("roak_mainmenu_backdrop1.png")) - 230
The above is a bit unnecessary, but again, I've tried many things, including just splitting screen width subtracting a number. It just keeps "offsetting" from center as I change Graal's window size.....

Am I missing something?
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.