add m_bUseAlternateText
This commit is contained in:
@@ -219,14 +219,13 @@ void BitmapText::DrawChars()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sText is UTF-8. If PREFSMAN->UseAlternateText is enabled, and not all
|
/* sText is UTF-8. If PREFSMAN->m_bUseAlternateText is enabled, and not all
|
||||||
* of the characters in sText are available in the font, sAlternateText
|
* of the characters in sText are available in the font, sAlternateText
|
||||||
* will be used instead. This is normally enabled; the option exists
|
* will be used instead. This is normally enabled; the option exists
|
||||||
* as a troubleshooting option (so should only be shown in a debug options
|
* as a troubleshooting option (so should only be shown in a debug options
|
||||||
* menu) for the case that a string isn't being displayed, to find out
|
* menu) for the case that a string isn't being displayed, to find out
|
||||||
* which character is causing problems. If there are unavailable characters
|
* which character is causing problems. If there are unavailable characters
|
||||||
* in sAlternateText, too, just use sText.
|
* in sAlternateText, too, just use sText. */
|
||||||
* XXX: implement PREFSMAN->UseAlternateText */
|
|
||||||
void BitmapText::SetText( CString sText, CString sAlternateText )
|
void BitmapText::SetText( CString sText, CString sAlternateText )
|
||||||
{
|
{
|
||||||
ASSERT( m_pFont );
|
ASSERT( m_pFont );
|
||||||
@@ -250,6 +249,8 @@ bool BitmapText::StringWillUseAlternate(CString sText, CString sAlternateText) c
|
|||||||
{
|
{
|
||||||
ASSERT( m_pFont );
|
ASSERT( m_pFont );
|
||||||
|
|
||||||
|
if(!PREFSMAN->m_bUseAlternateText) return false;
|
||||||
|
|
||||||
/* Can't use the alternate if there isn't one. */
|
/* Can't use the alternate if there isn't one. */
|
||||||
if(!sAlternateText.size()) return false;
|
if(!sAlternateText.size()) return false;
|
||||||
|
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ PrefsManager::PrefsManager()
|
|||||||
m_bShowDontDie = true;
|
m_bShowDontDie = true;
|
||||||
m_bShowSelectGroup = true;
|
m_bShowSelectGroup = true;
|
||||||
m_bShowTranslations = true;
|
m_bShowTranslations = true;
|
||||||
|
m_bUseAlternateText = true;
|
||||||
m_bArcadeOptionsNavigation = false;
|
m_bArcadeOptionsNavigation = false;
|
||||||
m_iUnloadTextureDelaySeconds = 0; // disabled 60*30; // 30 mins
|
m_iUnloadTextureDelaySeconds = 0; // disabled 60*30; // 30 mins
|
||||||
m_bCoinOpMode = false;
|
m_bCoinOpMode = false;
|
||||||
@@ -146,6 +147,7 @@ void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
|
|||||||
ini.GetValueB( "Options", "Caution", m_bShowDontDie );
|
ini.GetValueB( "Options", "Caution", m_bShowDontDie );
|
||||||
ini.GetValueB( "Options", "SelectGroup", m_bShowSelectGroup );
|
ini.GetValueB( "Options", "SelectGroup", m_bShowSelectGroup );
|
||||||
ini.GetValueB( "Options", "ShowTranslations", m_bShowTranslations );
|
ini.GetValueB( "Options", "ShowTranslations", m_bShowTranslations );
|
||||||
|
ini.GetValueB( "Options", "UseAlternateText", m_bUseAlternateText );
|
||||||
ini.GetValueB( "Options", "ArcadeOptionsNavigation", m_bArcadeOptionsNavigation );
|
ini.GetValueB( "Options", "ArcadeOptionsNavigation", m_bArcadeOptionsNavigation );
|
||||||
ini.GetValue ( "Options", "DWIPath", m_DWIPath );
|
ini.GetValue ( "Options", "DWIPath", m_DWIPath );
|
||||||
ini.GetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
|
ini.GetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
|
||||||
@@ -219,6 +221,7 @@ void PrefsManager::SaveGlobalPrefsToDisk()
|
|||||||
ini.SetValueB( "Options", "Caution", m_bShowDontDie );
|
ini.SetValueB( "Options", "Caution", m_bShowDontDie );
|
||||||
ini.SetValueB( "Options", "SelectGroup", m_bShowSelectGroup );
|
ini.SetValueB( "Options", "SelectGroup", m_bShowSelectGroup );
|
||||||
ini.SetValueB( "Options", "ShowTranslations", m_bShowTranslations );
|
ini.SetValueB( "Options", "ShowTranslations", m_bShowTranslations );
|
||||||
|
ini.SetValueB( "Options", "UseAlternateText", m_bUseAlternateText );
|
||||||
ini.SetValueB( "Options", "ArcadeOptionsNavigation", m_bArcadeOptionsNavigation );
|
ini.SetValueB( "Options", "ArcadeOptionsNavigation", m_bArcadeOptionsNavigation );
|
||||||
ini.SetValue ( "Options", "DWIPath", m_DWIPath );
|
ini.SetValue ( "Options", "DWIPath", m_DWIPath );
|
||||||
ini.SetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
|
ini.SetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ public:
|
|||||||
bool m_bDelayedEscape;
|
bool m_bDelayedEscape;
|
||||||
bool m_bInstructions, m_bShowDontDie, m_bShowSelectGroup;
|
bool m_bInstructions, m_bShowDontDie, m_bShowSelectGroup;
|
||||||
bool m_bShowTranslations;
|
bool m_bShowTranslations;
|
||||||
|
bool m_bUseAlternateText;
|
||||||
bool m_bArcadeOptionsNavigation;
|
bool m_bArcadeOptionsNavigation;
|
||||||
bool m_bCoinOpMode;
|
bool m_bCoinOpMode;
|
||||||
enum { NEVER, ALWAYS, ABC_ONLY } m_MusicWheelUsesSections;
|
enum { NEVER, ALWAYS, ABC_ONLY } m_MusicWheelUsesSections;
|
||||||
|
|||||||
Reference in New Issue
Block a user