Changeset - r1717:4994194cdb82
[Not reviewed]
master
0 2 0
Darkvater - 19 years ago 2005-04-21 16:20:38
darkvater@openttd.org
(svn r2221) - Fix: "Map size" is two words. Also draw the string right-aligned in the intro gui so it doesn't matter how long it is in other languages.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
intro_gui.c
Show inline comments
 
@@ -47,25 +47,25 @@ extern void HandleOnEditTextCancel(void)
 

	
 
static void SelectGameWndProc(Window *w, WindowEvent *e)
 
{
 
	/* We do +/- 6 for the map_xy because 64 is 2^6, but it is the lowest available element */
 
	static const StringID mapsizes[] = {STR_64, STR_128, STR_256, STR_512, STR_1024, STR_2048, INVALID_STRING_ID};
 

	
 
	switch (e->event) {
 
	case WE_PAINT:
 
		w->click_state = (w->click_state & ~(1 << 14) & ~(0xF << 6)) | (1 << (_opt_newgame.landscape + 6)) | (1 << 14);
 
		SetDParam(0, STR_6801_EASY + _opt_newgame.diff_level);
 
		DrawWindowWidgets(w);
 

	
 
		DrawString(170, 121, STR_MAPSIZE, 0);
 
		DrawStringRightAligned(216, 121, STR_MAPSIZE, 0);
 
		DrawString(223, 121, mapsizes[_patches.map_x - 6], 0x10);
 
		DrawString(270, 121, STR_BY, 0);
 
		DrawString(283, 121, mapsizes[_patches.map_y - 6], 0x10);
 
		break;
 

	
 
	case WE_CLICK:
 
		switch (e->click.widget) {
 
		case 2: DoCommandP(0, 0, 0, NULL, CMD_START_NEW_GAME); break;
 
		case 3: ShowSaveLoadDialog(SLD_LOAD_GAME); break;
 
		case 4: DoCommandP(0, InteractiveRandom(), 0, NULL, CMD_CREATE_SCENARIO); break;
 
		case 5: ShowSaveLoadDialog(SLD_LOAD_SCENARIO); break;
 
		case 6: case 7: case 8: case 9:
lang/english.txt
Show inline comments
 
@@ -322,25 +322,25 @@ STR_013F_TOTAL_CAPACITY                 
 
STR_0140_NEW_GAME                                               :{BLACK}New Game
 
STR_0141_LOAD_GAME                                              :{BLACK}Load Game
 
STR_0142_TUTORIAL_DEMONSTRATION                                 :{BLACK}Tutorial / Demonstration
 
STR_SINGLE_PLAYER                                               :{BLACK}Single player
 
STR_MULTIPLAYER                                                 :{BLACK}Multiplayer
 

	
 
STR_64                                                          :64
 
STR_128                                                         :128
 
STR_256                                                         :256
 
STR_512                                                         :512
 
STR_1024                                                        :1024
 
STR_2048                                                        :2048
 
STR_MAPSIZE                                                     :{BLACK}Mapsize:
 
STR_MAPSIZE                                                     :{BLACK}Map size:
 
STR_BY                                                          :{BLACK}*
 
STR_0148_GAME_OPTIONS                                           :{BLACK}Game Options
 

	
 
STR_0150_SOMEONE                                                :someone{SKIP}{SKIP}
 
STR_0151_MAP_OF_WORLD                                           :Map of world
 
STR_0152_TOWN_DIRECTORY                                         :Town directory
 
STR_0153_SUBSIDIES                                              :Subsidies
 

	
 
############ range for menu	starts
 
STR_0154_OPERATING_PROFIT_GRAPH                                 :Operating profit graph
 
STR_0155_INCOME_GRAPH                                           :Income graph
 
STR_0156_DELIVERED_CARGO_GRAPH                                  :Delivered cargo graph
0 comments (0 inline, 0 general)