import { bg, uiElement, text } from "../../js/color";
import prompt from "../../stear/extra/Pages/prompt";
import showStatus from "../../stear/extra/Pages/showStatus";
import { SWindow, s } from "../../stear/main";
import animation from "./animation";
let ledAnimation = [
{
name: "test1123424242424242424242424242424242424242424242424242424242424",
buttons: [
{
clock: 0,
offset: 0,
animation: 0
}
],
animations: [
{
name: "default on",
steps: [{
slow: false,
time: 1000,
color: [100, 100, 100]
}]
}
]
}
];
export default new SWindow({
call: async (stear, { find, resolve, close, render, call, event, include }, args) => {
return
Animationen
{
call(prompt, { text: "Name für neue Animation:" }).then(state => {
if (state != false) {
let ledAni = { name: state, buttons: [], animations: [] };
ledAnimation.push(ledAni);
call(animation, ledAni, false);
render();
}
})
}
}}>+
{() => ledAnimation.map((e, i) =>
{
call(showStatus, { text: "using: " + e.name, color: "green" });
}
}}>
void e.stopPropagation(), click: (event) => { event.stopPropagation(); call(animation, e, false).then(()=>void render()) } }}>e
void e.stopPropagation(), click: (event) => { event.stopPropagation(); ledAnimation.splice(i, 1); render(); } }}>x
)}
;
},
backgroundColor: "transparent"
})