From 40fe62cf9f7dea332a8d41a692b3b20cf6b82321 Mon Sep 17 00:00:00 2001 From: WantedDV <122710241+WantedDV@users.noreply.github.com> Date: Thu, 20 Apr 2023 19:35:53 -0230 Subject: [PATCH] Readability + filename typo --- data/ui_scripts/frontend_menus/__init__.lua | 10 +++++----- ....lua => datasources_gamesettingsflyout_buttons.lua} | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename data/ui_scripts/frontend_menus/{datasources_gamesettingslyout_buttons.lua => datasources_gamesettingsflyout_buttons.lua} (100%) diff --git a/data/ui_scripts/frontend_menus/__init__.lua b/data/ui_scripts/frontend_menus/__init__.lua index 8fbc5d21..7ee38ff2 100644 --- a/data/ui_scripts/frontend_menus/__init__.lua +++ b/data/ui_scripts/frontend_menus/__init__.lua @@ -8,7 +8,7 @@ local enableLargeServerBrowserButton = true -- toggle large server browser butto local utils = require("utils") require("datasources_start_menu_tabs") require("datasources_change_map_categories") -require("datasources_gamesettingslyout_buttons") +require("datasources_gamesettingsflyout_buttons") CoD.LobbyButtons.MP_PUBLIC_MATCH = { stringRef = "MENU_PLAY_CAPS", @@ -77,7 +77,7 @@ CoD.LobbyButtons.SERVER_BROWSER = { customId = "btnDedicated" } -local lobbyMapVoteIsEnabled = enableLobbyMapVote +local shouldShowMapVote = enableLobbyMapVote local lobbyMapVote = function(lobbyMapVoteIsEnabled) if lobbyMapVoteIsEnabled == true then Engine.Exec(nil, "LobbyStopDemo") @@ -99,7 +99,7 @@ local addCustomButtons = function(controller, menuId, buttonTable, isLeader) end if menuId == LobbyData.UITargets.UI_MPLOBBYONLINE.id then - lobbyMapVoteIsEnabled = enableLobbyMapVote + shouldShowMapVote = enableLobbyMapVote if enableLargeServerBrowserButton then utils.AddLargeButton(controller, buttonTable, CoD.LobbyButtons.SERVER_BROWSER, 1) end @@ -110,8 +110,8 @@ local addCustomButtons = function(controller, menuId, buttonTable, isLeader) utils.AddSmallButton(controller, buttonTable, CoD.LobbyButtons.GameSettingsFlyoutMP, 2) utils.AddSpacer(buttonTable, utils.GetButtonIndex(buttonTable, CoD.LobbyButtons.GameSettingsFlyoutMP)) - lobbyMapVote(lobbyMapVoteIsEnabled) - lobbyMapVoteIsEnabled = false + lobbyMapVote(shouldShowMapVote) + shouldShowMapVote = false elseif menuId == LobbyData.UITargets.UI_MPLOBBYONLINEARENAGAME.id then utils.AddLargeButton(controller, buttonTable, CoD.LobbyButtons.MP_START_GAME, 1) utils.AddSmallButton(controller, buttonTable, CoD.LobbyButtons.GameSettingsFlyoutArenas, 2) diff --git a/data/ui_scripts/frontend_menus/datasources_gamesettingslyout_buttons.lua b/data/ui_scripts/frontend_menus/datasources_gamesettingsflyout_buttons.lua similarity index 100% rename from data/ui_scripts/frontend_menus/datasources_gamesettingslyout_buttons.lua rename to data/ui_scripts/frontend_menus/datasources_gamesettingsflyout_buttons.lua