Force save request after editing song/step info.
This commit is contained in:
+20
-13
@@ -4344,54 +4344,60 @@ void ScreenEdit::HandleStepsInformationChoice( StepsInformationChoice c, const v
|
|||||||
m_pSteps->GetDescription(),
|
m_pSteps->GetDescription(),
|
||||||
MAX_STEPS_DESCRIPTION_LENGTH,
|
MAX_STEPS_DESCRIPTION_LENGTH,
|
||||||
SongUtil::ValidateCurrentStepsDescription,
|
SongUtil::ValidateCurrentStepsDescription,
|
||||||
ChangeDescription,NULL);
|
ChangeDescription,
|
||||||
|
NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case chartstyle:
|
case chartstyle:
|
||||||
ScreenTextEntry::TextEntry(
|
{
|
||||||
SM_None,
|
ScreenTextEntry::TextEntry(SM_None,
|
||||||
ENTER_NEW_CHART_STYLE,
|
ENTER_NEW_CHART_STYLE,
|
||||||
m_pSteps->GetChartStyle(),
|
m_pSteps->GetChartStyle(),
|
||||||
255,
|
255,
|
||||||
NULL,
|
NULL,
|
||||||
ChangeChartStyle,
|
ChangeChartStyle,
|
||||||
NULL
|
NULL);
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case step_credit:
|
case step_credit:
|
||||||
ScreenTextEntry::TextEntry(
|
{
|
||||||
SM_None,
|
ScreenTextEntry::TextEntry(SM_None,
|
||||||
ENTER_NEW_STEP_AUTHOR,
|
ENTER_NEW_STEP_AUTHOR,
|
||||||
m_pSteps->GetCredit(),
|
m_pSteps->GetCredit(),
|
||||||
255,
|
255,
|
||||||
SongUtil::ValidateCurrentStepsCredit,
|
SongUtil::ValidateCurrentStepsCredit,
|
||||||
ChangeStepCredit,
|
ChangeStepCredit,
|
||||||
NULL
|
NULL);
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case meter:
|
case meter:
|
||||||
ScreenTextEntry::TextEntry(
|
{
|
||||||
SM_BackFromDifficultyMeterChange,
|
ScreenTextEntry::TextEntry(SM_BackFromDifficultyMeterChange,
|
||||||
ENTER_NEW_METER,
|
ENTER_NEW_METER,
|
||||||
ssprintf("%d", m_pSteps->GetMeter()),
|
ssprintf("%d", m_pSteps->GetMeter()),
|
||||||
4
|
4);
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case step_min_bpm:
|
case step_min_bpm:
|
||||||
|
{
|
||||||
ScreenTextEntry::TextEntry(SM_None, ENTER_MIN_BPM,
|
ScreenTextEntry::TextEntry(SM_None, ENTER_MIN_BPM,
|
||||||
ssprintf("%.6f", pSteps->GetMinBPM()), 20,
|
ssprintf("%.6f", pSteps->GetMinBPM()), 20,
|
||||||
ScreenTextEntry::FloatValidate,
|
ScreenTextEntry::FloatValidate,
|
||||||
ChangeStepsMinBPM, NULL);
|
ChangeStepsMinBPM, NULL);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case step_max_bpm:
|
case step_max_bpm:
|
||||||
|
{
|
||||||
ScreenTextEntry::TextEntry(SM_None, ENTER_MAX_BPM,
|
ScreenTextEntry::TextEntry(SM_None, ENTER_MAX_BPM,
|
||||||
ssprintf("%.6f", pSteps->GetMaxBPM()), 20,
|
ssprintf("%.6f", pSteps->GetMaxBPM()), 20,
|
||||||
ScreenTextEntry::FloatValidate,
|
ScreenTextEntry::FloatValidate,
|
||||||
ChangeStepsMaxBPM, NULL);
|
ChangeStepsMaxBPM, NULL);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
SetDirty(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
static LocalizedString ENTER_MAIN_TITLE ("ScreenEdit","Enter a new main title.");
|
static LocalizedString ENTER_MAIN_TITLE ("ScreenEdit","Enter a new main title.");
|
||||||
@@ -4462,6 +4468,7 @@ void ScreenEdit::HandleSongInformationChoice( SongInformationChoice c, const vec
|
|||||||
ScreenTextEntry::FloatValidate, ChangeMaxBPM, NULL );
|
ScreenTextEntry::FloatValidate, ChangeMaxBPM, NULL );
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
SetDirty(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user