| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- local UIWaitingCtr = class("UIWaitingCtr", require("UICtrBase"))
- function UIWaitingCtr:Init(view)
- self.view = view
- self.NoticeType = -1
- self.NoticeText = ""
- self.TimeData = nil
- end
- function UIWaitingCtr:SetData(data)
- self.asyncIdx = 0
- if data == nil then return end
- self.data = data
- self.NoticeType = -1
- self.NoticeText = ""
- self.TimeData = nil
-
- if self.data then
- self.NoticeType = self.data[1] or -1
- self.NoticeText = self.data[2] or ""
- self.TimeData = self.data[3]
- end
- end
- function UIWaitingCtr:GetAsyncIdx()
- self.asyncIdx = self.asyncIdx + 1
- return self.asyncIdx
- end
- function UIWaitingCtr:GetData()
- return self.data
- end
- function UIWaitingCtr:OnDispose()
- self.data = nil
- self.view = nil
- end
- function UIWaitingCtr:GetNoticeType()
- return self.NoticeType
- end
- return UIWaitingCtr
|