diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-05-16 11:00:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-05-16 11:00:00 +0200 |
commit | 5eca07d318d43832522e3482a000ab933c25a420 (patch) | |
tree | 68f87db4e87702a1e7c554d1491c20eb691395e1 /tex/context/base/java-imp-fld.mkiv | |
parent | b3be5baa491b69cc40ffd20267a5bae48fea65c3 (diff) | |
download | context-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.mkiv | 24 |
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) { |