From 40301d2f4ee58f527fe7665a17ba212f5d8a097c Mon Sep 17 00:00:00 2001 From: 1076390229 <1076390229@qq.com> Date: Wed, 30 Jul 2025 22:31:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=81=E8=A7=82=E6=8D=A2=E8=83=8C=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base_project/Game/View/WitnessView.lua | 17 +++++++++++------ .../extend/majiang/fuzhou/EXWitnessView.lua | 1 + .../extend/majiang/jinxi/EXWitnessView.lua | 1 + .../extend/majiang/lichuan/EXWitnessView.lua | 5 +---- .../extend/majiang/nancheng/EXWitnessView.lua | 1 + 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/lua_probject/base_project/Game/View/WitnessView.lua b/lua_probject/base_project/Game/View/WitnessView.lua index 9086275c..770a720e 100644 --- a/lua_probject/base_project/Game/View/WitnessView.lua +++ b/lua_probject/base_project/Game/View/WitnessView.lua @@ -11,17 +11,22 @@ local bg_config = { local WitnessView = {} setmetatable(WitnessView, { __index = BaseView }) function WitnessView:init() - self.btn_setting = self._view:GetChild("btn_setting") - self.btn_setting.onClick:Set(function() - local view = MJSettingView.new(self, true) - view:Show() - end) end function WitnessView:InitView() + + self.btn_setting = self._view:GetChild("btn_setting") + + self.com_logocType = self._view:GetChild("com_logo"):GetController("cType") + + self.btn_setting.onClick:Set(function() + local view = MJSettingView.new(self, true) + view:Show() + end) + local default_bg = 1 TableBG.LoadTableBG(default_bg, self._room.game_id, self._root_view, bg_config) end -return WitnessView \ No newline at end of file +return WitnessView diff --git a/lua_probject/extend_project/extend/majiang/fuzhou/EXWitnessView.lua b/lua_probject/extend_project/extend/majiang/fuzhou/EXWitnessView.lua index 6ea7c562..753809a5 100644 --- a/lua_probject/extend_project/extend/majiang/fuzhou/EXWitnessView.lua +++ b/lua_probject/extend_project/extend/majiang/fuzhou/EXWitnessView.lua @@ -111,6 +111,7 @@ function M:InitView(url) ------------------------------------------------------- self._ctr_state.selectedIndex = 4 + self.com_logocType.selectedIndex = 0 end function M:EventInit() diff --git a/lua_probject/extend_project/extend/majiang/jinxi/EXWitnessView.lua b/lua_probject/extend_project/extend/majiang/jinxi/EXWitnessView.lua index 2f24551d..ea576524 100644 --- a/lua_probject/extend_project/extend/majiang/jinxi/EXWitnessView.lua +++ b/lua_probject/extend_project/extend/majiang/jinxi/EXWitnessView.lua @@ -110,6 +110,7 @@ function M:InitView(url) ------------------------------------------------------- self._ctr_state.selectedIndex = 4 + self.com_logocType.selectedIndex = 3 end function M:EventInit() diff --git a/lua_probject/extend_project/extend/majiang/lichuan/EXWitnessView.lua b/lua_probject/extend_project/extend/majiang/lichuan/EXWitnessView.lua index 2858a27c..8029cc63 100644 --- a/lua_probject/extend_project/extend/majiang/lichuan/EXWitnessView.lua +++ b/lua_probject/extend_project/extend/majiang/lichuan/EXWitnessView.lua @@ -132,13 +132,10 @@ function M:InitView(url) end) end - self._view:GetChild('btn_setting').onClick:Add(handler(self, function() - local settingView = SettingView.new(self, 1) - settingView:Show() - end)) ------------------------------------------------------- self._ctr_state.selectedIndex = 4 + self.com_logocType.selectedIndex = 2 end function M:EventInit() diff --git a/lua_probject/extend_project/extend/majiang/nancheng/EXWitnessView.lua b/lua_probject/extend_project/extend/majiang/nancheng/EXWitnessView.lua index f54f5386..85704d16 100644 --- a/lua_probject/extend_project/extend/majiang/nancheng/EXWitnessView.lua +++ b/lua_probject/extend_project/extend/majiang/nancheng/EXWitnessView.lua @@ -110,6 +110,7 @@ function M:InitView(url) ------------------------------------------------------- self._ctr_state.selectedIndex = 4 + self.com_logocType.selectedIndex = 1 end function M:EventInit()