]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6566 @0.75
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 8 Dec 2023 16:18:02 +0000 (17:18 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 8 Dec 2023 16:18:02 +0000 (17:18 +0100)
app/Models/Traits/PublicationSettings.php

index eac04ce2e3c7674142d3b2545c375de2d2ca1706..48f891cf0fd4af63a61a8e4265a8fc2a56189f39 100644 (file)
@@ -918,20 +918,27 @@ trait PublicationSettings
             'v2' => '{"type":"boolean","default":true,"editable":true,"label":"\\u00a7!\\u00a7Activer les effets sonores \\u00e0 l\'ouverture!\\u00a7!"}',
             'default' => true,
         ]);
-        $this->addSettingField('', FormSeparator::class);
-        $this->addSettingField('ambientSound', FilesOrURL::class, $this->__('Ambiance sonore'), [
-            'v2' => '{"type":"freefile","default":"","editable":false,"label":"\\u00a7!\\u00a7Ambiance sonore!\\u00a7!","grade":3,"fileFilter":{"name":"\\u00a7!\\u00a7Fichier sonore!\\u00a7! (*.mp3, *.wav)","extensions":"*.mp3;*.wav"}}',
-            'accept' => [
-                0 => '*.mp3',
-                0 => '*.wav',
-            ],
-        ]);
-        $this->addSettingField('ambientSoundVolume', Integer::class, $this->__('Volume de l\'ambiance sonore'), [
-            'v2' => '{"type":"integer","default":50,"editable":false,"label":"\\u00a7!\\u00a7Volume de l\'ambiance sonore!\\u00a7!","min":0,"max":100}',
+        $this->addSettingField('soundVolume', Integer::class, $this->__('Volume des effets sonores'), [
             'min' => 0,
             'max' => 100,
-            'default' => 50,
-        ]);
+            'default' => 100,
+            'suffix' => '%',
+        ]);
+//        $this->addSettingField('', FormSeparator::class);
+//        $this->addSettingField('ambientSound', FilesOrURL::class, $this->__('Ambiance sonore'), [
+//            'v2' => '{"type":"freefile","default":"","editable":false,"label":"\\u00a7!\\u00a7Ambiance sonore!\\u00a7!","grade":3,"fileFilter":{"name":"\\u00a7!\\u00a7Fichier sonore!\\u00a7! (*.mp3, *.wav)","extensions":"*.mp3;*.wav"}}',
+//            'accept' => [
+//                0 => '*.mp3',
+//                0 => '*.wav',
+//            ],
+//        ]);
+//        $this->addSettingField('ambientSoundVolume', Integer::class, $this->__('Volume de l\'ambiance sonore'), [
+//            'v2' => '{"type":"integer","default":50,"editable":false,"label":"\\u00a7!\\u00a7Volume de l\'ambiance sonore!\\u00a7!","min":0,"max":100}',
+//            'min' => 0,
+//            'max' => 100,
+//            'default' => 50,
+//            'suffix' => '%',
+//        ]);
     }
 
     protected function _downloadpdf()