diff --git a/lua/app/ui/game_setting/select_other_btn_ui.lua b/lua/app/ui/game_setting/select_other_btn_ui.lua index d0568cf2..e7ae54a7 100644 --- a/lua/app/ui/game_setting/select_other_btn_ui.lua +++ b/lua/app/ui/game_setting/select_other_btn_ui.lua @@ -82,9 +82,11 @@ function SelectOtherBtnUI:onLoadRootComplete() ModuleManager.BagManager:showBagMainUI() end) self.uiMap["select_other_btn_ui.bg.bag_btn.text"]:setText(I18N:getGlobalText(I18N.GlobalConst.BAG_DESC_1)) + else + self.uiMap["select_other_btn_ui.bg.bag_btn"]:setVisible(false) end - if Platform:getIsDevChannel() then + if EDITOR_MODE or Platform:getIsDevChannel() then cellCount = cellCount + 1 y = y - BTN_INTERVAL local gmBtn = self.uiMap["select_other_btn_ui.bg.gm_btn"] @@ -94,6 +96,8 @@ function SelectOtherBtnUI:onLoadRootComplete() ModuleManager.DevToolManager:showOrHideDevListUI() end) self.uiMap["select_other_btn_ui.bg.gm_btn.text"]:setText(I18N:getGlobalText(I18N.GlobalConst.SETTING_DESC)) + else + self.uiMap["select_other_btn_ui.bg.gm_btn"]:setVisible(false) end self.uiMap["select_other_btn_ui.bg"]:setSizeDeltaY(cellCount*BTN_INTERVAL - BTN_OFFSET*2)