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

Only show playable game modes when selecting solo play

This commit is contained in:
Jbleezy 2024-06-04 22:32:26 -07:00
parent 5d5b7132bf
commit bdd18980fd

View File

@ -133,7 +133,19 @@ function LUI.createMenu.SelectGameModeListZM(controller)
listBox:setLeftRight(true, false, 0, 250)
listBox:setTopBottom(true, false, 75, 75 + 530)
listBox:addScrollBar(530 + (8 * 12), 2)
listBox:setTotalItems(#CoD.MapsList.GameModes, index)
if UIExpression.DvarBool(nil, "party_solo") == 1 then
local numGameModes = 2
if index > numGameModes then
index = 1
end
listBox:setTotalItems(numGameModes, index)
else
listBox:setTotalItems(#CoD.MapsList.GameModes, index)
end
self:addElement(listBox)
self.listBox = listBox