优化
This commit is contained in:
parent
b20644f4cb
commit
9b5c3ab2fc
@ -72,6 +72,8 @@ function DungeonRuneFightUI:refreshRewardInfo()
|
|||||||
local descPassRound = uiMap["dungeon_rune_fight_ui.bg.desc_3"]
|
local descPassRound = uiMap["dungeon_rune_fight_ui.bg.desc_3"]
|
||||||
local imgPassIcon = uiMap["dungeon_rune_fight_ui.bg.icon"]
|
local imgPassIcon = uiMap["dungeon_rune_fight_ui.bg.icon"]
|
||||||
local rewardNode = uiMap["dungeon_rune_fight_ui.bg.reward_node"]
|
local rewardNode = uiMap["dungeon_rune_fight_ui.bg.reward_node"]
|
||||||
|
local lineR = uiMap["dungeon_rune_fight_ui.bg.line_r"]
|
||||||
|
local lineL = uiMap["dungeon_rune_fight_ui.bg.line_l"]
|
||||||
rewardNode:setActive(not passed)
|
rewardNode:setActive(not passed)
|
||||||
descPassRound:setVisible(passed)
|
descPassRound:setVisible(passed)
|
||||||
imgPassIcon:setVisible(passed)
|
imgPassIcon:setVisible(passed)
|
||||||
@ -81,7 +83,11 @@ function DungeonRuneFightUI:refreshRewardInfo()
|
|||||||
-- local round = self.runeData:getChapterPassRound(self.id)
|
-- local round = self.runeData:getChapterPassRound(self.id)
|
||||||
-- descPassRound:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_MIN, round))
|
-- descPassRound:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_MIN, round))
|
||||||
-- GFunc.centerImgAndTx(imgPassIcon, descPassRound, 5)
|
-- GFunc.centerImgAndTx(imgPassIcon, descPassRound, 5)
|
||||||
|
lineR:setVisible(false)
|
||||||
|
lineL:setVisible(false)
|
||||||
else
|
else
|
||||||
|
lineR:setVisible(true)
|
||||||
|
lineL:setVisible(true)
|
||||||
if not self.rewardCells then
|
if not self.rewardCells then
|
||||||
self.rewardCells = {}
|
self.rewardCells = {}
|
||||||
for i = 1, 4 do
|
for i = 1, 4 do
|
||||||
@ -124,7 +130,7 @@ function DungeonRuneFightUI:refreshFightBtn()
|
|||||||
if passed then
|
if passed then
|
||||||
descAgain:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_DESC_2))
|
descAgain:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_DESC_2))
|
||||||
-- title:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_DESC_6))
|
-- title:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_DESC_6))
|
||||||
title:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_DESC_3))
|
title:setText(GConst.EMPTY_STRING)
|
||||||
else
|
else
|
||||||
desc:setText(I18N:getGlobalText(I18N.GlobalConst.TASK_CHALLENGE))
|
desc:setText(I18N:getGlobalText(I18N.GlobalConst.TASK_CHALLENGE))
|
||||||
num:setText(1)
|
num:setText(1)
|
||||||
|
|||||||
@ -23,13 +23,16 @@ end
|
|||||||
function DungeonRuneRebirthUI:_display()
|
function DungeonRuneRebirthUI:_display()
|
||||||
local uiMap = self.root:genAllChildren()
|
local uiMap = self.root:genAllChildren()
|
||||||
uiMap["dungeon_rune_rebirth_ui.title_bg_img.title_text"]:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_2))
|
uiMap["dungeon_rune_rebirth_ui.title_bg_img.title_text"]:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_2))
|
||||||
uiMap["dungeon_rune_rebirth_ui.title_bg_img.content_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_3))
|
local desc1
|
||||||
local desc2
|
local desc2
|
||||||
if self.isHpOver then
|
if self.isHpOver then
|
||||||
|
desc1 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_3)
|
||||||
desc2 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_4)
|
desc2 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_4)
|
||||||
else
|
else
|
||||||
|
desc1 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_6)
|
||||||
desc2 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_5)
|
desc2 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_5)
|
||||||
end
|
end
|
||||||
|
uiMap["dungeon_rune_rebirth_ui.title_bg_img.content_tx"]:setText(desc1)
|
||||||
uiMap["dungeon_rune_rebirth_ui.title_bg_img.content_tx_2"]:setText(desc2)
|
uiMap["dungeon_rune_rebirth_ui.title_bg_img.content_tx_2"]:setText(desc2)
|
||||||
uiMap["dungeon_rune_rebirth_ui.title_bg_img.desc_close"]:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_DESC_7))
|
uiMap["dungeon_rune_rebirth_ui.title_bg_img.desc_close"]:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_DESC_7))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user