四人同步
parent
fb1a70d4af
commit
b76c8a1fa2
|
|
@ -203,9 +203,9 @@ function M:InitPlayerInfoView()
|
||||||
self._player_info = {}
|
self._player_info = {}
|
||||||
local _player_info = self._player_info
|
local _player_info = self._player_info
|
||||||
for i = 1, self._room.room_config.people_num do
|
for i = 1, self._room.room_config.people_num do
|
||||||
print("================================InitPlayerInfoView",
|
local tem = self._view:GetChild(string.format("player_info%d_%d", i, (self._state.selectedIndex % 2) + 1))
|
||||||
string.format("player_info%d_%d", i, (self._state.selectedIndex + 1) % 2))
|
print("lingmengplay", string.format("player_info%d_%d", i, (self._state.selectedIndex % 2) + 1))
|
||||||
local tem = self._view:GetChild(string.format("player_info%d_%d", i, (self._state.selectedIndex + 1) % 2))
|
|
||||||
_player_info[i] = PlayerInfoView.new(tem, self)
|
_player_info[i] = PlayerInfoView.new(tem, self)
|
||||||
tem.visible = false
|
tem.visible = false
|
||||||
end
|
end
|
||||||
|
|
@ -906,7 +906,8 @@ function M:UpdatePlayerInfoView()
|
||||||
local list = self._room.player_list
|
local list = self._room.player_list
|
||||||
|
|
||||||
for i = 1, self._room.room_config.people_num do
|
for i = 1, self._room.room_config.people_num do
|
||||||
local tem = self._view:GetChild(string.format("player_info%d_%d", i, (self._state.selectedIndex + 1) % 2))
|
local tem = self._view:GetChild(string.format("player_info%d_%d", i, (self._state.selectedIndex % 2) + 1))
|
||||||
|
print("lingmengplay", string.format("player_info%d_%d", i, (self._state.selectedIndex % 2) + 1))
|
||||||
_player_info[i] = PlayerInfoView.new(tem, self)
|
_player_info[i] = PlayerInfoView.new(tem, self)
|
||||||
_player_info[i]:FillData(list[i])
|
_player_info[i]:FillData(list[i])
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue