Made the buttons in the save screen left-aligned.

The center-alignment was based on absolute positions that assumed
English text and therefore could not be maintained for other languages.
This commit is contained in:
Layla Marchant 2021-01-29 10:14:21 -05:00
parent ebb76a1cd5
commit e993034e63
No known key found for this signature in database
GPG Key ID: 52FB5C20A8336782
1 changed files with 3 additions and 3 deletions

View File

@ -352,9 +352,9 @@ void save_createSurface(SDL_Surface *savesSurface, int clickedSlot)
gfx_drawRect(savesSurface, 5, 265, 100, 25, 0x00, 0x99, 0x00); gfx_drawRect(savesSurface, 5, 265, 100, 25, 0x00, 0x99, 0x00);
gfx_drawRect(savesSurface, 125, 265, 100, 25, 0x99, 0x99, 0x00); gfx_drawRect(savesSurface, 125, 265, 100, 25, 0x99, 0x99, 0x00);
gfx_drawRect(savesSurface, 243, 265, 100, 25, 0x99, 0x00, 0x00); gfx_drawRect(savesSurface, 243, 265, 100, 25, 0x99, 0x00, 0x00);
gfx_renderUnicode(_("SAVE"), 40, 270, FONT_WHITE, 0, savesSurface); gfx_renderUnicode(_("SAVE"), 10, 270, FONT_WHITE, 0, savesSurface);
gfx_renderUnicode(_("CANCEL"), 150, 270, FONT_WHITE, 0, savesSurface); gfx_renderUnicode(_("CANCEL"), 130, 270, FONT_WHITE, 0, savesSurface);
gfx_renderUnicode(_("DELETE"), 270, 270, FONT_WHITE, 0, savesSurface); gfx_renderUnicode(_("DELETE"), 248, 270, FONT_WHITE, 0, savesSurface);
gfx_renderUnicode(_("SAVE will save the game"), 17, 200, FONT_WHITE, 0, savesSurface); gfx_renderUnicode(_("SAVE will save the game"), 17, 200, FONT_WHITE, 0, savesSurface);
gfx_renderUnicode(_("CANCEL will unselect that slot"), 17, 220, FONT_WHITE, 0, savesSurface); gfx_renderUnicode(_("CANCEL will unselect that slot"), 17, 220, FONT_WHITE, 0, savesSurface);
gfx_renderUnicode(_("DELETE will remove the save"), 17, 240, FONT_WHITE, 0, savesSurface); gfx_renderUnicode(_("DELETE will remove the save"), 17, 240, FONT_WHITE, 0, savesSurface);