1
0
Fork 0

Change: Move OpenTTD version to intro viewport. (#14233)

This stops the length of the game version from affecting the main menu.
pull/14253/head
Peter Nelson 2025-05-11 20:01:22 +01:00 committed by GitHub
parent 03116ea878
commit b38527ca05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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);
}
}