mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-07 21:59:49 -05:00
Only show playable game modes when selecting solo play
This commit is contained in:
parent
5d5b7132bf
commit
bdd18980fd
@ -133,7 +133,19 @@ function LUI.createMenu.SelectGameModeListZM(controller)
|
|||||||
listBox:setLeftRight(true, false, 0, 250)
|
listBox:setLeftRight(true, false, 0, 250)
|
||||||
listBox:setTopBottom(true, false, 75, 75 + 530)
|
listBox:setTopBottom(true, false, 75, 75 + 530)
|
||||||
listBox:addScrollBar(530 + (8 * 12), 2)
|
listBox:addScrollBar(530 + (8 * 12), 2)
|
||||||
|
|
||||||
|
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)
|
listBox:setTotalItems(#CoD.MapsList.GameModes, index)
|
||||||
|
end
|
||||||
|
|
||||||
self:addElement(listBox)
|
self:addElement(listBox)
|
||||||
self.listBox = listBox
|
self.listBox = listBox
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user