diff --git a/Docs/Changelog_sm-ssc.txt b/Docs/Changelog_sm-ssc.txt index a329523d2d..58b9569bee 100644 --- a/Docs/Changelog_sm-ssc.txt +++ b/Docs/Changelog_sm-ssc.txt @@ -20,6 +20,10 @@ sm-ssc in development | 20110??? * Removed Song sample length limitations. [freem] * Removed hard-coded values from the Step Editor. Now TimeSignatures are used in place of these former constants. [Wolfman2000] +* [RoomWheel] Various metrics changes: [freem] + * Removed TextWidth/DescWidth metrics. + * "Desc" is now "Description". (DescX -> DescriptionX) + * Removed hardcoded commands (shadowlength,0;maxwidth,[max width metric];halign,0). ================================================================================ sm-ssc v1.2 | 20110107 diff --git a/Themes/_fallback/metrics.ini b/Themes/_fallback/metrics.ini index a2051e52b4..d8f794d038 100644 --- a/Themes/_fallback/metrics.ini +++ b/Themes/_fallback/metrics.ini @@ -3872,14 +3872,13 @@ CreateRoomColor=color("0.0,0.9,0.25,1.0") ScrollBarOnCommand=visible,false [RoomWheelItem] -TextOnCommand=zoom,0.6;strokecolor,color("#000000FF") TextX=-110 TextY=-8 -TextWidth=200 -DescX=-100 -DescY=6 -DescOnCommand=zoom,0.4;strokecolor,color("#000000FF") -DescWidth=400 +TextOnCommand=halign,0;zoom,0.6;maxwidth,200;strokecolor,color("#000000FF"); + +DescriptionX=-100 +DescriptionY=6 +DescriptionOnCommand=halign,0;zoom,0.4;maxwidth,400;strokecolor,color("#000000FF") [RoomInfoDisplay] RoomInfoDisplayOnCommand=diffuse,color("1.0,1.0,1.0,1");x,SCREEN_WIDTH+130;y,250;bounceend,0.5;x,SCREEN_WIDTH-160 diff --git a/src/RoomWheel.cpp b/src/RoomWheel.cpp index 5e77e41284..68a9e6001f 100644 --- a/src/RoomWheel.cpp +++ b/src/RoomWheel.cpp @@ -12,15 +12,6 @@ AutoScreenMessage( SM_BackFromRoomName ) AutoScreenMessage( SM_RoomInfoRetract ) AutoScreenMessage( SM_RoomInfoDeploy ) -ThemeMetric TEXT_X; -ThemeMetric TEXT_Y; -ThemeMetric TEXT_WIDTH; -ThemeMetric TEXT_ON_COMMAND; - -ThemeMetric DESC_X; -ThemeMetric DESC_Y; -ThemeMetric DESC_WIDTH; - RoomWheel::~RoomWheel() { FOREACH( WheelItemBaseData*, m_CurWheelItemData, i ) @@ -80,33 +71,15 @@ void RoomWheelItem::Load( RString sType ) m_sprNormalPart.Load( THEME->GetPathG(sType,"NormalPart") ); this->AddChild( m_sprNormalPart ); - TEXT_X .Load(sType,"TextX"); - TEXT_Y .Load(sType,"TextY"); - TEXT_ON_COMMAND .Load(sType,"TextOnCommand"); - TEXT_WIDTH .Load(sType,"TextWidth"); - + m_text.SetName( "Text" ); m_text.LoadFromFont( THEME->GetPathF(sType,"text") ); - //m_text.SetShadowLength( 0 ); - m_text.SetXY( TEXT_X, TEXT_Y ); - m_text.RunCommands( TEXT_ON_COMMAND ); + LOAD_ALL_COMMANDS_AND_SET_XY( m_text ); this->AddChild( &m_text ); - m_text.SetHorizAlign( align_left ); - m_text.SetMaxWidth(TEXT_WIDTH); - /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ - - DESC_X .Load(sType,"DescX"); - DESC_Y .Load(sType,"DescY"); - DESC_WIDTH .Load(sType,"DescWidth"); - - m_Desc.SetName( "Desc" ); + m_Desc.SetName( "Description" ); ActorUtil::LoadAllCommands( m_Desc, "RoomWheelItem" ); m_Desc.LoadFromFont( THEME->GetPathF("RoomWheel","text") ); - m_Desc.SetHorizAlign( align_left ); - m_Desc.SetShadowLength( 0 ); - m_Desc.SetMaxWidth( DESC_WIDTH ); - m_Desc.SetXY( DESC_X, DESC_Y); - m_Desc.PlayCommand( "On" ); + LOAD_ALL_COMMANDS_AND_SET_XY( m_Desc ); this->AddChild( &m_Desc ); m_sprOverPart.Load( THEME->GetPathG(sType,"OverPart") );