local BossStrategyCell = class("BossStrategyCell", BaseCell) function BossStrategyCell:init() local uiMap = self:getUIMap() self.line = uiMap['cell.line'] self.tx = uiMap['cell.difficulty_tx'] end function BossStrategyCell:refresh(params) self.line:setVisible(params.idx ~= 1) local str = "" if params.idx == params.curIdx then str = "" .. I18N:getGlobalText(I18N.GlobalConst.ADVENTURE_STRATEGY_DESC, params.idx) .. "" else str = "" .. I18N:getGlobalText(I18N.GlobalConst.ADVENTURE_STRATEGY_DESC, params.idx) .. "" end self.tx:setText(str) end return BossStrategyCell