winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.85k stars 758 forks source link

Support default value in macro prompt #2475

Closed warmans closed 4 months ago

warmans commented 4 months ago
  1. Adds an optional third value to prompts that contains the default value e.g. {prompt|pos|0} would show 0 in the input labeled pos when the panel opens.
  2. Updates help text to describe how to set defaults (also adds note about reusing placeholder values).
  3. Removes some unused imports.
breiler commented 4 months ago

Clean and simple. Can you just add a couple of <br/> in the the helper text as it gets quite long at the moment:

image

warmans commented 4 months ago

Hi, thanks for reviewing. I've tidied up the text a bit and put in some breaks. Let me know if there are any other changes needed.

image