index.js 438 B

123456789101112131415161718
  1. window.downloadTexture = function (base64string) {
  2. let link = document.createElement('a');
  3. link.href = 'data:image/png;base64,' + base64string;
  4. link.download = 'image';
  5. link.click();
  6. }
  7. window.gameInitialized = function () {
  8. }
  9. window.closeGame = function () {
  10. window.parent?.closeGame();
  11. }
  12. window.closePanel = function () {
  13. isShowSaveDom = false;
  14. saveDom.style.pointerEvents = 'none';
  15. }