1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

Remove unnecessary menu dvar

This commit is contained in:
Jbleezy 2024-01-22 00:48:31 -08:00
parent fc4a5ed007
commit ad0fc1124c
3 changed files with 7 additions and 7 deletions

View File

@ -134,7 +134,7 @@ CoD.MainLobby.OpenPlayerMatchPartyLobby = function(MainLobbyWidget, ClientInstan
if CoD.isZombie == true then
Engine.PartyHostSetUIState(CoD.PARTYHOST_STATE_SELECTING_PLAYLIST)
CoD.PlaylistCategoryFilter = "playermatch"
Engine.SetDvar("ui_game_lobby_open", 0)
CoD.PrivateGameLobby.InGameLobby = nil
MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller)
CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller)
else
@ -192,7 +192,7 @@ CoD.MainLobby.OpenCustomGamesLobby = function(MainLobbyWidget, ClientInstance)
-- CoD.SwitchToPrivateLobby(ClientInstance.controller)
if CoD.isZombie == true then
-- Engine.SetDvar("ui_zm_mapstartlocation", "")
Engine.SetDvar("ui_game_lobby_open", 0)
CoD.PrivateGameLobby.InGameLobby = nil
MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller)
-- CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller)
else
@ -212,7 +212,7 @@ CoD.MainLobby.OpenSoloLobby_Zombie = function(MainLobbyWidget, ClientInstance)
Engine.PartyHostSetUIState(CoD.PARTYHOST_STATE_SELECTING_PLAYLIST)
Dvar.party_maxplayers:set(1)
CoD.PlaylistCategoryFilter = CoD.Zombie.PLAYLIST_CATEGORY_FILTER_SOLOMATCH
Engine.SetDvar("ui_game_lobby_open", 0)
CoD.PrivateGameLobby.InGameLobby = nil
MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller)
-- CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller)
MainLobbyWidget:close()

View File

@ -115,7 +115,7 @@ function LUI.createMenu.SelectGameModeListZM(controller)
local self = CoD.Menu.New("SelectGameModeListZM")
self.controller = controller
if UIExpression.DvarBool(nil, "ui_game_lobby_open") == 1 then
if CoD.PrivateGameLobby.InGameLobby == true then
self:setPreviousMenu("PrivateOnlineGameLobby")
else
self:setPreviousMenu("MainLobby")
@ -176,7 +176,7 @@ local function mapListSelectionClickedEventHandler(self, event)
Engine.SetDvar("ui_zm_mapstartlocation", "tomb")
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 mapName = UIExpression.DvarString(nil, "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
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 mapName = UIExpression.DvarString(nil, "ui_mapname")
CoD.SwitchToPrivateLobby(self.controller) -- this changes "ui_gametype" and "ui_mapname"

View File

@ -456,7 +456,7 @@ end
CoD.PrivateGameLobby.OpenChangeStartLoc = function(PrivateGameLobbyWidget, ClientInstance)
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
local f27_local0 = PrivateGameLobbyWidget:openMenu("SelectMapListZM", ClientInstance.controller)
f27_local0:setPreviousMenu("SelectGameModeListZM")