mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
Change: Move OpenTTD version to intro viewport. (#14233)
This stops the length of the game version from affecting the main menu.
This commit is contained in:
@@ -2195,7 +2195,8 @@ STR_VIDEO_DRIVER_ERROR_NO_HARDWARE_ACCELERATION :{WHITE}... no c
|
||||
STR_VIDEO_DRIVER_ERROR_HARDWARE_ACCELERATION_CRASH :{WHITE}... GPU driver crashed the game. Hardware acceleration disabled
|
||||
|
||||
# Intro window
|
||||
STR_INTRO_CAPTION :{WHITE}OpenTTD {REV}
|
||||
STR_INTRO_CAPTION :{WHITE}OpenTTD
|
||||
STR_INTRO_VERSION :OpenTTD {REV}
|
||||
|
||||
STR_INTRO_NEW_GAME :{BLACK}New Game
|
||||
STR_INTRO_LOAD_GAME :{BLACK}Load Game
|
||||
|
@@ -270,6 +270,9 @@ struct MainWindow : Window
|
||||
DrawSprite(sprite, PAL_NONE, off_x, ScaleGUITrad(50));
|
||||
off_x += GetSpriteSize(sprite).width + letter_spacing;
|
||||
}
|
||||
|
||||
int text_y = this->height - GetCharacterHeight(FS_NORMAL) * 2;
|
||||
DrawString(0, this->width - 1, text_y, STR_INTRO_VERSION, TC_WHITE, SA_CENTER);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user