From 2538bfb623a050fbd210baefba1fa1d3761a0019 Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Sun, 23 Jun 2024 15:18:37 +0200 Subject: [PATCH] shx-3d-render --- snippets/shx-3d-render-input.liquid | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index 1119eeb..76ada06 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -480,12 +480,13 @@ }, "84712": { "renderHTML": (section_id) => { let html = defaultStyle; + const id = "84712"; - html += SHX_IFC_genTextInput('shx-text1', 'Custom Text 1', 'Text', globalInputFormsObjValues['TextOne']['text1'], section_id); - html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', globalInputFormsObjValues['TextOne']['font'], ['LT Beverage', "Rose"], section_id); - html += SHX_IFC_genSwatchSelect('shx-surface_finish', 'Vordere Oberfläche', 'Vordere Oberfläche', globalInputFormsObjValues['TextOne']['surface_finish'], {"matte": {name: "Matt", imgUrl: "{{ "SHX-OberflaecheMatte.gif" | asset_url }}"}, "silk": {name: "Spiegelnd", imgUrl: "{{ "SHX-OberflaecheSilk.gif" | asset_url }}"}}, section_id); - html += SHX_IFC_genColorSelect('shx-color', 'Farbe', 'Farbe', globalInputFormsObjValues['TextOne']['color'], [], section_id); + html += SHX_IFC_genTextInput('shx-text1', 'Custom Text 1', 'Text', globalInputFormsObjValues[id]['text1'], section_id); + html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', globalInputFormsObjValues[id]['font'], ['LT Beverage', "Rose"], section_id); + html += SHX_IFC_genSwatchSelect('shx-surface_finish', 'Vordere Oberfläche', 'Vordere Oberfläche', globalInputFormsObjValues[id]['surface_finish'], {"matte": {name: "Matt", imgUrl: "{{ "SHX-OberflaecheMatte.gif" | asset_url }}"}, "silk": {name: "Spiegelnd", imgUrl: "{{ "SHX-OberflaecheSilk.gif" | asset_url }}"}}, section_id); + html += SHX_IFC_genColorSelect('shx-color', 'Farbe', 'Farbe', globalInputFormsObjValues[id]['color'], [], section_id); return html; }