@@ -207,7 +207,7 @@ namespace nttiny {
207
207
ImGui::SameLine ();
208
208
int jmp { this ->m_sim ->get_jumpover () };
209
209
ImGui::DragInt (" ##skip" , &jmp, 1 , 1 , 1000 , " t += %d dt" );
210
- this ->m_sim ->set_jumpover (jmp);
210
+ this ->m_sim ->set_jumpover (std::max ( jmp, 1 ) );
211
211
}
212
212
ImGui::Separator ();
213
213
ImGui::Spacing ();
@@ -231,8 +231,10 @@ namespace nttiny {
231
231
ImVec2 (-1 , 2 * ImGui::GetFontSize ()))) {
232
232
this ->m_save_video = !this ->m_save_video ;
233
233
if (!this ->m_save_video ) {
234
- ImGui::InsertNotification (
235
- { ImGuiToastType_Info, 3000 , " Frames for video saved in `%s`" , " bin/frames/" });
234
+ ImGui::InsertNotification ({ ImGuiToastType_Info,
235
+ 3000 ,
236
+ " Frames for video saved in `%s`" ,
237
+ this ->m_sim ->get_title () + " /frames/" });
236
238
m_save_videoframe_count = 0 ;
237
239
}
238
240
}
@@ -352,6 +354,7 @@ namespace nttiny {
352
354
this ->SharedAxes .Y .Min = range[2 ];
353
355
this ->SharedAxes .Y .Max = range[3 ];
354
356
this ->m_collapsed_controls = toml::find_or<bool >(panels, " collapsed_controls" , false );
357
+ this ->m_sim ->set_jumpover (toml::find_or<int >(panels, " jumpover" , 1 ));
355
358
for (int i { 0 }; i < npanels; ++i) {
356
359
const auto & plot = toml::find (panels, std::to_string (i));
357
360
const auto type = toml::find<std::string>(plot, " type" );
@@ -394,6 +397,7 @@ namespace nttiny {
394
397
<< this ->SharedAxes .Y .Min << " , " << this ->SharedAxes .Y .Max << " ]\n " ;
395
398
export_file << " collapsed_controls = " << (this ->m_collapsed_controls ? " true" : " false" )
396
399
<< " \n " ;
400
+ export_file << " jumpover = " << this ->m_sim ->get_jumpover () << " \n " ;
397
401
export_file.close ();
398
402
}
399
403
ImGui::InsertNotification (
0 commit comments