设置
This commit is contained in:
parent
6ab80119eb
commit
9eeb439375
@ -14,7 +14,7 @@ function AccountBindUI:onLoadRootComplete()
|
|||||||
self.uiMap["account_bind_ui.title_bg_img.title_text"]:setText(I18N:getGlobalText(I18N.GlobalConst.MESSAGE_BOX_TITLE))
|
self.uiMap["account_bind_ui.title_bg_img.title_text"]:setText(I18N:getGlobalText(I18N.GlobalConst.MESSAGE_BOX_TITLE))
|
||||||
self.uiMap["account_bind_ui.title_bg_img.bg.content_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.BIND_TIPS_DESC))
|
self.uiMap["account_bind_ui.title_bg_img.bg.content_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.BIND_TIPS_DESC))
|
||||||
self:initBindBtn()
|
self:initBindBtn()
|
||||||
self.uiMap["account_bind_ui.close_btn"]:addClickListener(function()
|
self.uiMap["account_bind_ui.title_bg_img.close_btn"]:addClickListener(function()
|
||||||
self:closeUI()
|
self:closeUI()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
@ -3,9 +3,9 @@ local LanguageCell = class("LanguageCell", BaseCell)
|
|||||||
function LanguageCell:refresh(language)
|
function LanguageCell:refresh(language)
|
||||||
local uiMap = self:getUIMap()
|
local uiMap = self:getUIMap()
|
||||||
if language == I18N:getCurLanguage() then
|
if language == I18N:getCurLanguage() then
|
||||||
uiMap["language_cell.bg"]:setSprite(GConst.ATLAS_PATH.COMMON, "common_btn_blue_3")
|
uiMap["language_cell.bg"]:setSprite(GConst.ATLAS_PATH.UI_SETTING, "setting_bg_2")
|
||||||
else
|
else
|
||||||
uiMap["language_cell.bg"]:setSprite(GConst.ATLAS_PATH.COMMON, "common_btn_dark_4")
|
uiMap["language_cell.bg"]:setSprite(GConst.ATLAS_PATH.UI_SETTING, "setting_bg_1")
|
||||||
end
|
end
|
||||||
uiMap["language_cell.name_bg"]:setSprite(GConst.ATLAS_PATH.UI_SETTING, "language_" .. language)
|
uiMap["language_cell.name_bg"]:setSprite(GConst.ATLAS_PATH.UI_SETTING, "language_" .. language)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -31,7 +31,7 @@ function GameSettingUI:onPressBackspace()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function GameSettingUI:_display()
|
function GameSettingUI:_display()
|
||||||
self.uiMap["game_setting_ui.bg.title"]:setText(I18N:getGlobalText(I18N.GlobalConst.SETTING_DESC))
|
self.uiMap["game_setting_ui.bg.title_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.SETTING_DESC))
|
||||||
self.uiMap["game_setting_ui.bg.music_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.SETTING_DESC_MUSIC))
|
self.uiMap["game_setting_ui.bg.music_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.SETTING_DESC_MUSIC))
|
||||||
self.uiMap["game_setting_ui.bg.voice_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.SETTING_DESC_VOICE))
|
self.uiMap["game_setting_ui.bg.voice_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.SETTING_DESC_VOICE))
|
||||||
self.uiMap["game_setting_ui.bg.language_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.SETTING_DESC_LANGUAGE))
|
self.uiMap["game_setting_ui.bg.language_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.SETTING_DESC_LANGUAGE))
|
||||||
@ -59,8 +59,8 @@ end
|
|||||||
function GameSettingUI:initLoginBtn()
|
function GameSettingUI:initLoginBtn()
|
||||||
self:initGoogleLoginBtn()
|
self:initGoogleLoginBtn()
|
||||||
self:initAppleLoginBtn()
|
self:initAppleLoginBtn()
|
||||||
local deleteBtn = self.uiMap["game_setting_ui.bg.delete_btn"]
|
local deleteTx = self.uiMap["game_setting_ui.bg.delete_tx"]
|
||||||
deleteBtn:addClickListener(function()
|
deleteTx:addClickListener(function()
|
||||||
ModuleManager.AccountManager:showDeleteUI()
|
ModuleManager.AccountManager:showDeleteUI()
|
||||||
end)
|
end)
|
||||||
self:refreshAccountInfo()
|
self:refreshAccountInfo()
|
||||||
@ -152,15 +152,15 @@ function GameSettingUI:initCDKeyBtn()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function GameSettingUI:initSupportBtn()
|
function GameSettingUI:initSupportBtn()
|
||||||
if GFunc.isShenhe() then
|
-- if GFunc.isShenhe() then
|
||||||
self.uiMap["game_setting_ui.bg.support_tx"]:setAnchoredPositionY(-370)
|
-- self.uiMap["game_setting_ui.bg.support_tx"]:setAnchoredPositionY(-370)
|
||||||
self.uiMap["game_setting_ui.bg.support_icon"]:setAnchoredPositionY(-370)
|
-- self.uiMap["game_setting_ui.bg.support_icon"]:setAnchoredPositionY(-370)
|
||||||
self.uiMap["game_setting_ui.bg.support_btn"]:setAnchoredPositionY(-370)
|
-- self.uiMap["game_setting_ui.bg.support_btn"]:setAnchoredPositionY(-370)
|
||||||
else
|
-- else
|
||||||
self.uiMap["game_setting_ui.bg.support_tx"]:setAnchoredPositionY(-450)
|
-- self.uiMap["game_setting_ui.bg.support_tx"]:setAnchoredPositionY(-450)
|
||||||
self.uiMap["game_setting_ui.bg.support_icon"]:setAnchoredPositionY(-450)
|
-- self.uiMap["game_setting_ui.bg.support_icon"]:setAnchoredPositionY(-450)
|
||||||
self.uiMap["game_setting_ui.bg.support_btn"]:setAnchoredPositionY(-450)
|
-- self.uiMap["game_setting_ui.bg.support_btn"]:setAnchoredPositionY(-450)
|
||||||
end
|
-- end
|
||||||
|
|
||||||
self.uiMap["game_setting_ui.bg.support_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.SUPPORT_DESC_1))
|
self.uiMap["game_setting_ui.bg.support_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.SUPPORT_DESC_1))
|
||||||
self.uiMap["game_setting_ui.bg.support_btn.text"]:setText(I18N:getGlobalText(I18N.GlobalConst.SUPPORT_DESC_2))
|
self.uiMap["game_setting_ui.bg.support_btn.text"]:setText(I18N:getGlobalText(I18N.GlobalConst.SUPPORT_DESC_2))
|
||||||
@ -203,6 +203,18 @@ function GameSettingUI:_addListeners()
|
|||||||
self:refreshVoice()
|
self:refreshVoice()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
self.uiMap["game_setting_ui.bg.shake_bg"]:addClickListener(function()
|
||||||
|
-- local status = AudioManager:isEffectEnabled()
|
||||||
|
-- if not status then
|
||||||
|
-- AudioManager:setEffectVolume(1)
|
||||||
|
-- else
|
||||||
|
-- AudioManager:setEffectVolume(0)
|
||||||
|
-- end
|
||||||
|
-- self:refreshVoice()
|
||||||
|
GFunc.showToast("震动")
|
||||||
|
end)
|
||||||
|
|
||||||
self.uiMap["game_setting_ui.bg.language_btn"]:addClickListener(function()
|
self.uiMap["game_setting_ui.bg.language_btn"]:addClickListener(function()
|
||||||
ModuleManager.GameSettingManager:showLanguageUI()
|
ModuleManager.GameSettingManager:showLanguageUI()
|
||||||
end)
|
end)
|
||||||
@ -213,11 +225,13 @@ function GameSettingUI:_addListeners()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
self.uiMap["game_setting_ui.bg.tx_1"]:addClickListener(function()
|
self.uiMap["game_setting_ui.bg.tx_1"]:addClickListener(function()
|
||||||
GFunc.openUrl("https://perfeggsgame.com/tos.html")
|
-- GFunc.openUrl("https://perfeggsgame.com/tos.html")
|
||||||
|
GFunc.openUrl("https://www.baidu.com")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
self.uiMap["game_setting_ui.bg.tx_2"]:addClickListener(function()
|
self.uiMap["game_setting_ui.bg.tx_2"]:addClickListener(function()
|
||||||
GFunc.openUrl("https://perfeggsgame.com/pp.html")
|
-- GFunc.openUrl("https://perfeggsgame.com/pp.html")
|
||||||
|
GFunc.openUrl("https://www.baidu.com")
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -275,11 +289,11 @@ function GameSettingUI:refreshLinkBtns()
|
|||||||
curLanguage = GConst.LANGUAGE.ENGLISH
|
curLanguage = GConst.LANGUAGE.ENGLISH
|
||||||
end
|
end
|
||||||
if not GameSettingConst.COMMUNITY_URL[curLanguage] then
|
if not GameSettingConst.COMMUNITY_URL[curLanguage] then
|
||||||
bg:setSizeDeltaY(BG_DEFAULT_H)
|
-- bg:setSizeDeltaY(BG_DEFAULT_H)
|
||||||
node:setVisible(false)
|
node:setVisible(false)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
bg:setSizeDeltaY(BG_DEFAULT_H + 100)
|
-- bg:setSizeDeltaY(BG_DEFAULT_H + 100)
|
||||||
node:setVisible(true)
|
node:setVisible(true)
|
||||||
local communityDesc = uiMap["game_setting_ui.bg.community_node.discord_desc"]
|
local communityDesc = uiMap["game_setting_ui.bg.community_node.discord_desc"]
|
||||||
local communityBtn = uiMap["game_setting_ui.bg.community_node.discord"]
|
local communityBtn = uiMap["game_setting_ui.bg.community_node.discord"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user