export-view.html 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>导出动画</title>
  7. <link rel="stylesheet" href="../../css/export-view/export-view.css">
  8. </head>
  9. <body>
  10. <!-- 黑色背景遮罩 -->
  11. <div class="export-overlay" id="exportOverlay">
  12. <!-- 弹出框容器 -->
  13. <div class="export-modal" id="exportModal">
  14. <!-- 关闭按钮(在弹窗右上角) -->
  15. <button class="modal-close-btn" id="exportCancelBtn" title="关闭">
  16. <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  17. <path d="M15 5L5 15M5 5l10 10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
  18. </svg>
  19. </button>
  20. <!-- 图片预览区域 - 左右两个图框 -->
  21. <div class="export-preview-container">
  22. <!-- 左侧:参考图上传 -->
  23. <div class="export-reference-section">
  24. <div class="export-preview-box export-reference-box" id="referenceBox">
  25. <input type="file" id="referenceInput" accept="image/*" style="display: none;">
  26. <div class="reference-upload-area" id="referenceUploadArea">
  27. <div class="upload-icon">+</div>
  28. <div class="upload-text">点击上传参考图</div>
  29. </div>
  30. <div class="reference-image-wrapper" id="referenceImageWrapper" style="display: none;">
  31. <img id="referenceImage" alt="参考图" class="reference-image" />
  32. <button class="reference-remove-btn" id="referenceRemoveBtn" title="删除参考图">
  33. <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  34. <path d="M12 4L4 12M4 4l8 8" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
  35. </svg>
  36. </button>
  37. </div>
  38. </div>
  39. </div>
  40. <!-- 右侧:Spritesheet 预览 -->
  41. <div class="export-spritesheet-section">
  42. <div class="export-preview-box export-spritesheet-box" id="spritesheetBox">
  43. <img id="previewImage" alt="Spritesheet预览" />
  44. <div class="preview-placeholder" id="previewPlaceholder">
  45. <div class="loading-spinner"></div>
  46. <div class="loading-text">正在生成预览图...</div>
  47. </div>
  48. <!-- 下载按钮 - 悬浮在右下角 -->
  49. <button class="floating-download-btn" id="exportConfirmBtn" title="下载" disabled>
  50. <svg width="22" height="22" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  51. <path d="M12 3v12m0 0l-4-4m4 4l4-4M5 21h14" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
  52. </svg>
  53. </button>
  54. </div>
  55. </div>
  56. </div>
  57. <!-- 提示词配置区域(默认隐藏,上传参考图后显示) -->
  58. <div class="prompt-config-section" id="promptConfigSection" style="display: none;">
  59. <div class="config-row">
  60. <textarea id="additionalPromptInput" class="config-textarea" placeholder="输入额外的提示词指令..."></textarea>
  61. </div>
  62. <!-- 操作按钮区域 -->
  63. <div class="prompt-actions">
  64. <button class="action-btn replace-action-btn" id="replaceBtn" title="替换角色">
  65. <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  66. <path d="M10 2L12 6H8L10 2Z" fill="currentColor"/>
  67. <path d="M2 10L6 8V12L2 10Z" fill="currentColor"/>
  68. <path d="M10 18L8 14H12L10 18Z" fill="currentColor"/>
  69. <path d="M18 10L14 8V12L18 10Z" fill="currentColor"/>
  70. <circle cx="10" cy="10" r="2" fill="currentColor"/>
  71. </svg>
  72. <span>替换</span>
  73. </button>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <script src="../../js/export-view/export-view.js"></script>
  79. </body>
  80. </html>