diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/lettering_generate_json.xml | 5 | ||||
| -rw-r--r-- | templates/lettering_set_color_sort_index.xml | 35 |
2 files changed, 40 insertions, 0 deletions
diff --git a/templates/lettering_generate_json.xml b/templates/lettering_generate_json.xml index e80a707f..bf3770a5 100644 --- a/templates/lettering_generate_json.xml +++ b/templates/lettering_generate_json.xml @@ -55,6 +55,11 @@ gui-description="Disable if you defined manual routing in your font." indent="1">true</param> <param type="bool" name="reversible" gui-text="Reversible" gui-description='If disabled back and forth stitching will not be possile for this font.' indent="1">true</param> + <param type="bool" name="sortable" gui-text="Sortable" + gui-description='If disabled color sorting will be disabled for this font. + Color sorting needs color_sort_index indicators within the font.' indent="1">false</param> + <param type="string" name="combine-at-sort-indices" gui-text="Combine indices" + gui-description="When color sorting, combine elements with this color indices (comma separated)" indent="1" /> <param name="letter-case" type="optiongroup" appearance="combo" gui-text="Force letter case" indent="1"> <option value="">No</option> <option value="upper">Upper</option> diff --git a/templates/lettering_set_color_sort_index.xml b/templates/lettering_set_color_sort_index.xml new file mode 100644 index 00000000..851342f6 --- /dev/null +++ b/templates/lettering_set_color_sort_index.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Set color sort index</name> + <id>org.{{ id_inkstitch }}.lettering_set_color_sort_index</id> + <param name="extension" type="string" gui-hidden="true">lettering_set_color_sort_index</param> + + <param name="notebook" type="notebook"> + <page name="options" gui-text="Options"> + <param type="int" name="color-sort-index" gui-text="Color sort index" min="0" max="100" /> + </page> + <page name="info" gui-text="Help"> + <label appearance="header">Sets given color sort index on selected elements</label> + <separator /> + <label> + This sets the order of elements for multicolor fonts when color sorted. + </label> + <separator /> + <spacer /> + <label>More information on our website</label> + <label appearance="url">https://inkstitch.org/docs/font-tools/#set-color-sort-index</label> + </page> + </param> + + <effect needs-live-preview="false"> + <object-type>all</object-type> + <effects-menu> + <submenu name="{{ menu_inkstitch }}" translatable="no"> + <submenu name="Font Management" /> + </submenu> + </effects-menu> + </effect> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> |
