Skip to content

Commit 8c09cfc

Browse files
committed
make it possible to disable ZK's map filtering system, close Spring-Chobby#524
1 parent 3bfc410 commit 8c09cfc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

LuaMenu/configs/gameConfig/generic/mainConfig.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ local externalFuncAndData = {
4949
disablePlanetwars = true, -- removes settings related to planetwars
5050
disableMatchMaking = true, -- removes match making
5151
disableCommunityWindow = true, -- removes Community Window
52+
disableZKMapFiltering = true, -- removes ZK "featured" map filter
5253
}
5354

5455
function externalFuncAndData.CheckAvailability()

LuaMenu/widgets/gui_maplist_panel.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ local function InitializeControls()
269269
mapList:AddItem(mapName, control, sortData)
270270
end
271271

272-
if not Configuration.onlyShowFeaturedMaps then
272+
if Configuration.gameConfig.disableZKMapFiltering or not Configuration.onlyShowFeaturedMaps then
273273
for i, archive in pairs(VFS.GetAllArchives()) do
274274
local info = VFS.GetArchiveInfo(archive)
275275
if info and info.modtype == 3 and not mapFuncs[info.name] then
@@ -333,7 +333,7 @@ local function InitializeControls()
333333
function externalFunctions.UpdateHaveMap(thingName)
334334
if mapFuncs[thingName] then
335335
mapFuncs[thingName].UpdateHaveMap()
336-
elseif not Configuration.onlyShowFeaturedMaps and VFS.HasArchive(thingName) then
336+
elseif (Configuration.gameConfig.disableZKMapFiltering or not Configuration.onlyShowFeaturedMaps) and VFS.HasArchive(thingName) then
337337
local info = VFS.GetArchiveInfo(thingName)
338338
if info and info.modtype == 3 and not mapFuncs[info.name] then
339339
local control, sortData

LuaMenu/widgets/gui_settings_window.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,9 @@ local function GetLobbyTabControls()
920920
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("ingame_notifcations"), "ingameNotifcations", true)
921921
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("non_friend_notifications"), "nonFriendNotifications", true)
922922
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("notifyForAllChat"), "notifyForAllChat", false)
923-
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("only_featured_maps"), "onlyShowFeaturedMaps", true)
923+
if not Configuration.gameConfig.disableZKMapFiltering then
924+
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("only_featured_maps"), "onlyShowFeaturedMaps", true)
925+
end
924926
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("simplifiedSkirmishSetup"), "simplifiedSkirmishSetup", true)
925927
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("simple_ai_list"), "simpleAiList", true)
926928
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("animate_lobby"), "animate_lobby", true)

0 commit comments

Comments
 (0)