Change town name language in scenario editor

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
boekabart
Transport Coordinator
Transport Coordinator
Posts: 333
Joined: 25 Aug 2005 09:44
Location: Eindhoven, Netherlands

Change town name language in scenario editor

Post by boekabart »

Proposed patch:

Allow changing town naming scheme in scenario editor.
It's just disabled there, and I haven't been able to find a good reason for it (though there might have been one, once).
It's very annoying: you make a landscape, only to find out then that the town naming scheme isn't the one you wanted.... Damn!

Diff:
http://boekabart.googlepages.com/TownNa ... or_r9.diff (2 lines only!!)

2 scenarios to show that there it actually works:
http://boekabart.googlepages.com/TownNameLangs.scn
http://boekabart.googlepages.com/TownsInThreeLangs.scn
boekabart
Transport Coordinator
Transport Coordinator
Posts: 333
Joined: 25 Aug 2005 09:44
Location: Eindhoven, Netherlands

Post by boekabart »

Updated the patch. It now includes also a GUI button (scenario editor only) to give a town a new random name with the current language set.
Attachments
Original random (english) name
Original random (english) name
townname1.png (27.24 KiB) Viewed 2507 times
After setting Turkish, and pressing Randomise
After setting Turkish, and pressing Randomise
townname3.png (27.36 KiB) Viewed 2507 times
TownNameLanguage_GUI_v3_r9988.diff
(4.27 KiB) Downloaded 151 times
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

I would suggest to rename the button to "randomise town name" instead, this could be interpreted as randomizing the whole town (whatever that would mean).
boekabart
Transport Coordinator
Transport Coordinator
Posts: 333
Joined: 25 Aug 2005 09:44
Location: Eindhoven, Netherlands

Post by boekabart »

Korenn wrote:I would suggest to rename the button to "randomise town name" instead, this could be interpreted as randomizing the whole town (whatever that would mean).
I was lazy and reused an existing Randomise string :) but, point taken, I'll add strings for the button text and tooltip.
boekabart
Transport Coordinator
Transport Coordinator
Posts: 333
Joined: 25 Aug 2005 09:44
Location: Eindhoven, Netherlands

Post by boekabart »

... so I updated it to have its own strings.
Attachments
TownGui4.png
TownGui4.png (27.25 KiB) Viewed 2377 times
TownNameLanguage_GUI_v4_r9996.diff
(6.76 KiB) Downloaded 139 times
boekabart
Transport Coordinator
Transport Coordinator
Posts: 333
Joined: 25 Aug 2005 09:44
Location: Eindhoven, Netherlands

Post by boekabart »

Diff did no longer apply to trunk, so here's an update, r10090.
Attachments
bb_TownNameLanguage_GUI_v4_r10090.diff
(6.56 KiB) Downloaded 118 times
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 57 guests