speedcontrol / nodecg-speedcontrol

NodeCG bundle to help facilitate the running of speedrunning marathons, including overlays.
MIT License
44 stars 34 forks source link

Change Add/Edit run dialog to not rely on a replicant for passing information #26

Closed zoton2 closed 5 years ago

zoton2 commented 6 years ago

It's possible to use nodecg.getDialog(name).open() and nodecg.getDialogDocument(name) to open/manipulate the dialog before you show it.

Example usage similar to ours: https://github.com/GamesDoneQuick/agdq17-layouts/blob/a97f3dc765616cf3b533591ef2daf119c0169080/dashboard/schedule/elements/gdq-schedule.js#L111-L114

Documentation: http://nodecg.com/NodeCG.html#getDialog http://nodecg.com/NodeCG.html#getDialogDocument