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.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.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"]:setTouchEnable(true)
|
||||||
uiMap["test_login_ui.login_node.login_btn"]:addClickListener(function()
|
uiMap["test_login_ui.login_node.login_btn"]:addClickListener(function()
|
||||||
if not self.inputField.text or self.inputField.text == "" then
|
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 = self.root.lineSfxObjs or {}
|
||||||
self.root.lineSfxObjs[elementType] = self.root.lineSfxObjs[elementType] 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
|
local obj = self.root.lineSfxObjs[elementType][index].obj
|
||||||
obj:setActive(true)
|
obj:setActive(true)
|
||||||
func(obj)
|
func(obj)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
self.root.lineSfxObjs[elementType][index] = {
|
self.root.lineSfxObjs[elementType][index] = {
|
||||||
isLoaded = true
|
isLoaded = true
|
||||||
|
|||||||
@ -66,11 +66,12 @@ function MainComp:init()
|
|||||||
self.chapterPageBtnSelectImgs = {}
|
self.chapterPageBtnSelectImgs = {}
|
||||||
for i = 1, CHAPTER_PAGE do
|
for i = 1, CHAPTER_PAGE do
|
||||||
self.chapterPageBtns[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i]
|
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"]
|
local bg = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".bg"]
|
||||||
self.chapterPageBtnDescTxs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".desc_tx"]
|
self.chapterPageBtnCheckImgs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".bg.check_img"]
|
||||||
self.chapterPageBtnMaskImgs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".mask_img"]
|
self.chapterPageBtnDescTxs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".bg.desc_tx"]
|
||||||
self.chapterPageBtnSelectImgs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".select_img"]
|
self.chapterPageBtnMaskImgs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".bg.mask_img"]
|
||||||
self.chapterPageBtns[i]:addClickListener(function()
|
self.chapterPageBtnSelectImgs[i] = uiMap["main_comp.middle_bg.page_node.page_btn_" .. i .. ".bg.select_img"]
|
||||||
|
bg:addClickListener(function()
|
||||||
self.chapterStage = i
|
self.chapterStage = i
|
||||||
local chapterId = DataManager.ChapterData:getChapterCfgByPageAndStage(self.chapterPage, self.chapterStage)
|
local chapterId = DataManager.ChapterData:getChapterCfgByPageAndStage(self.chapterPage, self.chapterStage)
|
||||||
DataManager.ChapterData:setChapterId(chapterId)
|
DataManager.ChapterData:setChapterId(chapterId)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user