add gs
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
--[[
|
||||
// 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
|
||||
Reference in New Issue
Block a user