Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strife: fix "Name Your Character" menu #1203

Merged
merged 1 commit into from
Jun 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/strife/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,10 @@ void M_ReadSaveStrings(void)
void M_DrawNameChar(void)
{
int i;
const char *Name_Char = DEH_String("Name Your Character"); // [crispy]

M_WriteText(72, 28, DEH_String("Name Your Character"));
// [crispy] print "Name Your Character" centered and slightly higher
M_WriteText(ORIGWIDTH/2-M_StringWidth(Name_Char)/2, NameCharDef.y/2, Name_Char);

for (i = 0;i < load_end; i++)
{
Expand Down Expand Up @@ -3193,7 +3195,7 @@ void M_Init (void)

LoadDef_x = (ORIGWIDTH - SHORT(patchl->width)) / 2 + SHORT(patchl->leftoffset);
SaveDef_x = (ORIGWIDTH - SHORT(patchs->width)) / 2 + SHORT(patchs->leftoffset);
LoadDef.x = SaveDef.x = (ORIGWIDTH - 24 * 8) / 2 + SHORT(patchm->leftoffset);
NameCharDef.x = LoadDef.x = SaveDef.x = (ORIGWIDTH - 24 * 8) / 2 + SHORT(patchm->leftoffset);

captionheight = MAX(SHORT(patchl->height), SHORT(patchs->height));

Expand All @@ -3207,7 +3209,7 @@ void M_Init (void)
LoadDef_y = vstep + captionheight - SHORT(patchl->height) + SHORT(patchl->topoffset);
SaveDef_y = vstep + captionheight - SHORT(patchs->height) + SHORT(patchs->topoffset);
LoadDef.y = SaveDef.y = vstep + captionheight + vstep + SHORT(patchm->topoffset) - 19; // [crispy] moved up, so savegame date/time may appear above status bar
MouseDef.y = LoadDef.y;
NameCharDef.y = MouseDef.y = LoadDef.y;
}
}

Expand Down
Loading