jxlast/lua_probject/extend_project/extend/poker2/suoha/ExResultView.lua

48 lines
1.3 KiB
Lua

---
--- Created by 谌建军.
--- DateTime: 2017/12/19 11:05
---
require("Game.View.ResultView")
local EXResultView = {}
local M = EXResultView
function EXResultView.new(blur_view, data, roomid, over, win_seat, dissolve, remaincards)
setmetatable(M, { __index = ResultView })
local self = setmetatable({}, { __index = M })
self.class = "EXResultView"
self._currenIndex = 0
self._close_zone = false
--self._blur_view = blur_view
self._gamectr = ControllerManager.GetController(GameController)
self:init("ui://Extend_Poker_SuoHa/Clearing", data, roomid, over, win_seat, dissolve, remaincards)
print("=======================lingmengresult", data, roomid, over, win_seat, dissolve, remaincards)
return self
end
function M:init(url, data, roomid, over, win_seat, dissolve, remaincards)
ResultView.init(self, url, true)
local _gamectr = ControllerManager.GetController(GameController)
local room = DataManager.CurrenRoom
self._view:GetChild('btn_nextRound').onClick:Set(function()
if self._callback_backReady then
self._callback_backReady()
else
_gamectr:PlayerReady()
end
self:Destroy()
end)
end
function M:InitBackReady(callback)
if callback then
self._callback_backReady = callback
end
end
return M