From 288a46eca335a5c22facdde7064f84e15ea7ec6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=AE=B6=E7=82=9C?= <2029049582@qq.com> Date: Thu, 24 Apr 2025 20:35:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=97=E5=9F=8E=E5=9B=9B=E4=BA=BA=E7=94=A8?= =?UTF-8?q?=E6=96=B0=E8=A7=92=E8=89=B2=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend/majiang/nancheng/EXPlayerInfoView.lua | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/lua_probject/extend_project/extend/majiang/nancheng/EXPlayerInfoView.lua b/lua_probject/extend_project/extend/majiang/nancheng/EXPlayerInfoView.lua index f9af514c..85850ecf 100644 --- a/lua_probject/extend_project/extend/majiang/nancheng/EXPlayerInfoView.lua +++ b/lua_probject/extend_project/extend/majiang/nancheng/EXPlayerInfoView.lua @@ -17,14 +17,7 @@ function M.new(view, mainView) end function M:init() - if self._main_view._room.room_config.people_num ~= 2 then - PlayerInfoView.init(self) - self._tex_score = self._view:GetChild("info"):GetChild("tex_score1") - self._tex_score2 = self._view:GetChild("info"):GetChild("tex_score2") - self._ct_score = self._view:GetChild("info"):GetController("score") - else - PlayerInfoView_copy.init(self) - end + PlayerInfoView_copy.init(self) end function M:ShowInteraction(type, str) @@ -57,12 +50,7 @@ function M:UpdateRemainCard(card_num, hide) end function M:FillData(player) - if self._main_view._room.room_config.people_num == 2 then - PlayerInfoView_copy.FillData(self, player) - else - PlayerInfoView.FillData(self, player) - self:UpdateScore(player.total_score) - end + PlayerInfoView_copy.FillData(self, player) end function M:UpdateScore()