February 20, 2025, 08:03:40 PM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Forum rules
-
please read before posting, it can save you a lot of time.
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Center Caption Window
« previous
next »
Pages: [
1
]
Print
Author
Topic: Center Caption Window (Read 2994 times)
0 Members and 1 Guest are viewing this topic.
TheDerman
Regular poster
Karma: 0
Offline
Posts: 225
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
Gender:
Posts: 5683
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.
TheDerman
Regular poster
Karma: 0
Offline
Posts: 225
Re: Center Caption Window
«
Reply #2 on:
December 09, 2005, 09:26:53 AM »
Perfect. Thank you.
Logged
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Center Caption Window