fix bug
This commit is contained in:
parent
8792e41d83
commit
5f724a1491
@ -2,8 +2,6 @@ local BossSkillCell = class("BossSkillCell", BaseCell)
|
|||||||
|
|
||||||
function BossSkillCell:init()
|
function BossSkillCell:init()
|
||||||
self.baseObject:addClickListener(function()
|
self.baseObject:addClickListener(function()
|
||||||
-- self.battleController:showBuffTips(SIDE_DEF)
|
|
||||||
-- ModuleManager.TipsManager:showBattleBoardSkillTips(self.battleData:getHeroEntity(elementType, side), self.battleController, side)
|
|
||||||
ModuleManager.TipsManager:showBattleSkillTips(self.baseObject, nil, self.skillId)
|
ModuleManager.TipsManager:showBattleSkillTips(self.baseObject, nil, self.skillId)
|
||||||
end)
|
end)
|
||||||
local uiMap = self:getUIMap()
|
local uiMap = self:getUIMap()
|
||||||
|
|||||||
@ -23,7 +23,7 @@ function PlayerLevelUpUI:_display()
|
|||||||
local uiMap = self.root:genAllChildren()
|
local uiMap = self.root:genAllChildren()
|
||||||
self.uiMap = uiMap
|
self.uiMap = uiMap
|
||||||
|
|
||||||
uiMap["player_level_up_ui.bg"]:addClickListener(function()
|
self.root:addClickListener(function()
|
||||||
self:closeUI()
|
self:closeUI()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@ -33,11 +33,10 @@ function PlayerLevelUpUI:_display()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
local toLevel = DataManager.PlayerData:getLv()
|
local toLevel = DataManager.PlayerData:getLv()
|
||||||
uiMap["player_level_up_ui.title_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.PLAYER_LEVEL_UP_DESC, toLevel))
|
uiMap["player_level_up_ui.title_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.PLAYER_LEVEL_UP_DESC))
|
||||||
uiMap["player_level_up_ui.reward_title"]:setText(I18N:getGlobalText(I18N.GlobalConst.LEVEL_UP_REWARD))
|
uiMap["player_level_up_ui.reward_title"]:setText(I18N:getGlobalText(I18N.GlobalConst.LEVEL_UP_REWARD))
|
||||||
uiMap["player_level_up_ui.continue"]:setText(I18N:getGlobalText(I18N.GlobalConst.CLICK_TO_CONTINUE))
|
uiMap["player_level_up_ui.continue"]:setText(I18N:getGlobalText(I18N.GlobalConst.CLICK_TO_CONTINUE))
|
||||||
|
|
||||||
uiMap["player_level_up_ui.lv_img_l.text"]:setText(tostring(self.fromLevel))
|
|
||||||
uiMap["player_level_up_ui.lv_img_r.text"]:setText(tostring(toLevel))
|
uiMap["player_level_up_ui.lv_img_r.text"]:setText(tostring(toLevel))
|
||||||
local width = uiMap["player_level_up_ui.reward_title"]:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).preferredWidth
|
local width = uiMap["player_level_up_ui.reward_title"]:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).preferredWidth
|
||||||
uiMap["player_level_up_ui.r"]:setAnchoredPositionX(width/2 + 40)
|
uiMap["player_level_up_ui.r"]:setAnchoredPositionX(width/2 + 40)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user