Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent Stops Functioning After Speaking Is Set To Stay Open After Display #6

Open
MichaelFoss opened this issue Dec 10, 2019 · 0 comments

Comments

@MichaelFoss
Copy link

To make an agent's text bubble appear, the speak method can be invoked with the message as the first parameter, "text":

window.addEventListener('load', () => {
    clippy.load('F1', clippyAgent => {
        clippyAgent.show();
        clippyAgent.speak('Hi!');
    });
});

However, the text quickly vanishes. In order to get it to stay on the screen, a second parameter, "hold", must be passed with the value of true:

window.addEventListener('load', () => {
    clippy.load('F1', clippyAgent => {
        clippyAgent.show();
        clippyAgent.speak('Hi!', true);
    });
});

Once the agent has finished its text, it does not hold, and stops animating and functioning altogether.

Executing a moveTo call prior to the speak seems to make the text hold, but again the functionality/animation breaks and the text cannot disappear:

window.addEventListener('load', () => {
    clippy.load('F1', clippyAgent => {
        clippyAgent.show();
        clippyAgent.moveTo(200, 200);
        clippyAgent.speak('Hi!', true);
        setTimeout(() => clippyAgent.closeBalloon(), 10000);
    });
});

Requesting that the text is closed via closeBalloon will eventually hide the message, but the functionality of the agent remains broken. It can be dragged around, but it does not animate any further:

window.addEventListener('load', () => {
    clippy.load('F1', clippyAgent => {
        clippyAgent.show();
        clippyAgent.moveTo(200, 200);
        clippyAgent.speak('Hi!', true);
        setTimeout(() => clippyAgent.closeBalloon(), 10000);
    });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant