--- --- Created by 谌建军. --- DateTime: 2017/12/13 17:04 --- local TipType = { guo = 0, qi = 1, xia = 4 } local EXPlayerPokerInfoView = import('.EXPlayerPokerInfoView') local EXCardType = import('.EXCardType') local EXCardCheck = import(".CardCheck") local EXPlayerSelfPokerInfoView = { _view = nil, _mainView = nil, _mask_liangpai = nil } local M = EXPlayerSelfPokerInfoView function M.new(view, mainView) setmetatable(M, { __index = EXPlayerPokerInfoView }) local self = setmetatable({}, { __index = M }) self._view = view self._mainView = mainView self.gameCtr = ControllerManager.GetController(GameController) self:init() return self end function M:init() local view = self._view EXPlayerPokerInfoView.init(self) self._view_tipsList = view:GetChild('list_tips') self._ctr_out = view:GetController('out') end function M:ShowTips(type) self._ctr_out.selectedIndex = 1 if type == 1 then self._view_tipsList:RemoveChildren() local obj = self._view_tipsList:AddItemFromPool() self.SetTipData(obj, TipType.qi) local obj = self._view_tipsList:AddItemFromPool() self.SetTipData(obj, TipType.xia) end end function M.SetTipData(obj, type) obj.data = {} obj.data.type = type obj:GetController('type').selectedIndex = type end function M:Clear() EXPlayerPokerInfoView.Clear(self) end return M