/// <summary> /// Call the <see cref="Global.tracer_update_handler_function"/> with the Alteration. /// If no function was defined, prints it to the debugging stdout and does nothing /// </summary> /// <param name="alter"> Alteration you want to animate</param> protected static void callUpdateHandler(Alteration alter) { if (Global.getSetting("test mode")) { return; } if (Global.tracer_update_handler_function != null) { printTrace("Calling graphical function"); if (Global.tracer_update_handler_function(alter)) { Global.waitForRun(true); } } else { printTrace("Graphical function is none"); } }