2025-12-17 21:08:27 +08:00
|
|
|
SettingViewNew = {}
|
|
|
|
|
|
|
|
|
|
local M = SettingViewNew
|
|
|
|
|
|
|
|
|
|
function SettingViewNew.new()
|
|
|
|
|
setmetatable(M, { __index = BaseView })
|
|
|
|
|
local self = setmetatable({}, { __index = M })
|
|
|
|
|
self.class = "SettingViewNew"
|
|
|
|
|
self._full = true
|
|
|
|
|
return self
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function M:init()
|
|
|
|
|
local view = self._view
|
|
|
|
|
|
2025-12-22 20:49:57 +08:00
|
|
|
local grid = view.transform:Find("grid")
|
|
|
|
|
|
|
|
|
|
local btnGuide = grid:Find("btnGuide")
|
|
|
|
|
btnGuide = btnGuide:GetComponent(typeof(UnityEngine.UI.Button))
|
|
|
|
|
LuaUIHelper:AddButtonClick(btnGuide, function()
|
|
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
local btnLine = grid:Find("btnLine")
|
|
|
|
|
btnLine = btnLine:GetComponent(typeof(UnityEngine.UI.Button))
|
|
|
|
|
LuaUIHelper:AddButtonClick(btnLine, function()
|
|
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
local btnMusic = grid:Find("btnMusic")
|
|
|
|
|
btnMusic = btnMusic:GetComponent(typeof(UnityEngine.UI.Button))
|
|
|
|
|
LuaUIHelper:AddButtonClick(btnMusic, function()
|
|
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
local btnAudio = grid:Find("btnAudio")
|
|
|
|
|
btnAudio = btnAudio:GetComponent(typeof(UnityEngine.UI.Button))
|
|
|
|
|
LuaUIHelper:AddButtonClick(btnAudio, function()
|
|
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
local btnSettingLanguage = grid:Find("btnSettingLanguage")
|
|
|
|
|
btnSettingLanguage = btnSettingLanguage:GetComponent(typeof(UnityEngine.UI.Button))
|
|
|
|
|
LuaUIHelper:AddButtonClick(btnSettingLanguage, function()
|
|
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
local btnPwd = grid:Find("btnPwd")
|
|
|
|
|
btnPwd = btnPwd:GetComponent(typeof(UnityEngine.UI.Button))
|
|
|
|
|
LuaUIHelper:AddButtonClick(btnPwd, function()
|
|
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
local btnPwdSave = grid:Find("btnPwdSave")
|
|
|
|
|
btnPwdSave = btnPwdSave:GetComponent(typeof(UnityEngine.UI.Button))
|
|
|
|
|
LuaUIHelper:AddButtonClick(btnPwdSave, function()
|
|
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
local btnMoneyPwd = grid:Find("btnMoneyPwd")
|
|
|
|
|
btnMoneyPwd = btnMoneyPwd:GetComponent(typeof(UnityEngine.UI.Button))
|
|
|
|
|
LuaUIHelper:AddButtonClick(btnMoneyPwd, function()
|
|
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
local btnAccountDelete = grid:Find("btnAccountDelete")
|
|
|
|
|
btnAccountDelete = btnAccountDelete:GetComponent(typeof(UnityEngine.UI.Button))
|
|
|
|
|
LuaUIHelper:AddButtonClick(btnAccountDelete, function()
|
|
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
-- local bg = view.transform:Find("imageBG")
|
|
|
|
|
-- bg = bg:GetComponent(typeof(UnityEngine.UI.Image))
|
|
|
|
|
-- bg.sprite = CommonUISprite:GetSprite("bg1")
|
2025-12-17 21:08:27 +08:00
|
|
|
end
|