cosmosc2-demo 5.0.3 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd6e2e64502ba2dcf635e2817e0a88a420834e54b68a89901dcb421639512b04
4
- data.tar.gz: 4d0a60ed236a08d5fab7f3ea92d5177039755a81f8ce3266082cd1b1136889a9
3
+ metadata.gz: e47fe0a3d90facf6376309b78db533448f1a0d2d6311b214c56699bf9f850a65
4
+ data.tar.gz: cfac84e3cb50511138f9073d8e589f43a978019dcd5d90c721a3f55389e3860d
5
5
  SHA512:
6
- metadata.gz: e123c3f9735148c9f445d76fc5fb6a9769f6552948030b656ee9b8cb2fcf2831804e726f9c3584aebbac54d3e42082531a46fa6b34c79164ec03694efdfdc467
7
- data.tar.gz: be15529647d65622c6b7bb9a163bb922a57bde616f468111ba3c7298768bba0dbf44ee19c00fbcb66909437a3f273525371a4e6c467fa9e90afd1ca134b594ec
6
+ metadata.gz: 9ba4d8df7704d219be0f9b0c7a121ee118089caa7fdf1687fcd61fdaaa8c4c3b9ae99dc44699c579f85804273640bb1ba67df4129384be478c836d81cf71f5b9
7
+ data.tar.gz: 5a275e4a89934618bdcd075c8851fca3b8b17903754469a8372c39a64775e95a3b246c58a63012d58c57c4c5ce0a628b7ebbfd5e9cd23d833faa3b7a57f13e4c
@@ -17,7 +17,9 @@ VERTICAL
17
17
  LABEL " Duration: "
18
18
  NAMED_WIDGET DURATION TEXTFIELD 12 "10.0"
19
19
  END
20
- BUTTON 'Start Collect' "api.cmd('<%= target_name %> COLLECT with TYPE '+screen.get_named_widget('COLLECT_TYPE').text()+', DURATION '+screen.get_named_widget('DURATION').text())"
20
+ # This is an example of using a varible named 'type'. You can operate on variables with Javascript code.
21
+ # All COSMOS commands (api.cmd) must be separated by newlines '\n'. All code separated by semicolons is evaluated together.
22
+ BUTTON 'Start Collect' "var type=screen.get_named_widget('COLLECT_TYPE').text(); api.cmd('<%= target_name %> COLLECT with TYPE '+type+', DURATION '+screen.get_named_widget('DURATION').text())"
21
23
  END
22
24
  SETTING BACKCOLOR 163 185 163
23
25