auto-git:
[change] renderer.js
This commit is contained in:
20
renderer.js
20
renderer.js
@@ -635,6 +635,24 @@ folders.forEach(folderObj => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
const slot = document.getElementById('catSlot');
|
||||||
|
window.cat = new window.AnimeCat(slot, {
|
||||||
|
images: {
|
||||||
|
default: 'assets/cat/default.png',
|
||||||
|
eyesClosed: 'assets/cat/eyes_closed.png',
|
||||||
|
mouthOpen: 'assets/cat/mouth_open.png'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Beispiel: Die Katze spricht
|
||||||
|
window.cat.beginSpeech();
|
||||||
|
let msg = "Ich bin wieder da!";
|
||||||
|
for (let ch of msg) {
|
||||||
|
setTimeout(() => window.cat.appendSpeech(ch), 50);
|
||||||
|
}
|
||||||
|
setTimeout(() => window.cat.endSpeech(), 2000);
|
||||||
|
|
||||||
|
/*
|
||||||
const slot = document.getElementById('catSlot');
|
const slot = document.getElementById('catSlot');
|
||||||
const cat = new AnimeCat(slot, {
|
const cat = new AnimeCat(slot, {
|
||||||
images: {
|
images: {
|
||||||
@@ -652,5 +670,5 @@ folders.forEach(folderObj => {
|
|||||||
ipcRenderer.on('cat-begin', () => window.cat && window.cat.begin());
|
ipcRenderer.on('cat-begin', () => window.cat && window.cat.begin());
|
||||||
ipcRenderer.on('cat-chunk', (_e, chunk) => window.cat && window.cat.streamText(chunk));
|
ipcRenderer.on('cat-chunk', (_e, chunk) => window.cat && window.cat.streamText(chunk));
|
||||||
ipcRenderer.on('cat-end', () => window.cat && window.cat.end());
|
ipcRenderer.on('cat-end', () => window.cat && window.cat.end());
|
||||||
|
*/
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user