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()