Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

when I create new dialogue can I get a dialogue class tag? #116

Closed
jokerrider007 opened this issue Feb 28, 2019 · 1 comment
Closed

when I create new dialogue can I get a dialogue class tag? #116

jokerrider007 opened this issue Feb 28, 2019 · 1 comment

Comments

@jokerrider007
Copy link

jokerrider007 commented Feb 28, 2019

relate from: #106

I store my ASS object in the server and send ASS object to the client then I'm trying to add some new dialogue from the client and push dialog back to the server.

let dialog = new window.libjass.Dialogue(new Map([
          ['Style', 'Default'],
          ['Start', 1],
          ['End', 5],
          ['Text', 'Text']
        ]), ass)

when I push a dialog into ASS object collection. my new dialogue doesn't have a class tag.
Now I'm hard-code to add a class tag into dialog before push it into ASS object.
what is the best way can I get a dialogue class tag or add new dialogue into server side?

@Arnavion
Copy link
Owner

my new dialogue doesn't have a class tag.

Yes it does. If you do console.log(dialog._classTag); you will see it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants