소스 검색

[player] Implemented generator reset.

badlogic 5 년 전
부모
커밋
033703e900
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      spine-ts/player/example/generator/index.html

+ 2 - 0
spine-ts/player/example/generator/index.html

@@ -138,7 +138,9 @@ body {
 
 
 			var newButton = topBar.children[0];
 			var newButton = topBar.children[0];
 			newButton.onclick = function() {
 			newButton.onclick = function() {
+				player.stopRendering();
 				UI.show(dropZone);
 				UI.show(dropZone);
+				UI.clear(editor);
 				UI.hide(editor);
 				UI.hide(editor);
 			}
 			}
 			var downloadButton = topBar.children[1];
 			var downloadButton = topBar.children[1];