f04470247e
The web version of Ruffle now has a volume controls window. It can be accessed through the right-click menu (Right-click > Volume controls). It contains a mute button and a slider from 0 to 100. To achieve this, a new volume controls modal has been added to the shadow template. TypeScript is used to create texts, set the controls and add event listeners to update the settings and controls when being changed. The volume settings set in the GUI are saved in a new VolumeControls class, which is also used to calculate the real volume (adapted for logarithmic hearing) out of the entered volume and the mute checkbox. As soon as the volume is changed in the GUI, the real volume will be set in the Ruffle instance. The existing ftl files have been adapted (and new ones have been created) to include the new multilingual text in the right-click menu and the volume controls window. This closes #1771. |
||
---|---|---|
.. | ||
context_menu.ftl | ||
messages.ftl | ||
save-manager.ftl | ||
volume-controls.ftl |