正式版

This commit is contained in:
chenxi 2023-06-05 21:55:44 +08:00
parent 5790cef72b
commit 4a7e11114a

View File

@ -46,15 +46,15 @@ function First:init()
end end
function First:initLanguage() function First:initLanguage()
-- self.language = PlayerPrefs.GetString("SELECTED_LANGUAGE", "") self.language = PlayerPrefs.GetString("SELECTED_LANGUAGE", "")
-- print("first init language " .. self.language) print("first init language " .. self.language)
-- if not LANGUAGES[self.language] then if not LANGUAGES[self.language] then
-- self.language = self:getSystemLanguage() self.language = self:getSystemLanguage()
-- if self.language == nil then if self.language == nil then
-- self.language = BFPlatform.GetCurrentLanguageInfo():GetFallbackLanguage() self.language = BFPlatform.GetCurrentLanguageInfo():GetFallbackLanguage()
-- end end
-- PlayerPrefs.SetString("SELECTED_LANGUAGE", self.language) PlayerPrefs.SetString("SELECTED_LANGUAGE", self.language)
-- end end
-- 根据语言来,不切换 -- 根据语言来,不切换
self.language = self:getSystemLanguage() self.language = self:getSystemLanguage()
if self.language == nil then if self.language == nil then
@ -492,7 +492,7 @@ function First:showDialog(contentStr, callback)
self.cancelBtnTrans.gameObject:SetActive(false) self.cancelBtnTrans.gameObject:SetActive(false)
self.confirmBtnTrans.localPosition = { self.confirmBtnTrans.localPosition = {
x = 0, x = 0,
y = -95, y = -120,
z = 0 z = 0
} }
end end
@ -507,7 +507,7 @@ function First:showDialogComplex(contentStr, okCallback, cancelCallback, confirm
self.cancelBtnTrans.gameObject:SetActive(true) self.cancelBtnTrans.gameObject:SetActive(true)
self.confirmBtnTrans.localPosition = { self.confirmBtnTrans.localPosition = {
x = 124, x = 124,
y = -95, y = -120,
z = 0 z = 0
} }
end end