diff --git a/data/ui_scripts/ranked/__init__.lua b/data/ui_scripts/ranked/__init__.lua index c8194a7a..685aa5ca 100644 --- a/data/ui_scripts/ranked/__init__.lua +++ b/data/ui_scripts/ranked/__init__.lua @@ -1 +1 @@ -require("online_mods_loaded") \ No newline at end of file +require("online_mods_loaded") diff --git a/data/ui_scripts/ranked/online_mods_loaded.lua b/data/ui_scripts/ranked/online_mods_loaded.lua index acafb1a0..bec2e0bd 100644 --- a/data/ui_scripts/ranked/online_mods_loaded.lua +++ b/data/ui_scripts/ranked/online_mods_loaded.lua @@ -2,24 +2,24 @@ if Engine.GetCurrentMap() ~= "core_frontend" then return end -function ShouldUnloadMod( arg0 ) +function ShouldUnloadMod(arg0) return false end -- Load usermaps mod if custom map selected -local MustLoadUsermaps = function( arg0, arg1 ) +local mustLoadUsermaps = function(arg0, arg1) if CoD.perController[arg1].mapCategory == CoD.CONTENT_MODS_INDEX then if not Engine.IsUsingMods() then - LuaUtils.Mods_LoadMod( "usermaps" ) -- LuaUtils.Mods_LoadMod(arg0.loadModName) - - local MENU_MODS_CAPS = Engine.Localize( "MENU_MODS_CAPS" ) - local PLATFORM_MODS_LOADED = Engine.Localize( "PLATFORM_MODS_LOADED" ) - CoD.OverlayUtility.ShowToast( "DefaultState", MENU_MODS_CAPS, PLATFORM_MODS_LOADED .. " " .. arg0.mapName ) + LuaUtils.Mods_LoadMod("usermaps") -- LuaUtils.Mods_LoadMod(arg0.loadModName) + + local MENU_MODS_CAPS = Engine.Localize("MENU_MODS_CAPS") + local PLATFORM_MODS_LOADED = Engine.Localize("PLATFORM_MODS_LOADED") + CoD.OverlayUtility.ShowToast("DefaultState", MENU_MODS_CAPS, PLATFORM_MODS_LOADED .. " " .. arg0.mapName) end end end -function MapSelected( arg0, arg1 ) - SetMap( arg1, arg0.mapName, false ) - MustLoadUsermaps( arg0, arg1 ) +function MapSelected(arg0, arg1) + SetMap(arg1, arg0.mapName, false) + mustLoadUsermaps(arg0, arg1) end