From cd4076dc1bba6779038a8a2eabdf63ba95af0476 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 7 Jan 2016 12:49:38 -0600 Subject: [PATCH] Added $ check for language support for StaticTextSwitchable --- src/menu/optionmenuitems.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/menu/optionmenuitems.h b/src/menu/optionmenuitems.h index c63359f4b..3054847c1 100644 --- a/src/menu/optionmenuitems.h +++ b/src/menu/optionmenuitems.h @@ -32,6 +32,7 @@ ** */ #include "v_text.h" +#include "gstrings.h" void M_DrawConText (int color, int x, int y, const char *str); @@ -503,6 +504,7 @@ public: int Draw(FOptionMenuDescriptor *desc, int y, int indent, bool selected) { const char *txt = mCurrent? (const char*)mAltText : mLabel; + if (*txt == '$') txt = GStrings(txt + 1); int w = SmallFont->StringWidth(txt) * CleanXfac_1; int x = (screen->GetWidth() - w) / 2; screen->DrawText (SmallFont, mColor, x, y, txt, DTA_CleanNoMove_1, true, TAG_DONE);