25.4.1.4
parent
96f5a05460
commit
5d1e0caefe
|
|
@ -21,29 +21,28 @@ function M:init(url)
|
||||||
local slider_music = view:GetChild('slider_vedio_music')
|
local slider_music = view:GetChild('slider_vedio_music')
|
||||||
local btn_music = view:GetChild('btn_vedio_music')
|
local btn_music = view:GetChild('btn_vedio_music')
|
||||||
local btn_sound = view:GetChild('btn_vedio_sound')
|
local btn_sound = view:GetChild('btn_vedio_sound')
|
||||||
print(GameApplication.Instance.MusicMute)
|
|
||||||
|
|
||||||
slider_sound.value = GameApplication.Instance.SoundValue
|
-- slider_sound.value = GameApplication.Instance.SoundValue
|
||||||
slider_music.value = GameApplication.Instance.MusicValue
|
-- slider_music.value = GameApplication.Instance.MusicValue
|
||||||
|
|
||||||
slider_music.onChanged:Add(function()
|
slider_music.onChanged:Add(function()
|
||||||
GameApplication.Instance.MusicValue = slider_music.value
|
-- GameApplication.Instance.MusicValue = slider_music.value
|
||||||
btn_music.selected = false
|
-- btn_music.selected = false
|
||||||
GameApplication.Instance.MusicMute = false;
|
-- GameApplication.Instance.MusicMute = false;
|
||||||
end)
|
end)
|
||||||
|
|
||||||
slider_sound.onChanged:Add(function()
|
slider_sound.onChanged:Add(function()
|
||||||
GameApplication.Instance.SoundValue = slider_sound.value
|
-- GameApplication.Instance.SoundValue = slider_sound.value
|
||||||
btn_sound.selected = false
|
-- btn_sound.selected = false
|
||||||
GameApplication.Instance.SoundMute = false;
|
-- GameApplication.Instance.SoundMute = false;
|
||||||
end)
|
end)
|
||||||
|
|
||||||
btn_sound.onClick:Add(function()
|
btn_sound.onClick:Add(function()
|
||||||
GameApplication.Instance.SoundMute = btn_sound.selected;
|
-- GameApplication.Instance.SoundMute = btn_sound.selected;
|
||||||
end)
|
end)
|
||||||
|
|
||||||
btn_music.onClick:Add(function()
|
btn_music.onClick:Add(function()
|
||||||
GameApplication.Instance.MusicMute = btn_music.selected;
|
-- GameApplication.Instance.MusicMute = btn_music.selected;
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local _btn_logout = self._view:GetChild('btn_switchAccount')
|
local _btn_logout = self._view:GetChild('btn_switchAccount')
|
||||||
|
|
@ -60,7 +59,7 @@ function M:init(url)
|
||||||
local btn_quit = view:GetChild('btn_exitAccount')
|
local btn_quit = view:GetChild('btn_exitAccount')
|
||||||
btn_quit.onClick:Set(
|
btn_quit.onClick:Set(
|
||||||
function()
|
function()
|
||||||
GameApplication.Instance:QuitGameOnUnity();
|
-- GameApplication.Instance:QuitGameOnUnity();
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
--[[
|
--[[
|
||||||
|
|
@ -77,13 +76,6 @@ function M:init(url)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue