summaryrefslogtreecommitdiff
path: root/tex/context/base/java-imp-fld.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-05-16 11:00:00 +0200
committerHans Hagen <pragma@wxs.nl>2011-05-16 11:00:00 +0200
commit5eca07d318d43832522e3482a000ab933c25a420 (patch)
tree68f87db4e87702a1e7c554d1491c20eb691395e1 /tex/context/base/java-imp-fld.mkiv
parentb3be5baa491b69cc40ffd20267a5bae48fea65c3 (diff)
downloadcontext-5eca07d318d43832522e3482a000ab933c25a420.tar.gz
beta 2011.05.16 11:00
Diffstat (limited to 'tex/context/base/java-imp-fld.mkiv')
-rw-r--r--tex/context/base/java-imp-fld.mkiv24
1 files changed, 24 insertions, 0 deletions
diff --git a/tex/context/base/java-imp-fld.mkiv b/tex/context/base/java-imp-fld.mkiv
index 9eb7d7ed5..a0909f594 100644
--- a/tex/context/base/java-imp-fld.mkiv
+++ b/tex/context/base/java-imp-fld.mkiv
@@ -419,6 +419,30 @@ function Pause_Walk_Field(FieldSet) {
}
}
+function Start_Pause_Walk_Field(FieldSet, Delay) {
+ var fieldset = Do_Get_Check_Walk_Field(FieldSet) ;
+ if (fieldset) {
+ if (fieldset.running) {
+ if (fieldset.paused) {
+ Do_Start_Auto_Walk_Field(FieldSet) ;
+ fieldset.paused = false ;
+ } else {
+ Do_Stop_Auto_Walk_Field(FieldSet) ;
+ fieldset.paused = true ;
+ }
+ } else {
+ fieldset.number = 0 ;
+ if (Delay) {
+ fieldset.delay = Delay ;
+ }
+ Reset_Fields(FieldSet) ;
+ Do_Start_Auto_Walk_Field(FieldSet) ;
+ fieldset.running = true ;
+ fieldset.paused = false ;
+ }
+ }
+}
+
function Stop_Walk_Field(FieldSet) {
var fieldset = Do_Get_Check_Walk_Field(FieldSet) ;
if (fieldset) {