Clients/Client2018/content/internal/AppShell/Modules/Shell/GameGenreScreen.lua

25 lines
651 B
Lua

--[[
// GameGenreScreen.lua
// Creates a GameGenreScreen that is used to navigate games for a
// selected sort.
]]
local CoreGui = game:GetService("CoreGui")
local GuiRoot = CoreGui:FindFirstChild("RobloxGui")
local Modules = GuiRoot:FindFirstChild("Modules")
local ShellModules = Modules:FindFirstChild("Shell")
local BaseCarouselScreen = require(ShellModules:FindFirstChild('BaseCarouselScreen'))
local function CreateGameGenreScreen(sortName, gameCollection)
local this = BaseCarouselScreen()
this:SetTitleZIndex(2)
this:SetTitle(sortName)
this:LoadGameCollection(gameCollection)
return this
end
return CreateGameGenreScreen