Add sound.enabled
22
sound.enabled.md
Normal file
22
sound.enabled.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# sound.enabled()
|
||||
Obté si el so està habilitat.
|
||||
|
||||
# sound.enabled(value)
|
||||
Estableix si el so està habilitat o no.
|
||||
|
||||
### Paràmetres
|
||||
* value — true per habilitar, false per deshabilitar.
|
||||
|
||||
### Torna
|
||||
Un valor booleà indicant si el so està habilitat (només en la versió de lectura).
|
||||
|
||||
### Exemple
|
||||
```
|
||||
if not sound.enabled() then
|
||||
sound.enabled(true)
|
||||
end
|
||||
```
|
||||
|
||||
### Vore també
|
||||
* [sound.play](sound.play)
|
||||
* [sound.stop](sound.stop)
|
||||
Reference in New Issue
Block a user