main
Jan Umbach 2024-07-13 22:20:08 +02:00
parent 03c5072c89
commit f989341bb8
1 changed files with 21 additions and 1 deletions

View File

@ -359,6 +359,13 @@
"backgroundType": "padding",
"color1": SHX_getFilamentById("17"),
"color2": SHX_getFilamentById("10")
},
"49340": {
"text1": "Lena",
"font": "LT Beverage",
"color1": SHX_getFilamentById("17"),
"color2": SHX_getFilamentById("10"),
"color3": SHX_getFilamentById("17")
}
};
@ -615,7 +622,20 @@
return html;
}
}
}, "49340": {
"renderHTML": (section_id) => {
let html = defaultStyle;
const id = "49340";
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", "Arial"], section_id);
html += SHX_IFC_genColorSelect('shx-color1', 'Textfarbe', 'Textfarbe', SHX_IFC_getCurrentValue(id, 'color1'), [], section_id);
html += SHX_IFC_genColorSelect('shx-color2', 'Zwischenfarbe', 'Zwischenfarbe', SHX_IFC_getCurrentValue(id, 'color2'), [], section_id);
html += SHX_IFC_genColorSelect('shx-color3', 'Hintergrundfarbe', 'Hintergrundfarbe', SHX_IFC_getCurrentValue(id, 'color3'), [], section_id);
return html;
}
},
};