mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-08 06:12:17 -05:00
Remove unnecessary menu dvar
This commit is contained in:
parent
fc4a5ed007
commit
ad0fc1124c
@ -134,7 +134,7 @@ CoD.MainLobby.OpenPlayerMatchPartyLobby = function(MainLobbyWidget, ClientInstan
|
|||||||
if CoD.isZombie == true then
|
if CoD.isZombie == true then
|
||||||
Engine.PartyHostSetUIState(CoD.PARTYHOST_STATE_SELECTING_PLAYLIST)
|
Engine.PartyHostSetUIState(CoD.PARTYHOST_STATE_SELECTING_PLAYLIST)
|
||||||
CoD.PlaylistCategoryFilter = "playermatch"
|
CoD.PlaylistCategoryFilter = "playermatch"
|
||||||
Engine.SetDvar("ui_game_lobby_open", 0)
|
CoD.PrivateGameLobby.InGameLobby = nil
|
||||||
MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller)
|
MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller)
|
||||||
CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller)
|
CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller)
|
||||||
else
|
else
|
||||||
@ -192,7 +192,7 @@ CoD.MainLobby.OpenCustomGamesLobby = function(MainLobbyWidget, ClientInstance)
|
|||||||
-- CoD.SwitchToPrivateLobby(ClientInstance.controller)
|
-- CoD.SwitchToPrivateLobby(ClientInstance.controller)
|
||||||
if CoD.isZombie == true then
|
if CoD.isZombie == true then
|
||||||
-- Engine.SetDvar("ui_zm_mapstartlocation", "")
|
-- Engine.SetDvar("ui_zm_mapstartlocation", "")
|
||||||
Engine.SetDvar("ui_game_lobby_open", 0)
|
CoD.PrivateGameLobby.InGameLobby = nil
|
||||||
MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller)
|
MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller)
|
||||||
-- CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller)
|
-- CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller)
|
||||||
else
|
else
|
||||||
@ -212,7 +212,7 @@ CoD.MainLobby.OpenSoloLobby_Zombie = function(MainLobbyWidget, ClientInstance)
|
|||||||
Engine.PartyHostSetUIState(CoD.PARTYHOST_STATE_SELECTING_PLAYLIST)
|
Engine.PartyHostSetUIState(CoD.PARTYHOST_STATE_SELECTING_PLAYLIST)
|
||||||
Dvar.party_maxplayers:set(1)
|
Dvar.party_maxplayers:set(1)
|
||||||
CoD.PlaylistCategoryFilter = CoD.Zombie.PLAYLIST_CATEGORY_FILTER_SOLOMATCH
|
CoD.PlaylistCategoryFilter = CoD.Zombie.PLAYLIST_CATEGORY_FILTER_SOLOMATCH
|
||||||
Engine.SetDvar("ui_game_lobby_open", 0)
|
CoD.PrivateGameLobby.InGameLobby = nil
|
||||||
MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller)
|
MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller)
|
||||||
-- CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller)
|
-- CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller)
|
||||||
MainLobbyWidget:close()
|
MainLobbyWidget:close()
|
||||||
|
@ -115,7 +115,7 @@ function LUI.createMenu.SelectGameModeListZM(controller)
|
|||||||
local self = CoD.Menu.New("SelectGameModeListZM")
|
local self = CoD.Menu.New("SelectGameModeListZM")
|
||||||
self.controller = controller
|
self.controller = controller
|
||||||
|
|
||||||
if UIExpression.DvarBool(nil, "ui_game_lobby_open") == 1 then
|
if CoD.PrivateGameLobby.InGameLobby == true then
|
||||||
self:setPreviousMenu("PrivateOnlineGameLobby")
|
self:setPreviousMenu("PrivateOnlineGameLobby")
|
||||||
else
|
else
|
||||||
self:setPreviousMenu("MainLobby")
|
self:setPreviousMenu("MainLobby")
|
||||||
@ -176,7 +176,7 @@ local function mapListSelectionClickedEventHandler(self, event)
|
|||||||
Engine.SetDvar("ui_zm_mapstartlocation", "tomb")
|
Engine.SetDvar("ui_zm_mapstartlocation", "tomb")
|
||||||
end
|
end
|
||||||
|
|
||||||
if UIExpression.DvarBool(nil, "ui_game_lobby_open") == 0 then
|
if CoD.PrivateGameLobby.InGameLobby == nil then
|
||||||
local gameType = UIExpression.DvarString(nil, "ui_gametype")
|
local gameType = UIExpression.DvarString(nil, "ui_gametype")
|
||||||
local mapName = UIExpression.DvarString(nil, "ui_mapname")
|
local mapName = UIExpression.DvarString(nil, "ui_mapname")
|
||||||
CoD.SwitchToPrivateLobby(self.controller) -- this changes "ui_gametype" and "ui_mapname"
|
CoD.SwitchToPrivateLobby(self.controller) -- this changes "ui_gametype" and "ui_mapname"
|
||||||
@ -298,7 +298,7 @@ local function locationListSelectionClickedEventHandler(self, event)
|
|||||||
-- TODO: set dvars when location is added
|
-- TODO: set dvars when location is added
|
||||||
end
|
end
|
||||||
|
|
||||||
if UIExpression.DvarBool(nil, "ui_game_lobby_open") == 0 then
|
if CoD.PrivateGameLobby.InGameLobby == nil then
|
||||||
local gameType = UIExpression.DvarString(nil, "ui_gametype")
|
local gameType = UIExpression.DvarString(nil, "ui_gametype")
|
||||||
local mapName = UIExpression.DvarString(nil, "ui_mapname")
|
local mapName = UIExpression.DvarString(nil, "ui_mapname")
|
||||||
CoD.SwitchToPrivateLobby(self.controller) -- this changes "ui_gametype" and "ui_mapname"
|
CoD.SwitchToPrivateLobby(self.controller) -- this changes "ui_gametype" and "ui_mapname"
|
||||||
|
@ -456,7 +456,7 @@ end
|
|||||||
|
|
||||||
CoD.PrivateGameLobby.OpenChangeStartLoc = function(PrivateGameLobbyWidget, ClientInstance)
|
CoD.PrivateGameLobby.OpenChangeStartLoc = function(PrivateGameLobbyWidget, ClientInstance)
|
||||||
Engine.PartyHostSetUIState(CoD.PARTYHOST_STATE_SELECTING_GAMETYPE)
|
Engine.PartyHostSetUIState(CoD.PARTYHOST_STATE_SELECTING_GAMETYPE)
|
||||||
Engine.SetDvar("ui_game_lobby_open", 1)
|
CoD.PrivateGameLobby.InGameLobby = true
|
||||||
if UIExpression.DvarString(nil, "ui_gameType") == "zclassic" then
|
if UIExpression.DvarString(nil, "ui_gameType") == "zclassic" then
|
||||||
local f27_local0 = PrivateGameLobbyWidget:openMenu("SelectMapListZM", ClientInstance.controller)
|
local f27_local0 = PrivateGameLobbyWidget:openMenu("SelectMapListZM", ClientInstance.controller)
|
||||||
f27_local0:setPreviousMenu("SelectGameModeListZM")
|
f27_local0:setPreviousMenu("SelectGameModeListZM")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user