fix bug
This commit is contained in:
parent
8cdf183222
commit
5a853ec58e
@ -41,7 +41,7 @@ function TestLoginUI:onLoadRootComplete()
|
||||
|
||||
uiMap["test_login_ui.loading_text"]:setText(I18N:getGlobalText(I18N.GlobalConst.LOADING_DESC))
|
||||
uiMap["test_login_ui.copy_account_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.CLICK_COPY_ACOUNT_DESC))
|
||||
uiMap["test_login_ui.login_node.login_btn.text"]:setText(I18N:getGlobalText(I18N.GlobalConst.TURNTABLE_BUTTON))
|
||||
uiMap["test_login_ui.login_node.login_btn.text"]:setText(I18N:getGlobalText(I18N.GlobalConst.ACT_PVP_DESC_2))
|
||||
uiMap["test_login_ui.login_node.login_btn"]:setTouchEnable(true)
|
||||
uiMap["test_login_ui.login_node.login_btn"]:addClickListener(function()
|
||||
if not self.inputField.text or self.inputField.text == "" then
|
||||
|
||||
@ -2217,10 +2217,12 @@ function BattleBaseUI:getSfxLine(elementType, index, func)
|
||||
|
||||
self.root.lineSfxObjs = self.root.lineSfxObjs or {}
|
||||
self.root.lineSfxObjs[elementType] = self.root.lineSfxObjs[elementType] or {}
|
||||
if self.root.lineSfxObjs[elementType] and self.root.lineSfxObjs[elementType][index] and self.root.lineSfxObjs[elementType][index].obj and func then
|
||||
if self.root.lineSfxObjs[elementType] and self.root.lineSfxObjs[elementType][index] then
|
||||
if self.root.lineSfxObjs[elementType][index].obj and func then
|
||||
local obj = self.root.lineSfxObjs[elementType][index].obj
|
||||
obj:setActive(true)
|
||||
func(obj)
|
||||
end
|
||||
else
|
||||
self.root.lineSfxObjs[elementType][index] = {
|
||||
isLoaded = true
|
||||
|
||||
@ -66,11 +66,12 @@ function MainComp:init()
|
||||
self.chapterPageBtnSelectImgs = {}
|
||||
for i = 1, CHAPTER_PAGE do
|
||||
self.chapterPageBtns[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i]
|
||||
self.chapterPageBtnCheckImgs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".check_img"]
|
||||
self.chapterPageBtnDescTxs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".desc_tx"]
|
||||
self.chapterPageBtnMaskImgs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".mask_img"]
|
||||
self.chapterPageBtnSelectImgs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".select_img"]
|
||||
self.chapterPageBtns[i]:addClickListener(function()
|
||||
local bg = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".bg"]
|
||||
self.chapterPageBtnCheckImgs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".bg.check_img"]
|
||||
self.chapterPageBtnDescTxs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".bg.desc_tx"]
|
||||
self.chapterPageBtnMaskImgs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".bg.mask_img"]
|
||||
self.chapterPageBtnSelectImgs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".bg.select_img"]
|
||||
bg:addClickListener(function()
|
||||
self.chapterStage = i
|
||||
local chapterId = DataManager.ChapterData:getChapterCfgByPageAndStage(self.chapterPage, self.chapterStage)
|
||||
DataManager.ChapterData:setChapterId(chapterId)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user