diff --git a/source/entryjs/api/2024-04-24-ml.md b/source/entryjs/api/2024-04-24-ml.md index 9f1f6a70..38397fba 100644 --- a/source/entryjs/api/2024-04-24-ml.md +++ b/source/entryjs/api/2024-04-24-ml.md @@ -619,6 +619,7 @@ Predict 팝업을 노출할때 발생합니다. const learningPredict = new Predict({}); this.learningPredict.on('show', () = > { + this.isPauseClicked = false; // 작품이 실행되는 중이라면, 작품을 일시정지합니다. if (Entry.engine.state == 'run') { // 작품 일시정지 여부를 토글하는 함수입니다. @@ -661,6 +662,8 @@ this.learningPredict.on('hide', () = > { Predict 팝업의 '작품 일시정지', '작품 다시 시작' 버튼을 클릭하면 발생합니다. +##### isPauseClicked : 엔트리의 일시정지와 Predict 팝업의 일시정지 버튼의 상태를 동기화 하기 위해 사용됩니다. + ```js const learningPredict = new Predict({}); // Predict 팝업에서 작품 일시정지를 눌렀는지 자체 판단하기 위한 예시 변수입니다.