main
Jan Umbach 2024-06-28 19:17:33 +02:00
parent e7be21e8cd
commit 51f989490f
1 changed files with 21 additions and 3 deletions

View File

@ -329,9 +329,14 @@
"text1": "Paula",
"font": "LT Beverage",
"surface_finish": "silk",
"color": SHX_getFilamentById("10")
}
"color": SHX_getFilamentById("10")
},
"17200": {
"text1": "Paula",
"font": "LT Beverage",
"surface_finish": "silk",
"color1": SHX_getFilamentById("11")}
"color2": SHX_getFilamentById("17")}
};
function SHX_IFC_genTextInput(inputID, labelText, inputName, inputVal, section_id, maxLength = 24) {
@ -500,6 +505,19 @@
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;
}
}, "17200": {
"renderHTML": (section_id) => {
let html = defaultStyle;
const id = "17200";
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);
return html;
}
}