Rename XToString2 to XToString.
This commit is contained in:
@@ -37,7 +37,7 @@ static const char *HorizAlignNames[] = {
|
|||||||
"Center",
|
"Center",
|
||||||
"Right"
|
"Right"
|
||||||
};
|
};
|
||||||
XToString2( HorizAlign );
|
XToString( HorizAlign );
|
||||||
LuaXType( HorizAlign );
|
LuaXType( HorizAlign );
|
||||||
|
|
||||||
static const char *VertAlignNames[] = {
|
static const char *VertAlignNames[] = {
|
||||||
@@ -45,7 +45,7 @@ static const char *VertAlignNames[] = {
|
|||||||
"Middle",
|
"Middle",
|
||||||
"Bottom"
|
"Bottom"
|
||||||
};
|
};
|
||||||
XToString2( VertAlign );
|
XToString( VertAlign );
|
||||||
LuaXType( VertAlign );
|
LuaXType( VertAlign );
|
||||||
|
|
||||||
void Actor::SetBGMTime( float fTime, float fBeat )
|
void Actor::SetBGMTime( float fTime, float fBeat )
|
||||||
|
|||||||
@@ -606,7 +606,7 @@ static const char *FileTypeNames[] = {
|
|||||||
"Lua",
|
"Lua",
|
||||||
"Model",
|
"Model",
|
||||||
};
|
};
|
||||||
XToString2( FileType );
|
XToString( FileType );
|
||||||
LuaXType( FileType );
|
LuaXType( FileType );
|
||||||
|
|
||||||
FileType ActorUtil::GetFileType( const RString &sPath )
|
FileType ActorUtil::GetFileType( const RString &sPath )
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ const char *CodeNames[] = {
|
|||||||
"CancelAllPlayerOptions",
|
"CancelAllPlayerOptions",
|
||||||
"BackInEventMode",
|
"BackInEventMode",
|
||||||
};
|
};
|
||||||
XToString2( Code );
|
XToString( Code );
|
||||||
|
|
||||||
static CodeItem g_CodeItems[NUM_Code];
|
static CodeItem g_CodeItems[NUM_Code];
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ static const char *ControllerStateButtonNames[] = {
|
|||||||
"Left",
|
"Left",
|
||||||
"Right",
|
"Right",
|
||||||
};
|
};
|
||||||
XToString2( ControllerStateButton );
|
XToString( ControllerStateButton );
|
||||||
|
|
||||||
static const DeviceButton ControllerStateButtonToDeviceButton[] = {
|
static const DeviceButton ControllerStateButtonToDeviceButton[] = {
|
||||||
JOY_UP,
|
JOY_UP,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ static const char *CourseTypeNames[] = {
|
|||||||
"Endless",
|
"Endless",
|
||||||
"Survival",
|
"Survival",
|
||||||
};
|
};
|
||||||
XToString2( CourseType );
|
XToString( CourseType );
|
||||||
XToLocalizedString( CourseType );
|
XToLocalizedString( CourseType );
|
||||||
LuaXType( CourseType );
|
LuaXType( CourseType );
|
||||||
LuaFunction( CourseTypeToLocalizedString, CourseTypeToLocalizedString( Enum::Check<CourseType>( L, 1 ) ) );
|
LuaFunction( CourseTypeToLocalizedString, CourseTypeToLocalizedString( Enum::Check<CourseType>( L, 1 ) ) );
|
||||||
@@ -38,7 +38,7 @@ static const char *SongSortNames[] = {
|
|||||||
"TopGrades",
|
"TopGrades",
|
||||||
"LowestGrades",
|
"LowestGrades",
|
||||||
};
|
};
|
||||||
XToString2( SongSort );
|
XToString( SongSort );
|
||||||
XToLocalizedString( SongSort );
|
XToLocalizedString( SongSort );
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ static const char *MonthNames[] =
|
|||||||
"November",
|
"November",
|
||||||
"December",
|
"December",
|
||||||
};
|
};
|
||||||
XToString2( Month );
|
XToString( Month );
|
||||||
XToLocalizedString( Month );
|
XToLocalizedString( Month );
|
||||||
LuaXType( Month );
|
LuaXType( Month );
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ static const char *DifficultyNames[] = {
|
|||||||
"Challenge",
|
"Challenge",
|
||||||
"Edit",
|
"Edit",
|
||||||
};
|
};
|
||||||
XToString2( Difficulty );
|
XToString( Difficulty );
|
||||||
XToLocalizedString( Difficulty );
|
XToLocalizedString( Difficulty );
|
||||||
LuaXType( Difficulty );
|
LuaXType( Difficulty );
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ static const char *EditMenuRowNames[] = {
|
|||||||
"SourceSteps",
|
"SourceSteps",
|
||||||
"Action"
|
"Action"
|
||||||
};
|
};
|
||||||
XToString2( EditMenuRow );
|
XToString( EditMenuRow );
|
||||||
XToLocalizedString( EditMenuRow );
|
XToLocalizedString( EditMenuRow );
|
||||||
|
|
||||||
static const char *EditMenuActionNames[] = {
|
static const char *EditMenuActionNames[] = {
|
||||||
@@ -33,7 +33,7 @@ static const char *EditMenuActionNames[] = {
|
|||||||
"Create",
|
"Create",
|
||||||
"Practice",
|
"Practice",
|
||||||
};
|
};
|
||||||
XToString2( EditMenuAction );
|
XToString( EditMenuAction );
|
||||||
XToLocalizedString( EditMenuAction );
|
XToLocalizedString( EditMenuAction );
|
||||||
StringToX( EditMenuAction );
|
StringToX( EditMenuAction );
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ namespace Enum
|
|||||||
|
|
||||||
const RString &EnumToString( int iVal, int iMax, const char **szNameArray, auto_ptr<RString> *pNameCache ); // XToString helper
|
const RString &EnumToString( int iVal, int iMax, const char **szNameArray, auto_ptr<RString> *pNameCache ); // XToString helper
|
||||||
|
|
||||||
#define XToString2(X) \
|
#define XToString(X) \
|
||||||
COMPILE_ASSERT( NUM_##X == ARRAYLEN(X##Names) ); \
|
COMPILE_ASSERT( NUM_##X == ARRAYLEN(X##Names) ); \
|
||||||
const RString& X##ToString( X x ) \
|
const RString& X##ToString( X x ) \
|
||||||
{ \
|
{ \
|
||||||
@@ -61,7 +61,7 @@ const RString &EnumToString( int iVal, int iMax, const char **szNameArray, auto_
|
|||||||
return EnumToString( x, NUM_##X, X##Names, as_##X##Name ); \
|
return EnumToString( x, NUM_##X, X##Names, as_##X##Name ); \
|
||||||
} \
|
} \
|
||||||
namespace StringConversion { template<> RString ToString<X>( const X &value ) { return X##ToString(value); } }
|
namespace StringConversion { template<> RString ToString<X>( const X &value ) { return X##ToString(value); } }
|
||||||
#define XToString(X, CNT) XToString2(X)
|
#define XToString2(X) XToString(X)
|
||||||
|
|
||||||
#define XToLocalizedString(X) \
|
#define XToLocalizedString(X) \
|
||||||
const RString &X##ToLocalizedString( X x ) \
|
const RString &X##ToLocalizedString( X x ) \
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ static const char *RadarCategoryNames[] = {
|
|||||||
"Hands",
|
"Hands",
|
||||||
"Rolls"
|
"Rolls"
|
||||||
};
|
};
|
||||||
XToString2( RadarCategory );
|
XToString( RadarCategory );
|
||||||
XToLocalizedString( RadarCategory );
|
XToLocalizedString( RadarCategory );
|
||||||
LuaFunction( RadarCategoryToLocalizedString, RadarCategoryToLocalizedString(Enum::Check<RadarCategory>(L, 1)) );
|
LuaFunction( RadarCategoryToLocalizedString, RadarCategoryToLocalizedString(Enum::Check<RadarCategory>(L, 1)) );
|
||||||
LuaXType( RadarCategory );
|
LuaXType( RadarCategory );
|
||||||
@@ -58,7 +58,7 @@ static const char *PlayModeNames[] = {
|
|||||||
"Battle",
|
"Battle",
|
||||||
"Rave",
|
"Rave",
|
||||||
};
|
};
|
||||||
XToString2( PlayMode );
|
XToString( PlayMode );
|
||||||
XToLocalizedString( PlayMode );
|
XToLocalizedString( PlayMode );
|
||||||
StringToX( PlayMode );
|
StringToX( PlayMode );
|
||||||
LuaFunction( PlayModeToLocalizedString, PlayModeToLocalizedString(Enum::Check<PlayMode>(L, 1)) );
|
LuaFunction( PlayModeToLocalizedString, PlayModeToLocalizedString(Enum::Check<PlayMode>(L, 1)) );
|
||||||
@@ -79,7 +79,7 @@ static const char *RankingCategoryNames[] = {
|
|||||||
"c",
|
"c",
|
||||||
"d",
|
"d",
|
||||||
};
|
};
|
||||||
XToString2( RankingCategory );
|
XToString( RankingCategory );
|
||||||
StringToX( RankingCategory );
|
StringToX( RankingCategory );
|
||||||
|
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ static const char *PlayerControllerNames[] = {
|
|||||||
"Autoplay",
|
"Autoplay",
|
||||||
"Cpu",
|
"Cpu",
|
||||||
};
|
};
|
||||||
XToString2( PlayerController );
|
XToString( PlayerController );
|
||||||
StringToX( PlayerController );
|
StringToX( PlayerController );
|
||||||
XToLocalizedString( PlayerController );
|
XToLocalizedString( PlayerController );
|
||||||
LuaXType( PlayerController );
|
LuaXType( PlayerController );
|
||||||
@@ -99,7 +99,7 @@ static const char *CoinModeNames[] = {
|
|||||||
"Pay",
|
"Pay",
|
||||||
"Free",
|
"Free",
|
||||||
};
|
};
|
||||||
XToString2( CoinMode );
|
XToString( CoinMode );
|
||||||
StringToX( CoinMode );
|
StringToX( CoinMode );
|
||||||
LuaXType( CoinMode );
|
LuaXType( CoinMode );
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ static const char *PremiumNames[] = {
|
|||||||
"Double",
|
"Double",
|
||||||
"Joint",
|
"Joint",
|
||||||
};
|
};
|
||||||
XToString2( Premium );
|
XToString( Premium );
|
||||||
StringToX( Premium );
|
StringToX( Premium );
|
||||||
LuaXType( Premium );
|
LuaXType( Premium );
|
||||||
|
|
||||||
@@ -134,7 +134,7 @@ static const char *SortOrderNames[] = {
|
|||||||
"Endless",
|
"Endless",
|
||||||
"Roulette",
|
"Roulette",
|
||||||
};
|
};
|
||||||
XToString2( SortOrder );
|
XToString( SortOrder );
|
||||||
StringToX( SortOrder );
|
StringToX( SortOrder );
|
||||||
LuaXType( SortOrder );
|
LuaXType( SortOrder );
|
||||||
|
|
||||||
@@ -150,7 +150,7 @@ static const char *TapNoteScoreNames[] = {
|
|||||||
"W2",
|
"W2",
|
||||||
"W1",
|
"W1",
|
||||||
};
|
};
|
||||||
XToString2( TapNoteScore );
|
XToString( TapNoteScore );
|
||||||
LuaXType( TapNoteScore );
|
LuaXType( TapNoteScore );
|
||||||
TapNoteScore StringToTapNoteScore( const RString &s )
|
TapNoteScore StringToTapNoteScore( const RString &s )
|
||||||
{
|
{
|
||||||
@@ -183,7 +183,7 @@ static const char *HoldNoteScoreNames[] = {
|
|||||||
"LetGo",
|
"LetGo",
|
||||||
"Held",
|
"Held",
|
||||||
};
|
};
|
||||||
XToString2( HoldNoteScore );
|
XToString( HoldNoteScore );
|
||||||
LuaXType( HoldNoteScore );
|
LuaXType( HoldNoteScore );
|
||||||
HoldNoteScore StringToHoldNoteScore( const RString &s )
|
HoldNoteScore StringToHoldNoteScore( const RString &s )
|
||||||
{
|
{
|
||||||
@@ -209,7 +209,7 @@ static const char *MemoryCardStateNames[] = {
|
|||||||
"removed",
|
"removed",
|
||||||
"none",
|
"none",
|
||||||
};
|
};
|
||||||
XToString2( MemoryCardState );
|
XToString( MemoryCardState );
|
||||||
|
|
||||||
|
|
||||||
static const char *PerDifficultyAwardNames[] = {
|
static const char *PerDifficultyAwardNames[] = {
|
||||||
@@ -224,7 +224,7 @@ static const char *PerDifficultyAwardNames[] = {
|
|||||||
"Percent90W3",
|
"Percent90W3",
|
||||||
"Percent100W3",
|
"Percent100W3",
|
||||||
};
|
};
|
||||||
XToString2( PerDifficultyAward );
|
XToString( PerDifficultyAward );
|
||||||
XToLocalizedString( PerDifficultyAward );
|
XToLocalizedString( PerDifficultyAward );
|
||||||
StringToX( PerDifficultyAward );
|
StringToX( PerDifficultyAward );
|
||||||
LuaFunction( PerDifficultyAwardToLocalizedString, PerDifficultyAwardToLocalizedString(Enum::Check<PerDifficultyAward>(L, 1)) );
|
LuaFunction( PerDifficultyAwardToLocalizedString, PerDifficultyAwardToLocalizedString(Enum::Check<PerDifficultyAward>(L, 1)) );
|
||||||
@@ -246,7 +246,7 @@ static const char *PeakComboAwardNames[] = {
|
|||||||
"Peak9000Combo",
|
"Peak9000Combo",
|
||||||
"Peak10000Combo",
|
"Peak10000Combo",
|
||||||
};
|
};
|
||||||
XToString2( PeakComboAward );
|
XToString( PeakComboAward );
|
||||||
XToLocalizedString( PeakComboAward );
|
XToLocalizedString( PeakComboAward );
|
||||||
StringToX( PeakComboAward );
|
StringToX( PeakComboAward );
|
||||||
LuaFunction( PeakComboAwardToLocalizedString, PeakComboAwardToLocalizedString(Enum::Check<PeakComboAward>(L, 1)) );
|
LuaFunction( PeakComboAwardToLocalizedString, PeakComboAwardToLocalizedString(Enum::Check<PeakComboAward>(L, 1)) );
|
||||||
@@ -304,7 +304,7 @@ static const char *StyleTypeNames[] = {
|
|||||||
"OnePlayerTwoSides",
|
"OnePlayerTwoSides",
|
||||||
"TwoPlayersSharedSides",
|
"TwoPlayersSharedSides",
|
||||||
};
|
};
|
||||||
XToString2( StyleType );
|
XToString( StyleType );
|
||||||
StringToX( StyleType );
|
StringToX( StyleType );
|
||||||
LuaXType( StyleType );
|
LuaXType( StyleType );
|
||||||
|
|
||||||
@@ -314,7 +314,7 @@ static const char *GoalTypeNames[] = {
|
|||||||
"Time",
|
"Time",
|
||||||
"None",
|
"None",
|
||||||
};
|
};
|
||||||
XToString2( GoalType );
|
XToString( GoalType );
|
||||||
StringToX( GoalType );
|
StringToX( GoalType );
|
||||||
LuaXType( GoalType );
|
LuaXType( GoalType );
|
||||||
|
|
||||||
@@ -324,7 +324,7 @@ static const char *EditModeNames[] = {
|
|||||||
"Home",
|
"Home",
|
||||||
"Full"
|
"Full"
|
||||||
};
|
};
|
||||||
XToString2( EditMode );
|
XToString( EditMode );
|
||||||
StringToX( EditMode );
|
StringToX( EditMode );
|
||||||
LuaXType( EditMode );
|
LuaXType( EditMode );
|
||||||
|
|
||||||
@@ -344,7 +344,7 @@ static const char *StageNames[] = {
|
|||||||
"Event",
|
"Event",
|
||||||
"Demo",
|
"Demo",
|
||||||
};
|
};
|
||||||
XToString2( Stage );
|
XToString( Stage );
|
||||||
LuaXType( Stage );
|
LuaXType( Stage );
|
||||||
|
|
||||||
|
|
||||||
@@ -354,7 +354,7 @@ static const char *MultiPlayerStatusNames[] = {
|
|||||||
"Unplugged",
|
"Unplugged",
|
||||||
"MissingMultitap",
|
"MissingMultitap",
|
||||||
};
|
};
|
||||||
XToString2( MultiPlayerStatus );
|
XToString( MultiPlayerStatus );
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ static const char *GameControllerNames[] = {
|
|||||||
"Controller1",
|
"Controller1",
|
||||||
"Controller2",
|
"Controller2",
|
||||||
};
|
};
|
||||||
XToString2( GameController );
|
XToString( GameController );
|
||||||
StringToX( GameController );
|
StringToX( GameController );
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ static const char *CabinetLightNames[] = {
|
|||||||
"BassLeft",
|
"BassLeft",
|
||||||
"BassRight",
|
"BassRight",
|
||||||
};
|
};
|
||||||
XToString2( CabinetLight );
|
XToString( CabinetLight );
|
||||||
StringToX( CabinetLight );
|
StringToX( CabinetLight );
|
||||||
|
|
||||||
static const char *LightsModeNames[] = {
|
static const char *LightsModeNames[] = {
|
||||||
@@ -47,7 +47,7 @@ static const char *LightsModeNames[] = {
|
|||||||
"TestAutoCycle",
|
"TestAutoCycle",
|
||||||
"TestManualCycle",
|
"TestManualCycle",
|
||||||
};
|
};
|
||||||
XToString2( LightsMode );
|
XToString( LightsMode );
|
||||||
|
|
||||||
static void GetUsedGameInputs( vector<GameInput> &vGameInputsOut )
|
static void GetUsedGameInputs( vector<GameInput> &vGameInputsOut )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ static const char *MenuButtonNames[] =
|
|||||||
"Coin",
|
"Coin",
|
||||||
"Operator"
|
"Operator"
|
||||||
};
|
};
|
||||||
XToString2( MenuButton );
|
XToString( MenuButton );
|
||||||
XToLocalizedString( MenuButton );
|
XToLocalizedString( MenuButton );
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ static const char *MessageNames[] = {
|
|||||||
"ShowHoldJudgmentMuliPlayerP31",
|
"ShowHoldJudgmentMuliPlayerP31",
|
||||||
"ShowHoldJudgmentMuliPlayerP32",
|
"ShowHoldJudgmentMuliPlayerP32",
|
||||||
};
|
};
|
||||||
XToString2( Message );
|
XToString( Message );
|
||||||
|
|
||||||
static RageMutex g_Mutex( "MessageManager" );
|
static RageMutex g_Mutex( "MessageManager" );
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ static const char *ModsLevelNames[] = {
|
|||||||
"Stage",
|
"Stage",
|
||||||
"Song",
|
"Song",
|
||||||
};
|
};
|
||||||
XToString2( ModsLevel );
|
XToString( ModsLevel );
|
||||||
LuaXType( ModsLevel );
|
LuaXType( ModsLevel );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ static const char *NotePartNames[] = {
|
|||||||
"HoldBottomCap",
|
"HoldBottomCap",
|
||||||
"HoldTail",
|
"HoldTail",
|
||||||
};
|
};
|
||||||
XToString2( NotePart );
|
XToString( NotePart );
|
||||||
|
|
||||||
static const RageVector2 g_emptyVector = RageVector2( 0, 0 );
|
static const RageVector2 g_emptyVector = RageVector2( 0, 0 );
|
||||||
|
|
||||||
@@ -234,13 +234,13 @@ static const char *HoldTypeNames[] = {
|
|||||||
"hold",
|
"hold",
|
||||||
"roll",
|
"roll",
|
||||||
};
|
};
|
||||||
XToString2( HoldType );
|
XToString( HoldType );
|
||||||
|
|
||||||
static const char *ActiveTypeNames[] = {
|
static const char *ActiveTypeNames[] = {
|
||||||
"active",
|
"active",
|
||||||
"inactive",
|
"inactive",
|
||||||
};
|
};
|
||||||
XToString2( ActiveType );
|
XToString( ActiveType );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ static const char *NoteTypeNames[] = {
|
|||||||
"64th",
|
"64th",
|
||||||
"192nd",
|
"192nd",
|
||||||
};
|
};
|
||||||
XToString2( NoteType );
|
XToString( NoteType );
|
||||||
LuaXType( NoteType )
|
LuaXType( NoteType )
|
||||||
XToLocalizedString( NoteType );
|
XToLocalizedString( NoteType );
|
||||||
|
|
||||||
|
|||||||
@@ -33,14 +33,14 @@ static const char *SelectTypeNames[] = {
|
|||||||
"SelectMultiple",
|
"SelectMultiple",
|
||||||
"SelectNone",
|
"SelectNone",
|
||||||
};
|
};
|
||||||
XToString2( SelectType );
|
XToString( SelectType );
|
||||||
StringToX( SelectType );
|
StringToX( SelectType );
|
||||||
|
|
||||||
static const char *LayoutTypeNames[] = {
|
static const char *LayoutTypeNames[] = {
|
||||||
"ShowAllInRow",
|
"ShowAllInRow",
|
||||||
"ShowOneInRow",
|
"ShowOneInRow",
|
||||||
};
|
};
|
||||||
XToString2( LayoutType );
|
XToString( LayoutType );
|
||||||
StringToX( LayoutType );
|
StringToX( LayoutType );
|
||||||
|
|
||||||
RString OptionRowHandler::OptionTitle() const
|
RString OptionRowHandler::OptionTitle() const
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ static const char *PlayerNumberNames[] = {
|
|||||||
"P1",
|
"P1",
|
||||||
"P2",
|
"P2",
|
||||||
};
|
};
|
||||||
XToString2( PlayerNumber );
|
XToString( PlayerNumber );
|
||||||
XToLocalizedString( PlayerNumber );
|
XToLocalizedString( PlayerNumber );
|
||||||
LuaFunction( PlayerNumberToString, PlayerNumberToString(Enum::Check<PlayerNumber>(L, 1)) );
|
LuaFunction( PlayerNumberToString, PlayerNumberToString(Enum::Check<PlayerNumber>(L, 1)) );
|
||||||
LuaXType( PlayerNumber );
|
LuaXType( PlayerNumber );
|
||||||
@@ -47,7 +47,7 @@ static const char *MultiPlayerNames[] = {
|
|||||||
"P31",
|
"P31",
|
||||||
"P32",
|
"P32",
|
||||||
};
|
};
|
||||||
XToString2( MultiPlayer );
|
XToString( MultiPlayer );
|
||||||
XToLocalizedString( MultiPlayer );
|
XToLocalizedString( MultiPlayer );
|
||||||
LuaFunction( MultiPlayerToString, MultiPlayerToString(Enum::Check<MultiPlayer>(L, 1)) );
|
LuaFunction( MultiPlayerToString, MultiPlayerToString(Enum::Check<MultiPlayer>(L, 1)) );
|
||||||
LuaFunction( MultiPlayerToLocalizedString, MultiPlayerToLocalizedString(Enum::Check<MultiPlayer>(L, 1)) );
|
LuaFunction( MultiPlayerToLocalizedString, MultiPlayerToLocalizedString(Enum::Check<MultiPlayer>(L, 1)) );
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ static const char *TimingWindowNames[] = {
|
|||||||
"Hold",
|
"Hold",
|
||||||
"Roll",
|
"Roll",
|
||||||
};
|
};
|
||||||
XToString2( TimingWindow );
|
XToString( TimingWindow );
|
||||||
|
|
||||||
|
|
||||||
static const char *ScoreEventNames[] = {
|
static const char *ScoreEventNames[] = {
|
||||||
@@ -43,7 +43,7 @@ static const char *ScoreEventNames[] = {
|
|||||||
"Held",
|
"Held",
|
||||||
"LetGo",
|
"LetGo",
|
||||||
};
|
};
|
||||||
XToString2( ScoreEvent );
|
XToString( ScoreEvent );
|
||||||
|
|
||||||
|
|
||||||
static const char *MusicWheelUsesSectionsNames[] = {
|
static const char *MusicWheelUsesSectionsNames[] = {
|
||||||
@@ -51,7 +51,7 @@ static const char *MusicWheelUsesSectionsNames[] = {
|
|||||||
"Always",
|
"Always",
|
||||||
"ABCOnly",
|
"ABCOnly",
|
||||||
};
|
};
|
||||||
XToString2( MusicWheelUsesSections );
|
XToString( MusicWheelUsesSections );
|
||||||
StringToX( MusicWheelUsesSections );
|
StringToX( MusicWheelUsesSections );
|
||||||
LuaXType( MusicWheelUsesSections );
|
LuaXType( MusicWheelUsesSections );
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ static const char *AllowW1Names[] = {
|
|||||||
"CoursesOnly",
|
"CoursesOnly",
|
||||||
"Everywhere",
|
"Everywhere",
|
||||||
};
|
};
|
||||||
XToString2( AllowW1 );
|
XToString( AllowW1 );
|
||||||
StringToX( AllowW1 );
|
StringToX( AllowW1 );
|
||||||
LuaXType( AllowW1 );
|
LuaXType( AllowW1 );
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ static const char *MaybeNames[] = {
|
|||||||
"No",
|
"No",
|
||||||
"Yes",
|
"Yes",
|
||||||
};
|
};
|
||||||
XToString2( Maybe );
|
XToString( Maybe );
|
||||||
StringToX( Maybe );
|
StringToX( Maybe );
|
||||||
LuaXType( Maybe );
|
LuaXType( Maybe );
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ static const char *GetRankingNameNames[] = {
|
|||||||
"On",
|
"On",
|
||||||
"List",
|
"List",
|
||||||
};
|
};
|
||||||
XToString2( GetRankingName );
|
XToString( GetRankingName );
|
||||||
StringToX( GetRankingName );
|
StringToX( GetRankingName );
|
||||||
LuaXType( GetRankingName );
|
LuaXType( GetRankingName );
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ static const char *RandomBackgroundModeNames[] = {
|
|||||||
"Animations",
|
"Animations",
|
||||||
"RandomMovies",
|
"RandomMovies",
|
||||||
};
|
};
|
||||||
XToString2( RandomBackgroundMode );
|
XToString( RandomBackgroundMode );
|
||||||
StringToX( RandomBackgroundMode );
|
StringToX( RandomBackgroundMode );
|
||||||
LuaXType( RandomBackgroundMode );
|
LuaXType( RandomBackgroundMode );
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ static const char *ShowDancingCharactersNames[] = {
|
|||||||
"Random",
|
"Random",
|
||||||
"Select",
|
"Select",
|
||||||
};
|
};
|
||||||
XToString2( ShowDancingCharacters );
|
XToString( ShowDancingCharacters );
|
||||||
StringToX( ShowDancingCharacters );
|
StringToX( ShowDancingCharacters );
|
||||||
LuaXType( ShowDancingCharacters );
|
LuaXType( ShowDancingCharacters );
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ static const char *BannerCacheModeNames[] = {
|
|||||||
"LowResLoadOnDemand",
|
"LowResLoadOnDemand",
|
||||||
"Full"
|
"Full"
|
||||||
};
|
};
|
||||||
XToString2( BannerCacheMode );
|
XToString( BannerCacheMode );
|
||||||
StringToX( BannerCacheMode );
|
StringToX( BannerCacheMode );
|
||||||
LuaXType( BannerCacheMode );
|
LuaXType( BannerCacheMode );
|
||||||
|
|
||||||
@@ -119,7 +119,7 @@ static const char *AttractSoundFrequencyNames[] = {
|
|||||||
"Every4Times",
|
"Every4Times",
|
||||||
"Every5Times",
|
"Every5Times",
|
||||||
};
|
};
|
||||||
XToString2( AttractSoundFrequency );
|
XToString( AttractSoundFrequency );
|
||||||
StringToX( AttractSoundFrequency );
|
StringToX( AttractSoundFrequency );
|
||||||
LuaXType( AttractSoundFrequency );
|
LuaXType( AttractSoundFrequency );
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ static const char *CourseSortOrdersNames[] = {
|
|||||||
"MeterSum",
|
"MeterSum",
|
||||||
"MeterRank",
|
"MeterRank",
|
||||||
};
|
};
|
||||||
XToString2( CourseSortOrders );
|
XToString( CourseSortOrders );
|
||||||
StringToX( CourseSortOrders );
|
StringToX( CourseSortOrders );
|
||||||
LuaXType( CourseSortOrders );
|
LuaXType( CourseSortOrders );
|
||||||
|
|
||||||
@@ -138,7 +138,7 @@ static const char *ScoringTypeNames[] = {
|
|||||||
"New",
|
"New",
|
||||||
"Old",
|
"Old",
|
||||||
};
|
};
|
||||||
XToString2( ScoringType );
|
XToString( ScoringType );
|
||||||
StringToX( ScoringType );
|
StringToX( ScoringType );
|
||||||
LuaXType( ScoringType );
|
LuaXType( ScoringType );
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ static const char *PixelFormatNames[] = {
|
|||||||
"BGR8",
|
"BGR8",
|
||||||
"A1BGR5",
|
"A1BGR5",
|
||||||
};
|
};
|
||||||
XToString2( PixelFormat );
|
XToString( PixelFormat );
|
||||||
|
|
||||||
/* bNeedReloadTextures is set to true if the device was re-created and we need
|
/* bNeedReloadTextures is set to true if the device was re-created and we need
|
||||||
* to reload textures. On failure, an error message is returned.
|
* to reload textures. On failure, an error message is returned.
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ static const char *InputDeviceNames[] = {
|
|||||||
"Pump2",
|
"Pump2",
|
||||||
"Midi",
|
"Midi",
|
||||||
};
|
};
|
||||||
XToString2( InputDevice );
|
XToString( InputDevice );
|
||||||
StringToX( InputDevice );
|
StringToX( InputDevice );
|
||||||
|
|
||||||
/* Return a reversible representation of a DeviceInput. This is not affected by InputDrivers,
|
/* Return a reversible representation of a DeviceInput. This is not affected by InputDrivers,
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ static const char *CullModeNames[] =
|
|||||||
"Front",
|
"Front",
|
||||||
"None"
|
"None"
|
||||||
};
|
};
|
||||||
XToString2( CullMode );
|
XToString( CullMode );
|
||||||
LuaXType( CullMode );
|
LuaXType( CullMode );
|
||||||
|
|
||||||
static const char *BlendModeNames[] =
|
static const char *BlendModeNames[] =
|
||||||
@@ -62,7 +62,7 @@ static const char *BlendModeNames[] =
|
|||||||
"InvertDest",
|
"InvertDest",
|
||||||
"NoEffect"
|
"NoEffect"
|
||||||
};
|
};
|
||||||
XToString2( BlendMode );
|
XToString( BlendMode );
|
||||||
LuaXType( BlendMode );
|
LuaXType( BlendMode );
|
||||||
|
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ static const char *ZTestModeNames[] =
|
|||||||
"WriteOnPass",
|
"WriteOnPass",
|
||||||
"WriteOnFail"
|
"WriteOnFail"
|
||||||
};
|
};
|
||||||
XToString2( ZTestMode );
|
XToString( ZTestMode );
|
||||||
LuaXType( ZTestMode );
|
LuaXType( ZTestMode );
|
||||||
|
|
||||||
int LuaFunc_color( lua_State *L )
|
int LuaFunc_color( lua_State *L )
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ static const char *EditStateNames[] = {
|
|||||||
"RecordPaused",
|
"RecordPaused",
|
||||||
"Playing"
|
"Playing"
|
||||||
};
|
};
|
||||||
XToString2( EditState );
|
XToString( EditState );
|
||||||
|
|
||||||
#if defined(XBOX)
|
#if defined(XBOX)
|
||||||
void ScreenEdit::InitEditMappings()
|
void ScreenEdit::InitEditMappings()
|
||||||
|
|||||||
@@ -40,14 +40,14 @@ static const char *JudgeLineNames[] =
|
|||||||
{
|
{
|
||||||
"W1", "W2", "W3", "W4", "W5", "Miss", "Held", "MaxCombo"
|
"W1", "W2", "W3", "W4", "W5", "Miss", "Held", "MaxCombo"
|
||||||
};
|
};
|
||||||
XToString2( JudgeLine );
|
XToString( JudgeLine );
|
||||||
#define FOREACH_JudgeLine( rc ) FOREACH_ENUM( JudgeLine, rc )
|
#define FOREACH_JudgeLine( rc ) FOREACH_ENUM( JudgeLine, rc )
|
||||||
|
|
||||||
static const char *StatLineNames[NUM_StatLine] =
|
static const char *StatLineNames[NUM_StatLine] =
|
||||||
{
|
{
|
||||||
"Jumps", "Holds", "Mines", "Hands", "Rolls",
|
"Jumps", "Holds", "Mines", "Hands", "Rolls",
|
||||||
};
|
};
|
||||||
XToString2( StatLine );
|
XToString( StatLine );
|
||||||
#define FOREACH_StatLine( rc ) FOREACH_ENUM( StatLine, rc )
|
#define FOREACH_StatLine( rc ) FOREACH_ENUM( StatLine, rc )
|
||||||
|
|
||||||
#define CHEER_DELAY_SECONDS THEME->GetMetricF(m_sName,"CheerDelaySeconds")
|
#define CHEER_DELAY_SECONDS THEME->GetMetricF(m_sName,"CheerDelaySeconds")
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ static const char *CourseEntryActionNames[] = {
|
|||||||
"Insert Entry",
|
"Insert Entry",
|
||||||
"Delete",
|
"Delete",
|
||||||
};
|
};
|
||||||
XToString2( CourseEntryAction );
|
XToString( CourseEntryAction );
|
||||||
#define FOREACH_CourseEntryAction( i ) FOREACH_ENUM( CourseEntryAction, i )
|
#define FOREACH_CourseEntryAction( i ) FOREACH_ENUM( CourseEntryAction, i )
|
||||||
|
|
||||||
static MenuDef g_TempMenu(
|
static MenuDef g_TempMenu(
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ static const char *CourseActionNames[] = {
|
|||||||
"Rename",
|
"Rename",
|
||||||
"Delete",
|
"Delete",
|
||||||
};
|
};
|
||||||
XToString2( CourseAction );
|
XToString( CourseAction );
|
||||||
#define FOREACH_CourseAction( i ) FOREACH_ENUM( CourseAction, i )
|
#define FOREACH_CourseAction( i ) FOREACH_ENUM( CourseAction, i )
|
||||||
|
|
||||||
static MenuDef g_TempMenu(
|
static MenuDef g_TempMenu(
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ static const char *StepsEditActionNames[] = {
|
|||||||
"Rename",
|
"Rename",
|
||||||
"Delete",
|
"Delete",
|
||||||
};
|
};
|
||||||
XToString2( StepsEditAction );
|
XToString( StepsEditAction );
|
||||||
#define FOREACH_StepsEditAction( i ) FOREACH_ENUM( StepsEditAction, i )
|
#define FOREACH_StepsEditAction( i ) FOREACH_ENUM( StepsEditAction, i )
|
||||||
|
|
||||||
static MenuDef g_TempMenu(
|
static MenuDef g_TempMenu(
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ static const char *ProfileActionNames[] = {
|
|||||||
"Delete",
|
"Delete",
|
||||||
"Clear",
|
"Clear",
|
||||||
};
|
};
|
||||||
XToString2( ProfileAction );
|
XToString( ProfileAction );
|
||||||
XToLocalizedString( ProfileAction );
|
XToLocalizedString( ProfileAction );
|
||||||
#define FOREACH_ProfileAction( i ) FOREACH_ENUM( ProfileAction, i )
|
#define FOREACH_ProfileAction( i ) FOREACH_ENUM( ProfileAction, i )
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ static const char *ManageWorkoutsActionNames[] = {
|
|||||||
"Rename",
|
"Rename",
|
||||||
"Delete",
|
"Delete",
|
||||||
};
|
};
|
||||||
XToString2( ManageWorkoutsAction );
|
XToString( ManageWorkoutsAction );
|
||||||
#define FOREACH_ManageWorkoutsAction( i ) FOREACH_ENUM( ManageWorkoutsAction, i )
|
#define FOREACH_ManageWorkoutsAction( i ) FOREACH_ENUM( ManageWorkoutsAction, i )
|
||||||
|
|
||||||
static MenuDef g_TempMenu(
|
static MenuDef g_TempMenu(
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ static const char *PromptAnswerNames[] = {
|
|||||||
"No",
|
"No",
|
||||||
"Cancel",
|
"Cancel",
|
||||||
};
|
};
|
||||||
XToString2( PromptAnswer );
|
XToString( PromptAnswer );
|
||||||
|
|
||||||
/* Settings: */
|
/* Settings: */
|
||||||
namespace
|
namespace
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ static const char *PageTypeNames[] = {
|
|||||||
"SurvivalCourses",
|
"SurvivalCourses",
|
||||||
"AllCourses",
|
"AllCourses",
|
||||||
};
|
};
|
||||||
XToString2( PageType );
|
XToString( PageType );
|
||||||
StringToX( PageType );
|
StringToX( PageType );
|
||||||
|
|
||||||
#define TYPE THEME->GetMetric(m_sName,"Type")
|
#define TYPE THEME->GetMetric(m_sName,"Type")
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ static const char *MenuDirNames[] = {
|
|||||||
"Right",
|
"Right",
|
||||||
"Auto",
|
"Auto",
|
||||||
};
|
};
|
||||||
XToString2( MenuDir );
|
XToString( MenuDir );
|
||||||
|
|
||||||
AutoScreenMessage( SM_PlayPostSwitchPage )
|
AutoScreenMessage( SM_PlayPostSwitchPage )
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ static const char *SetTimeSelectionNames[] = {
|
|||||||
"Minute",
|
"Minute",
|
||||||
"Second",
|
"Second",
|
||||||
};
|
};
|
||||||
XToString2( SetTimeSelection );
|
XToString( SetTimeSelection );
|
||||||
#define FOREACH_SetTimeSelection( s ) FOREACH_ENUM( SetTimeSelection, s )
|
#define FOREACH_SetTimeSelection( s ) FOREACH_ENUM( SetTimeSelection, s )
|
||||||
|
|
||||||
const float g_X[NUM_SetTimeSelection] =
|
const float g_X[NUM_SetTimeSelection] =
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ static const char *ElementCategoryNames[] = {
|
|||||||
"Sounds",
|
"Sounds",
|
||||||
"Other"
|
"Other"
|
||||||
};
|
};
|
||||||
XToString2( ElementCategory );
|
XToString( ElementCategory );
|
||||||
StringToX( ElementCategory );
|
StringToX( ElementCategory );
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ static const char *TweenTypeNames[] = {
|
|||||||
"Spring",
|
"Spring",
|
||||||
"Bezier"
|
"Bezier"
|
||||||
};
|
};
|
||||||
XToString2( TweenType );
|
XToString( TweenType );
|
||||||
LuaXType( TweenType );
|
LuaXType( TweenType );
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ static const char *UnlockRequirementNames[] =
|
|||||||
"Toasties",
|
"Toasties",
|
||||||
"StagesCleared"
|
"StagesCleared"
|
||||||
};
|
};
|
||||||
XToString2( UnlockRequirement );
|
XToString( UnlockRequirement );
|
||||||
StringToX( UnlockRequirement );
|
StringToX( UnlockRequirement );
|
||||||
LuaXType( UnlockRequirement );
|
LuaXType( UnlockRequirement );
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ static const char *UnlockRewardTypeNames[] =
|
|||||||
"Course",
|
"Course",
|
||||||
"Modifier",
|
"Modifier",
|
||||||
};
|
};
|
||||||
XToString2( UnlockRewardType );
|
XToString( UnlockRewardType );
|
||||||
XToLocalizedString( UnlockRewardType );
|
XToLocalizedString( UnlockRewardType );
|
||||||
LuaXType( UnlockRewardType );
|
LuaXType( UnlockRewardType );
|
||||||
LuaFunction( UnlockRewardTypeToLocalizedString, UnlockRewardTypeToLocalizedString(Enum::Check<UnlockRewardType>(L, 1)) );
|
LuaFunction( UnlockRewardTypeToLocalizedString, UnlockRewardTypeToLocalizedString(Enum::Check<UnlockRewardType>(L, 1)) );
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ static const char *WorkoutProgramNames[] = {
|
|||||||
"Runner",
|
"Runner",
|
||||||
"Flat",
|
"Flat",
|
||||||
};
|
};
|
||||||
XToString2( WorkoutProgram );
|
XToString( WorkoutProgram );
|
||||||
StringToX( WorkoutProgram );
|
StringToX( WorkoutProgram );
|
||||||
XToLocalizedString( WorkoutProgram );
|
XToLocalizedString( WorkoutProgram );
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ static const char *WorkoutStepsTypeNames[] = {
|
|||||||
"NormalSteps",
|
"NormalSteps",
|
||||||
"WorkoutSteps"
|
"WorkoutSteps"
|
||||||
};
|
};
|
||||||
XToString2( WorkoutStepsType );
|
XToString( WorkoutStepsType );
|
||||||
StringToX( WorkoutStepsType );
|
StringToX( WorkoutStepsType );
|
||||||
XToLocalizedString( WorkoutStepsType );
|
XToLocalizedString( WorkoutStepsType );
|
||||||
LuaXType( WorkoutStepsType );
|
LuaXType( WorkoutStepsType );
|
||||||
|
|||||||
Reference in New Issue
Block a user