6,834
edits
No edit summary |
No edit summary |
||
Line 276: | Line 276: | ||
function p.gamesBox(frame) | function p.gamesBox(frame) | ||
local args = p.getArgs(frame) | local args = p.getArgs(frame) | ||
local gamesText = p.getGames(args.games) | local gamesText = p.getGames(args.games) | ||
if gamesText == "All Games" then | |||
local games2 = { 'iii', 'vc', 'sa', 'iv' } | |||
local counter = 0 | |||
for i2,game2 in ipairs(games2) do | |||
if gamesText:lower():find(game2) then | |||
counter = counter + 1 | |||
end | |||
end | |||
if counter == #games2 or gamesText == "All Games" then | |||
return p.loadTemplate(frame, 'GreenInformationBox', {table.concat({ | return p.loadTemplate(frame, 'GreenInformationBox', {table.concat({ | ||
p.loadTemplate(frame, 'icon-iii'), | p.loadTemplate(frame, 'icon-iii'), |
edits