webapp: Fix the testbed
Show animation was removed from the web show() function.
This commit is contained in:
parent
14642b74d7
commit
02a26109c0
1 changed files with 10 additions and 7 deletions
|
@ -22,6 +22,7 @@ input.addEventListener('change', async () => {
|
||||||
agent.addToDom(mount);
|
agent.addToDom(mount);
|
||||||
|
|
||||||
agent.show();
|
agent.show();
|
||||||
|
await agent.playAnimationByNamePromise("Show");
|
||||||
console.log('Agent created');
|
console.log('Agent created');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -31,13 +32,15 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
let form = document.getElementById('acsUrlForm') as HTMLFormElement;
|
let form = document.getElementById('acsUrlForm') as HTMLFormElement;
|
||||||
form.addEventListener('submit', (e) => {
|
form.addEventListener('submit', async (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let url = (document.getElementById('acsUrl') as HTMLInputElement).value;
|
let url = (document.getElementById('acsUrl') as HTMLInputElement).value;
|
||||||
msagent.agentCreateCharacterFromUrl(url).then((agent) => {
|
let agent = await msagent.agentCreateCharacterFromUrl(url)
|
||||||
w.agents.push(agent);
|
w.agents.push(agent);
|
||||||
agent.addToDom(document.body);
|
agent.addToDom(document.body);
|
||||||
agent.show();
|
|
||||||
console.log(`Loaded agent from ${url}`);
|
agent.show();
|
||||||
});
|
await agent.playAnimationByNamePromise("Show");
|
||||||
|
|
||||||
|
console.log(`Loaded agent from ${url}`);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue