Added MinTNSToHideNotes preference.

This commit is contained in:
Kyzentun
2014-11-19 15:59:21 -07:00
parent 75fdf7c650
commit 040c0de509
8 changed files with 41 additions and 9 deletions
+10
View File
@@ -227,6 +227,16 @@ TapNoteScore StringToTapNoteScore( const RString &s )
return TapNoteScore_Invalid;
}
// This is necessary because the StringToX macro wasn't used, and Preference
// relies on there being a StringConversion entry for enums used in prefs. -Kyz
namespace StringConversion
{
template<> bool FromString<TapNoteScore>(const RString& value, TapNoteScore& out)
{
out= StringToTapNoteScore(value);
return out != TapNoteScore_Invalid;
}
}
XToLocalizedString( TapNoteScore );
LuaFunction( TapNoteScoreToLocalizedString, TapNoteScoreToLocalizedString(Enum::Check<TapNoteScore>(L, 1)) );