Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Center Caption Window  (Read 2994 times)

0 Members and 1 Guest are viewing this topic.

TheDerman

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 225
    • View Profile
Center Caption Window
« on: December 09, 2005, 08:47:22 AM »

Hello,

I've managed to move the caption window to the top of the screen to an X and Y position, which is fine, but the text is not centred, so a long caption runs from the centre to the right.

I guess I need to center the actual caption window but I cannot find a way to do this. Surely it is a very easy thing...???

HELP!!!

Thanks.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Center Caption Window
« Reply #1 on: December 09, 2005, 09:20:49 AM »

I think the easiest way is to place the caption at X coordinate 0, and set it's width to the horizontal resolution of your game. That way the capton line will cover the entire width of the screen, and since the text inside is centered, it will be also centered on screen.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

TheDerman

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 225
    • View Profile
Re: Center Caption Window
« Reply #2 on: December 09, 2005, 09:26:53 AM »

Perfect.  Thank you.
Logged
 

Page created in 0.253 seconds with 23 queries.