mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
Updated sounds again, added done.ogg
This commit is contained in:
@@ -818,13 +818,13 @@ RegisterNUICallback( "setAntennaMode", function( data )
|
||||
if ( RADAR:IsPowerOn() and RADAR:IsMenuOpen() ) then
|
||||
RADAR:SetMenuState( false )
|
||||
RADAR:SendSettingUpdate()
|
||||
SendNUIMessage( { _type = "audio", name = "done", vol = RADAR:GetSettingValue( "beep" ) } )
|
||||
else
|
||||
RADAR:SetAntennaMode( data.value, tonumber( data.mode ), function()
|
||||
SendNUIMessage( { _type = "antennaMode", ant = data.value, mode = tonumber( data.mode ) } )
|
||||
SendNUIMessage( { _type = "audio", name = "beep", vol = RADAR:GetSettingValue( "beep" ) } )
|
||||
end )
|
||||
end
|
||||
|
||||
SendNUIMessage( { _type = "audio", name = "beep", vol = RADAR:GetSettingValue( "beep" ) } )
|
||||
end )
|
||||
|
||||
RegisterNUICallback( "toggleAntenna", function( data )
|
||||
|
||||
BIN
nui/beep.ogg
BIN
nui/beep.ogg
Binary file not shown.
BIN
nui/done.ogg
Normal file
BIN
nui/done.ogg
Normal file
Binary file not shown.
@@ -16,6 +16,7 @@ const audioNames =
|
||||
beep: "beep.ogg",
|
||||
xmit_on: "xmit_on.ogg",
|
||||
xmit_off: "xmit_off.ogg",
|
||||
done: "done.ogg"
|
||||
}
|
||||
|
||||
// Setup the main const element structure, this way we can easily access elements without having the mess
|
||||
|
||||
Reference in New Issue
Block a user