From 3b9bb9c0dba1bf5109c22e7e3203005c2a61b587 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 8 Dec 2023 17:18:02 +0100 Subject: [PATCH] wait #6566 @0.75 --- app/Models/Traits/PublicationSettings.php | 31 ++++++++++++++--------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/app/Models/Traits/PublicationSettings.php b/app/Models/Traits/PublicationSettings.php index eac04ce2e..48f891cf0 100644 --- a/app/Models/Traits/PublicationSettings.php +++ b/app/Models/Traits/PublicationSettings.php @@ -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() -- 2.39.5