Readability + filename typo

This commit is contained in:
WantedDV 2023-04-20 19:35:53 -02:30
parent bf30653fc2
commit 40fe62cf9f
2 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ local enableLargeServerBrowserButton = true -- toggle large server browser butto
local utils = require("utils") local utils = require("utils")
require("datasources_start_menu_tabs") require("datasources_start_menu_tabs")
require("datasources_change_map_categories") require("datasources_change_map_categories")
require("datasources_gamesettingslyout_buttons") require("datasources_gamesettingsflyout_buttons")
CoD.LobbyButtons.MP_PUBLIC_MATCH = { CoD.LobbyButtons.MP_PUBLIC_MATCH = {
stringRef = "MENU_PLAY_CAPS", stringRef = "MENU_PLAY_CAPS",
@ -77,7 +77,7 @@ CoD.LobbyButtons.SERVER_BROWSER = {
customId = "btnDedicated" customId = "btnDedicated"
} }
local lobbyMapVoteIsEnabled = enableLobbyMapVote local shouldShowMapVote = enableLobbyMapVote
local lobbyMapVote = function(lobbyMapVoteIsEnabled) local lobbyMapVote = function(lobbyMapVoteIsEnabled)
if lobbyMapVoteIsEnabled == true then if lobbyMapVoteIsEnabled == true then
Engine.Exec(nil, "LobbyStopDemo") Engine.Exec(nil, "LobbyStopDemo")
@ -99,7 +99,7 @@ local addCustomButtons = function(controller, menuId, buttonTable, isLeader)
end end
if menuId == LobbyData.UITargets.UI_MPLOBBYONLINE.id then if menuId == LobbyData.UITargets.UI_MPLOBBYONLINE.id then
lobbyMapVoteIsEnabled = enableLobbyMapVote shouldShowMapVote = enableLobbyMapVote
if enableLargeServerBrowserButton then if enableLargeServerBrowserButton then
utils.AddLargeButton(controller, buttonTable, CoD.LobbyButtons.SERVER_BROWSER, 1) utils.AddLargeButton(controller, buttonTable, CoD.LobbyButtons.SERVER_BROWSER, 1)
end end
@ -110,8 +110,8 @@ local addCustomButtons = function(controller, menuId, buttonTable, isLeader)
utils.AddSmallButton(controller, buttonTable, CoD.LobbyButtons.GameSettingsFlyoutMP, 2) utils.AddSmallButton(controller, buttonTable, CoD.LobbyButtons.GameSettingsFlyoutMP, 2)
utils.AddSpacer(buttonTable, utils.GetButtonIndex(buttonTable, CoD.LobbyButtons.GameSettingsFlyoutMP)) utils.AddSpacer(buttonTable, utils.GetButtonIndex(buttonTable, CoD.LobbyButtons.GameSettingsFlyoutMP))
lobbyMapVote(lobbyMapVoteIsEnabled) lobbyMapVote(shouldShowMapVote)
lobbyMapVoteIsEnabled = false shouldShowMapVote = false
elseif menuId == LobbyData.UITargets.UI_MPLOBBYONLINEARENAGAME.id then elseif menuId == LobbyData.UITargets.UI_MPLOBBYONLINEARENAGAME.id then
utils.AddLargeButton(controller, buttonTable, CoD.LobbyButtons.MP_START_GAME, 1) utils.AddLargeButton(controller, buttonTable, CoD.LobbyButtons.MP_START_GAME, 1)
utils.AddSmallButton(controller, buttonTable, CoD.LobbyButtons.GameSettingsFlyoutArenas, 2) utils.AddSmallButton(controller, buttonTable, CoD.LobbyButtons.GameSettingsFlyoutArenas, 2)