[MusicWheel, RoomWheel] Moved the "- EMPTY -" string to the languages file. [AJ]

This commit is contained in:
AJ Kelly
2011-08-01 16:58:54 -05:00
parent 711b285e61
commit 701034219f
4 changed files with 24 additions and 9 deletions
+4
View File
@@ -8,6 +8,10 @@ ________________________________________________________________________________
StepMania 5.0 Preview 3 | 20110??? StepMania 5.0 Preview 3 | 20110???
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
2011/08/01
----------
* [MusicWheel, RoomWheel] Moved the "- EMPTY -" string to the languages file. [AJ]
2011/07/31 2011/07/31
---------- ----------
* [ScreenGameplay, LyricDisplay] Stop lyrics from animating on failure. * [ScreenGameplay, LyricDisplay] Stop lyrics from animating on failure.
+12 -7
View File
@@ -258,33 +258,37 @@ P31=P31
P32=P32 P32=P32
[MusicWheel] [MusicWheel]
Portal=Portal
Random=Random
Roulette=Roulette
Empty=- EMPTY -
ArtistText=Artist ArtistText=Artist
BpmText=BPM BpmText=BPM
EasyMeterText=Easy Rank
GenreText=Genre
GroupText=Group
HardMeterText=Hard Rank
ChallengeMeterText=Challenge Rank ChallengeMeterText=Challenge Rank
DoubleEasyMeterText=Easy Rank (Double) DoubleEasyMeterText=Easy Rank (Double)
DoubleMediumMeterText=Medium Rank (Double) DoubleMediumMeterText=Medium Rank (Double)
DoubleHardMeterText=Hard Rank (Double) DoubleHardMeterText=Hard Rank (Double)
DoubleChallengeMeterText=Challenge Rank (Double) DoubleChallengeMeterText=Challenge Rank (Double)
EasyMeterText=Easy Rank
GenreText=Genre
GroupText=Group
HardMeterText=Hard Rank
LengthText=Length LengthText=Length
MediumMeterText=Medium Rank MediumMeterText=Medium Rank
PopularityText=Player's Best! PopularityText=Player's Best!
Portal=Portal
PreferredText=Preferred PreferredText=Preferred
Random=Random
Roulette=Roulette
TitleText=Title TitleText=Title
RecentText=Recent RecentText=Recent
TopGradesText=Top Grades TopGradesText=Top Grades
CoursesText=Courses CoursesText=Courses
AllCoursesText=All Courses AllCoursesText=All Courses
NonstopText=Nonstop Courses NonstopText=Nonstop Courses
OniText=Oni Courses OniText=Oni Courses
EndlessText=Endless Courses EndlessText=Endless Courses
SurvivalText=Survival Courses SurvivalText=Survival Courses
NormalModeText=Normal Mode NormalModeText=Normal Mode
BattleModeText=Battle Mode (Disabled) BattleModeText=Battle Mode (Disabled)
@@ -1176,6 +1180,7 @@ NumTh=th
[RoomWheel] [RoomWheel]
Enter room name=Enter room name Enter room name=Enter room name
Empty=- EMPTY -
[RoomInfoDisplay] [RoomInfoDisplay]
Last Round Info:=Last Round Info: Last Round Info:=Last Round Info:
+4 -1
View File
@@ -21,6 +21,7 @@
#include "PlayerState.h" #include "PlayerState.h"
#include "CommonMetrics.h" #include "CommonMetrics.h"
#include "MessageManager.h" #include "MessageManager.h"
#include "LocalizedString.h"
static Preference<bool> g_bMoveRandomToEnd( "MoveRandomToEnd", false ); static Preference<bool> g_bMoveRandomToEnd( "MoveRandomToEnd", false );
static Preference<bool> g_bPrecacheAllSorts( "PreCacheAllWheelSorts", false); static Preference<bool> g_bPrecacheAllSorts( "PreCacheAllWheelSorts", false);
@@ -34,6 +35,8 @@ static RString CHOICE_NAME( RString s ) { return ssprintf("Choice%s",s.c_str())
static RString CUSTOM_WHEEL_ITEM_NAME( RString s ) { return ssprintf("CustomWheelItem%s",s.c_str()); } static RString CUSTOM_WHEEL_ITEM_NAME( RString s ) { return ssprintf("CustomWheelItem%s",s.c_str()); }
static RString CUSTOM_WHEEL_ITEM_COLOR( RString s ) { return ssprintf("%sColor",s.c_str()); } static RString CUSTOM_WHEEL_ITEM_COLOR( RString s ) { return ssprintf("%sColor",s.c_str()); }
static LocalizedString EMPTY_STRING ( "MusicWheel", "Empty" );
AutoScreenMessage( SM_SongChanged ); // TODO: Replace this with a Message and MESSAGEMAN AutoScreenMessage( SM_SongChanged ); // TODO: Replace this with a Message and MESSAGEMAN
AutoScreenMessage( SM_SortOrderChanging ); AutoScreenMessage( SM_SortOrderChanging );
AutoScreenMessage( SM_SortOrderChanged ); AutoScreenMessage( SM_SortOrderChanged );
@@ -1039,7 +1042,7 @@ void MusicWheel::FilterWheelItemDatas(vector<MusicWheelItemData *> &aUnFilteredD
// If we've filtered all items, insert a dummy. // If we've filtered all items, insert a dummy.
if( aFilteredData.empty() ) if( aFilteredData.empty() )
aFilteredData.push_back( new MusicWheelItemData(TYPE_SECTION, NULL, "- EMPTY -", NULL, RageColor(1,0,0,1), 0) ); aFilteredData.push_back( new MusicWheelItemData(TYPE_SECTION, NULL, EMPTY_STRING, NULL, RageColor(1,0,0,1), 0) );
} }
void MusicWheel::UpdateSwitch() void MusicWheel::UpdateSwitch()
+4 -1
View File
@@ -7,6 +7,9 @@
#include "NetworkSyncManager.h" #include "NetworkSyncManager.h"
#include "ScreenManager.h" #include "ScreenManager.h"
#include "ActorUtil.h" #include "ActorUtil.h"
#include "LocalizedString.h"
static LocalizedString EMPTY_STRING ( "RoomWheel", "Empty" );
AutoScreenMessage( SM_BackFromRoomName ); AutoScreenMessage( SM_BackFromRoomName );
AutoScreenMessage( SM_RoomInfoRetract ); AutoScreenMessage( SM_RoomInfoRetract );
@@ -87,7 +90,7 @@ void RoomWheelItem::Load( RString sType )
void RoomWheel::BuildWheelItemsData( vector<WheelItemBaseData*> &arrayWheelItemDatas ) void RoomWheel::BuildWheelItemsData( vector<WheelItemBaseData*> &arrayWheelItemDatas )
{ {
if( arrayWheelItemDatas.empty() ) if( arrayWheelItemDatas.empty() )
arrayWheelItemDatas.push_back( new RoomWheelItemData(TYPE_GENERIC, "- EMPTY -", "", RageColor(1,0,0,1)) ); arrayWheelItemDatas.push_back( new RoomWheelItemData(TYPE_GENERIC, EMPTY_STRING, "", RageColor(1,0,0,1)) );
} }
void RoomWheel::AddPermanentItem( RoomWheelItemData *itemdata ) void RoomWheel::AddPermanentItem( RoomWheelItemData *itemdata )