Changed NoteSkinManager to use new error reporting and avoid crashing. Fixed DoChangeTheme to switch to the InitialScreen if the screen doesn't exist in the theme being changed to. Fixed error reporting in MeterDisplay.

This commit is contained in:
Kyzentun
2014-08-02 00:38:26 -07:00
committed by Jonathan Payne
parent 8a6f6a7124
commit a9056c20d1
6 changed files with 76 additions and 30 deletions
+5 -1
View File
@@ -37,7 +37,11 @@ void StepsDisplayList::LoadFromNode( const XNode* pNode )
{
ActorFrame::LoadFromNode( pNode );
ASSERT_M( !m_sName.empty(), "StepsDisplayList must have a Name" );
if(m_sName.empty())
{
LuaHelpers::ReportScriptError("StepsDisplayList must have a Name");
return;
}
ITEMS_SPACING_Y.Load( m_sName, "ItemsSpacingY" );
NUM_SHOWN_ITEMS.Load( m_sName, "NumShownItems" );