888协议字符串改为数字
parent
4034adec8e
commit
0d39226ccb
|
|
@ -45,7 +45,7 @@ local __pre_delete_card = false
|
||||||
-------------------------lingmeng---------------------------
|
-------------------------lingmeng---------------------------
|
||||||
function M:SendNextCard(card)
|
function M:SendNextCard(card)
|
||||||
local _data = {}
|
local _data = {}
|
||||||
_data["card"] = card
|
_data["card"] = tonumber(card)
|
||||||
local _client = ControllerManager.GameNetClinet
|
local _client = ControllerManager.GameNetClinet
|
||||||
_client:send(TX_Protocol.GAME_NEXT_CARD, _data)
|
_client:send(TX_Protocol.GAME_NEXT_CARD, _data)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ function M:InitView(url)
|
||||||
self._gps_style = 1
|
self._gps_style = 1
|
||||||
self._full = true
|
self._full = true
|
||||||
UIPackage.AddPackage("extend/majiang/lichuan/ui/Extend_MJ_LiChuan")
|
UIPackage.AddPackage("extend/majiang/lichuan/ui/Extend_MJ_LiChuan")
|
||||||
MJMainView.InitView(self, "ui://Main_Majiang/Main_new_" .. room.room_config.people_num)
|
MJMainView.InitView(self, string.format("ui://Main_Majiang/Main_new_%d_jiangxi", room.room_config.people_num))
|
||||||
self._hu_tip = HuTipView.new(self)
|
self._hu_tip = HuTipView.new(self)
|
||||||
|
|
||||||
self._view:GetChild('wanfa_text').text = room.room_config.people_num .. '人黎川麻将 ' .. room.score_times .. '倍'
|
self._view:GetChild('wanfa_text').text = room.room_config.people_num .. '人黎川麻将 ' .. room.score_times .. '倍'
|
||||||
|
|
@ -40,11 +40,12 @@ function M:InitView(url)
|
||||||
|
|
||||||
--lingmeng
|
--lingmeng
|
||||||
---[[
|
---[[
|
||||||
MJMainView.InitView(self, "ui://Main_Majiang/Main_new_" .. room.room_config.people_num)
|
|
||||||
--]]
|
--]]
|
||||||
self.jing = self._view:GetChild('jing')
|
self.jing = self._view:GetChild('jing')
|
||||||
|
|
||||||
self._state.onChanged:Add(function()
|
self._state.onChanged:Add(function()
|
||||||
|
print("==============================UpdatePlayerInfoView1")
|
||||||
self:UpdatePlayerInfoView()
|
self:UpdatePlayerInfoView()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue