From 0ba914320e7c219daab154696817a0b8aef0691d Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Fri, 28 Jun 2024 20:34:44 +0200 Subject: [PATCH] test --- snippets/shx-3d-render-input.liquid | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index fdeb180..819e36f 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -332,11 +332,19 @@ "color": SHX_getFilamentById("10") }, "17200": { - "text1": "Zwiebel", + "text1": "Marie", "font": "LT Beverage", "surface_finish": "silk", "color1": SHX_getFilamentById("17"), "color2": SHX_getFilamentById("10") + }, + "97548": { + "text1": "Luca", + "font": "LT Beverage", + "surface_finish": "silk", + "color1": SHX_getFilamentById("17"), + "color2": SHX_getFilamentById("10"), + "color3": SHX_getFilamentById("17") } }; @@ -519,9 +527,24 @@ html += SHX_IFC_genColorSelect('shx-color1', 'Farbe 1', 'Farbe 1', globalInputFormsObjValues[id]['color1'], [], section_id); html += SHX_IFC_genColorSelect('shx-color2', 'Farbe 2', 'Farbe 2', globalInputFormsObjValues[id]['color2'], [], section_id); + return html; + } + }, "97548": { + "renderHTML": (section_id) => { + let html = defaultStyle; + const id = "97548"; + + html += SHX_IFC_genTextInput('shx-text1', 'Text', '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-color1', 'Farbe 1', 'Farbe 1', globalInputFormsObjValues[id]['color1'], [], section_id); + html += SHX_IFC_genColorSelect('shx-color2', 'Farbe 2', 'Farbe 2', globalInputFormsObjValues[id]['color2'], [], section_id); + html += SHX_IFC_genColorSelect('shx-color3', 'Farbe 3', 'Farbe 3', globalInputFormsObjValues[id]['color3'], [], section_id); + return html; } } + }; document.addEventListener("DOMContentLoaded", ()=>{