Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: tidyhunger on August 28, 2016, 04:15:44 AM

Title: How do I edit the exit text when exiting?
Post by: tidyhunger on August 28, 2016, 04:15:44 AM
Hello, I am wanting to edit the text shown when pressing escape to exit the attract-mode front-end. At the moment, it shows "Exit Attract-Mode?" - I'm wanting to change this.

What file am I to edit to be able to do this?

Thanks for your help!
Title: Re: How do I edit the exit text when exiting?
Post by: hermine.potter on August 28, 2016, 10:13:08 PM
@tidyhunger
it seems that you've set 'english' as default, haven't you?!

Edit this file : C:\attract\language\en.msg

Set this text in line #5:
Exit Attract-Mode?;Is this really my exit text?
Title: Re: How do I edit the exit text when exiting?
Post by: tidyhunger on August 29, 2016, 12:15:15 AM
Oh wow, thanks for that! Would you be able to tell me how the default text comes into play? It doesn't seem to be in the en.msg file.
Title: Re: How do I edit the exit text when exiting?
Post by: hermine.potter on August 29, 2016, 03:19:18 AM
The text 'Is this really my exit text?' was an example of me ^-^
just modify it.

I think, it's hard-coded in AM itself (but I'm not sure).
If you look at AM-sourcecode, there is in main.cpp the line #445 with text "Exit Attract-Mode?",.

Probably it works like this:
if language xyz123 is selected & there is no translation of a specific command,
then so use default translation of AM itself (hard-coded in AM itself).