support aliases in mini menu text
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
#include "ScreenDimensions.h"
|
#include "ScreenDimensions.h"
|
||||||
#include "CommonMetrics.h"
|
#include "CommonMetrics.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
|
#include "FontCharAliases.h"
|
||||||
|
|
||||||
const AutoScreenMessage SM_GoToOK;
|
const AutoScreenMessage SM_GoToOK;
|
||||||
const AutoScreenMessage SM_GoToCancel;
|
const AutoScreenMessage SM_GoToCancel;
|
||||||
@@ -55,6 +56,8 @@ void ScreenMiniMenu::Init( const Menu* pDef, ScreenMessage SM_SendOnOK, ScreenMe
|
|||||||
OptionRowDefinition &ord = vDefs[r];
|
OptionRowDefinition &ord = vDefs[r];
|
||||||
|
|
||||||
ord.name = mr.sName;
|
ord.name = mr.sName;
|
||||||
|
FontCharAliases::ReplaceMarkers( ord.name ); // Allow special characters
|
||||||
|
|
||||||
if( mr.bEnabled )
|
if( mr.bEnabled )
|
||||||
{
|
{
|
||||||
ord.m_vEnabledForPlayers.clear();
|
ord.m_vEnabledForPlayers.clear();
|
||||||
@@ -72,6 +75,9 @@ void ScreenMiniMenu::Init( const Menu* pDef, ScreenMessage SM_SendOnOK, ScreenMe
|
|||||||
ord.m_bExportOnChange = false;
|
ord.m_bExportOnChange = false;
|
||||||
|
|
||||||
ord.choices = mr.choices;
|
ord.choices = mr.choices;
|
||||||
|
|
||||||
|
FOREACH( CString, ord.choices, c )
|
||||||
|
FontCharAliases::ReplaceMarkers( *c ); // Allow special characters
|
||||||
}
|
}
|
||||||
|
|
||||||
vector<OptionRowHandler*> vHands;
|
vector<OptionRowHandler*> vHands;
|
||||||
|
|||||||
Reference in New Issue
Block a user