From ba83b38ec14f90685bb6d90b3a6a3cc4e84330ec Mon Sep 17 00:00:00 2001 From: alexanderroese Date: Wed, 14 Aug 2024 09:38:50 +0200 Subject: [PATCH] added dropdown for keychain --- snippets/shx-3d-render-input.liquid | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index fe33705..db0d9e1 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -462,7 +462,8 @@ "text1": "Paula", "font": "LT Beverage", "surface_finish": "matte", - "color": SHX_getFilamentById("10") + "color": SHX_getFilamentById("10"), + "keychain": "Keiner" }, "17200": { "text1": "Marie", @@ -708,6 +709,7 @@ function SHX_IFC_genDropdownSelect(inputID, labelText, inputName, inputVal, options, section_id) { let isInputShxFont = inputID === "shx-font" + let isInputShxKeychain = inputID === "shx-keychain" let html = ` @@ -905,7 +907,7 @@ html += SHX_IFC_genTextInput('shx-text1', 'Text', 'Text', SHX_IFC_getCurrentValue(id, 'text1'), section_id); html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', SHX_IFC_getCurrentValue(id,'font'), ['LT Beverage', "Rose"], section_id); html += SHX_IFC_genColorSelect('shx-color', 'Farbe', 'Farbe', SHX_IFC_getCurrentValue(id, 'color'), [], section_id); - html += SHX_IFC_genColorSelect('shx-keychain', 'Schlüsselanhänger', 'Schlüsselanhänger', SHX_IFC_getCurrentValue(id, 'keychain'), ["Keiner", "Mit Schlüsselanhänger links"], section_id); + html += SHX_IFC_genDropdownSelect('shx-keychain', 'Schlüsselanhänger', 'Schlüsselanhänger', SHX_IFC_getCurrentValue(id, 'keychain'), ["Keiner", "Mit Schlüsselanhänger links"], section_id); return html; }