cleanup: Remove Style and use StyleDef everywhere. This gets rid of a lot of Style->StyleDef lookups and discourages code that's specific to a Style. All game logic should be data-driven.
This commit is contained in:
@@ -165,7 +165,7 @@ void JukeboxMenu::OnRowValueChanged( Row row )
|
||||
switch( row )
|
||||
{
|
||||
case ROW_STYLE:
|
||||
m_textValue[ROW_STYLE].SetText( GAMEMAN->GetStyleDefForStyle(GetSelectedStyle())->m_szName );
|
||||
m_textValue[ROW_STYLE].SetText( GetSelectedStyle()->m_szName );
|
||||
// fall through
|
||||
case ROW_GROUP:
|
||||
m_textValue[ROW_GROUP].SetText( SONGMAN->ShortenGroupName(GetSelectedGroup()) );
|
||||
|
||||
Reference in New Issue
Block a user