User Tools

Site Tools


macros:example:parkfixtures1thru100000

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
macros:example:parkfixtures1thru100000 [2020/07/10 13:06] – [functions] icke_siegenmacros:example:parkfixtures1thru100000 [2021/06/10 19:06] (current) – external edit 127.0.0.1
Line 9: Line 9:
 {{tag>park fixtures}} {{tag>park fixtures}}
  
 +**From Titan v15 on ClearAll() requires two parameters, see [[macros:function:programmer.editor.clearall|]].\\ Simply change the relevant line(s) to ''Programmer.Editor.ClearAll(false, false)''.**
 ==== functions ==== ==== functions ====
   * [[:macros:function:Menu.Stack.PushOrReloadMenu]]   * [[:macros:function:Menu.Stack.PushOrReloadMenu]]
Line 57: Line 58:
     <step pause="0.01">Patch.Repatch.ParkSelectedFixtures()</step>     <step pause="0.01">Patch.Repatch.ParkSelectedFixtures()</step>
     <step pause="0.01">Handles.ClearSelection()</step>     <step pause="0.01">Handles.ClearSelection()</step>
- <step pause="0.01">Programmer.Editor.ClearAll()</step>+    <step pause="0.01">Programmer.Editor.ClearAll()</step>
   </sequence>   </sequence>
 </macro>  </macro> 
Line 80: Line 81:
     <step pause="0.01">Patch.Repatch.UnParkSelectedFixtures(true)</step>     <step pause="0.01">Patch.Repatch.UnParkSelectedFixtures(true)</step>
     <step pause="0.01">Handles.ClearSelection()</step>     <step pause="0.01">Handles.ClearSelection()</step>
- <step pause="0.01">Programmer.Editor.ClearAll()</step>+    <step pause="0.01">Programmer.Editor.ClearAll()</step>
   </sequence>   </sequence>
 </macro> </macro>
Line 93: Line 94:
 This explains the functional steps within the sequence. For all the other XML details please refer to [[:macros:formats_and_syntax#xml_format|Formats and syntax]] This explains the functional steps within the sequence. For all the other XML details please refer to [[:macros:formats_and_syntax#xml_format|Formats and syntax]]
  
 +The first part simply emulates fixture selection by syntax, like ''1 THRO 100000'':
 +  * ''Menu.Stack.PushOrReloadMenu("Primary", "Expert.Root.Program")'' makes sure we are in the root menu
 +  * the ''Menu.InjectInput(..)'' commands emulate the button presses ''Fixture'' ''1'' ''THRO'' ''1'' ''0'' ''0'' ''0'' ''0'' ''0'' ''Enter''
 +This way the fixtures 1 ~ 100000 are selected.
  
 The following code is taken from [[macros:example:parkselectedfixtures|]] The following code is taken from [[macros:example:parkselectedfixtures|]]
macros/example/parkfixtures1thru100000.1594386410.txt.gz · Last modified: 2020/07/10 13:06 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki