| 469 | |
| 470 | //根据dom状态获取配置 |
| 471 | function getConfigFromDOM() { |
| 472 | return { |
| 473 | quality: appNodes.quality.value, |
| 474 | shell: appNodes.shellType.value, |
| 475 | size: appNodes.shellSize.value, |
| 476 | wordShell: appNodes.wordShell.checked, |
| 477 | autoLaunch: appNodes.autoLaunch.checked, |
| 478 | finale: appNodes.finaleMode.checked, |
| 479 | skyLighting: appNodes.skyLighting.value, |
| 480 | longExposure: appNodes.longExposure.checked, |
| 481 | hideControls: appNodes.hideControls.checked, |
| 482 | // Store value as number. |
| 483 | scaleFactor: parseFloat(appNodes.scaleFactor.value), |
| 484 | }; |
| 485 | } |
| 486 | |
| 487 | const updateConfigNoEvent = () => updateConfig(); |
| 488 | appNodes.quality.addEventListener("input", updateConfigNoEvent); |