可以设置失去焦点后自动静音 close #281

This commit is contained in:
MrZ626
2021-09-12 03:50:29 +08:00
parent aababce74c
commit da13235c88
10 changed files with 64 additions and 27 deletions

View File

@@ -301,6 +301,7 @@ SETTING={--Settings
warn=true,
--Sound
autoMute=true,
mainVol=1,
sfx=1,
sfx_spawn=0,

View File

@@ -384,6 +384,7 @@ return{
vib="Vibration",
voc="Voice",
autoMute="Mute while unfocused",
fine="Finesse Error SFX",
cv="Voice Pack",
apply="Apply",

View File

@@ -349,6 +349,7 @@ return{
vib="Vibración",
voc="Voces",
-- autoMute="Mute while unfocused",
fine="Sonido de Error de Finesse",
cv="Pack de Voces",
apply="Aplicar",

View File

@@ -348,6 +348,7 @@ return{
vib="Vibration",
voc="Voix",
-- autoMute="Mute while unfocused",
fine="Son d'erreur de Finesse",
-- cv="Voice Pack",
-- apply="Apply",

View File

@@ -372,6 +372,7 @@ return{
vib="Vibração",
voc="Voz",
-- autoMute="Mute while unfocused",
fine="Som Falha de destreza",
cv="Pacote de voz",
apply="Aplicar",

View File

@@ -265,6 +265,7 @@ return{
warn="!↑↑↑!",
vib="=~=",
autoMute="#x#",
fine="12 X 21",
voc="~~~",
apply="!",

View File

@@ -383,6 +383,7 @@ return{
vib="振动",
voc="语音",
autoMute="失去焦点自动静音",
fine="极简操作提示音",
cv="语音包",
apply="应用",

View File

@@ -84,6 +84,7 @@ scene.widgetList={
WIDGET.newSlider{name="vib", x=300, y=590,w=420,color='lN',unit=10,change=function()VIB(2)end,disp=SETval('vib'),code=SETsto('vib')},
WIDGET.newSlider{name="voc", x=300, y=660,w=420,color='lN',change=function()VOC.play('test')end,disp=SETval('voc'),code=SETsto('voc')},
WIDGET.newSwitch{name="autoMute",x=1150,y=190,disp=SETval('autoMute'),code=SETrev('autoMute')},
WIDGET.newSwitch{name="fine", x=1150,y=270,disp=SETval('fine'),code=function()SETTING.fine=not SETTING.fine if SETTING.fine then SFX.play('finesseError',.6)end end},
WIDGET.newSelector{name="cv", x=1100,y=380,w=200,list={'miya','naki','xiaoya','miku'},disp=function()return cv end,code=function(i)cv=i end},