XToThemedString -> XToLocalizedString

This commit is contained in:
Chris Danford
2006-01-07 04:11:29 +00:00
parent b2c86171d1
commit 44225ad379
61 changed files with 253 additions and 236 deletions
+4 -4
View File
@@ -2750,7 +2750,7 @@ CString GameManager::StepsTypeToString( StepsType st )
return StepsTypes[st].name;
}
CString GameManager::StepsTypeToThemedString( StepsType st )
CString GameManager::StepsTypeToLocalizedString( StepsType st )
{
CString s = StepsTypeToString( st );
if( THEME->HasMetric( "StepsType", s ) )
@@ -2759,7 +2759,7 @@ CString GameManager::StepsTypeToThemedString( StepsType st )
return s;
}
CString GameManager::StyleToThemedString( const Style* style )
CString GameManager::StyleToLocalizedString( const Style* style )
{
CString s = style->m_szName;
s = Capitalize( s );
@@ -2854,7 +2854,7 @@ class LunaGameManager: public Luna<GameManager>
public:
LunaGameManager() { LUA->Register( Register ); }
static int StepsTypeToThemedString( T* p, lua_State *L ) { lua_pushstring(L, p->StepsTypeToThemedString((StepsType)IArg(1)) ); return 1; }
static int StepsTypeToLocalizedString( T* p, lua_State *L ) { lua_pushstring(L, p->StepsTypeToLocalizedString((StepsType)IArg(1)) ); return 1; }
static int GetFirstStepsTypeForCurrentGame( T* p, lua_State *L )
{
vector<StepsType> vstAddTo;
@@ -2867,7 +2867,7 @@ public:
static void Register(lua_State *L)
{
ADD_METHOD( StepsTypeToThemedString );
ADD_METHOD( StepsTypeToLocalizedString );
ADD_METHOD( GetFirstStepsTypeForCurrentGame );
Luna<T>::Register( L );