设置
This commit is contained in:
parent
3c6a538338
commit
d930b3ded7
@ -1,5 +1,9 @@
|
||||
local GameSettingManager = class("GameSettingManager", BaseModule)
|
||||
|
||||
function GameSettingManager:showSelectOtherBtnUI()
|
||||
UIManager:showUI("app/ui/game_setting/select_other_btn_ui", {aniType = UIManager.ANI_TYPE.NONE})
|
||||
end
|
||||
|
||||
function GameSettingManager:showSettingUI()
|
||||
UIManager:showUI("app/ui/game_setting/game_setting_ui")
|
||||
end
|
||||
|
||||
@ -17,7 +17,6 @@ MainCityConst.BOTTOM_MODULE_KEY = {
|
||||
MainCityConst.BOTTOM_COUNT = 2
|
||||
|
||||
MainCityConst.LEFT_SIDE_BARS = {
|
||||
"app/ui/main_city/cell/side_bar_setting_cell",
|
||||
"app/ui/main_city/cell/side_bar_idle_cell",
|
||||
"app/ui/main_city/cell/side_bar_seven_days_cell",
|
||||
-- gm放最后一个
|
||||
|
||||
28
lua/app/ui/game_setting/select_other_btn_ui.lua
Normal file
28
lua/app/ui/game_setting/select_other_btn_ui.lua
Normal file
@ -0,0 +1,28 @@
|
||||
local SelectOtherBtnUI = class("SelectOtherBtnUI", BaseUI)
|
||||
|
||||
function SelectOtherBtnUI:ctor()
|
||||
end
|
||||
|
||||
function SelectOtherBtnUI:isFullScreen()
|
||||
return false
|
||||
end
|
||||
|
||||
function SelectOtherBtnUI:getPrefabPath()
|
||||
return "assets/prefabs/ui/setting/select_other_btn_ui.prefab"
|
||||
end
|
||||
|
||||
function SelectOtherBtnUI:onLoadRootComplete()
|
||||
self.uiMap = self.root:genAllChildren()
|
||||
self.uiMap["select_other_btn_ui.bg.mail_btn"]:addClickListener(function()
|
||||
|
||||
end)
|
||||
self.uiMap["select_other_btn_ui.bg.mail_btn.text"]:setText("临时文本:邮箱")
|
||||
|
||||
self.uiMap["select_other_btn_ui.bg.setting_btn"]:addClickListener(function()
|
||||
self:closeUI()
|
||||
ModuleManager.GameSettingManager:showSettingUI()
|
||||
end)
|
||||
self.uiMap["select_other_btn_ui.bg.setting_btn.text"]:setText("临时文本:设置")
|
||||
end
|
||||
|
||||
return SelectOtherBtnUI
|
||||
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3d6207c01bdc5884b8306334809a2a99
|
||||
guid: 2fd6ec9adda664c4cbb4741a9bad1e9e
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
@ -1,16 +0,0 @@
|
||||
local SideBarBaseCellComp = require "app/ui/main_city/cell/side_bar_base_cell"
|
||||
local SideBarSettingCell = class("SideBarMailCell", SideBarBaseCellComp)
|
||||
|
||||
function SideBarSettingCell:getIsOpen()
|
||||
return true
|
||||
end
|
||||
|
||||
function SideBarSettingCell:getIconRes()
|
||||
return "maincity_gm"
|
||||
end
|
||||
|
||||
function SideBarSettingCell:onClick()
|
||||
ModuleManager.GameSettingManager:showSettingUI()
|
||||
end
|
||||
|
||||
return SideBarSettingCell
|
||||
@ -427,6 +427,7 @@ end
|
||||
function MainCityUI:initSetting()
|
||||
self.settingbtn = self.uiMap["main_ui.top_node.setting_btn"]
|
||||
self.settingbtn:addClickListener(function()
|
||||
ModuleManager.GameSettingManager:showSelectOtherBtnUI()
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user