This commit is contained in:
lx
2026-07-06 14:01:11 -04:00
commit c4f97d729d
16468 changed files with 935321 additions and 0 deletions
@@ -0,0 +1,6 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function()
return {}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(assets)
return {
assets = assets,
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(assets, initialize)
return {
assets = assets,
initialize = initialize,
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(assets, fullReset)
return {
assets = assets,
fullReset = fullReset,
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(assetTypeId, assetId)
return {
assetTypeId = assetTypeId,
assetId = assetId,
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(playingSwimAnimation)
return {
playingSwimAnimation = playingSwimAnimation
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(avatarData)
return {
avatarData = avatarData
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(assetTypeId, assetId)
return {
assetTypeId = assetTypeId,
assetId = assetId,
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(categoryIndex)
return {
categoryIndex = categoryIndex
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(categoryIndex, tabIndex)
return {
categoryIndex = categoryIndex,
tabIndex = tabIndex,
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(assetTypeId, nextCursor)
return {
assetTypeId = assetTypeId,
nextCursor = nextCursor,
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(scales)
return {
scales = scales
}
end)
@@ -0,0 +1,10 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(proportionsAndBodyTypeEnabled, minimumDeltaEBodyColorDifference, scalesRules)
return {
proportionsAndBodyTypeEnabled = proportionsAndBodyTypeEnabled,
minimumDeltaEBodyColorDifference = minimumDeltaEBodyColorDifference,
scalesRules = scalesRules,
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(avatarType)
return {
avatarType = avatarType
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(bodyColors)
return {
bodyColors = bodyColors
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(categoryMenuOpen)
return {
categoryMenuOpen = categoryMenuOpen
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(currentCharacter)
return {
currentCharacter = currentCharacter,
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(defaultClothingIDs)
return {
defaultClothingIDs = defaultClothingIDs
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(tab)
return {
tab = tab,
initialized = true,
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(outfit)
return {
outfit = outfit,
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(assetTypeId, assets)
return {
assetTypeId = assetTypeId,
assets = assets,
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(assetTypeId, recommendedAssets)
return {
assetTypeId = assetTypeId,
recommendedAssets = recommendedAssets,
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(resolutionScale)
return {
resolutionScale = resolutionScale
}
end)
@@ -0,0 +1,11 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(open, warningType, id, timedClosure)
return {
open = open,
warningType = warningType,
id = id,
timedClosure = timedClosure,
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(enabled, assetId)
return {
enabled = enabled,
assetId = assetId,
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(enabled, assetId)
return {
enabled = enabled,
assetId = assetId,
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(assetType, assetId)
return {
assetType = assetType,
assetId = assetId
}
end)
@@ -0,0 +1,6 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function()
return {}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(status)
return {
status = status
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(outfitId, status)
return {
outfitId = outfitId,
status = status,
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(status)
return {
status = status
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(category, status)
return {
category = category,
status = status,
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(assetTypeId, status)
return {
assetTypeId = assetTypeId,
status = status,
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(assetType, status)
return {
assetType = assetType,
status = status,
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(status)
return {
status = status,
}
end)
@@ -0,0 +1,14 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
--[[
{
gameDetails : table of GameDetail models
}
]]
return Action(script.Name, function(gameDetails)
return {
gameDetails = gameDetails
}
end)
@@ -0,0 +1,16 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
--[[
{
sort : String ,
gameSortContents : table [] ,
}
]]
return Action(script.Name, function(sortName, gameSortContents)
return {
sort = sortName,
gameSortContents = gameSortContents
}
end)
@@ -0,0 +1,29 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
--[[
Passes a table that looks like this...
sorts : {
1 : {
timeOptionsAvailable : false ,
name : Popular ,
isDefaultSort : true ,
token : 1 ,
numberOfRows : 0 ,
genreOptionsAvailable : true ,
},
2 : {
timeOptionsAvailable : false ,
name : TopRated ,
isDefaultSort : true ,
token : 8 ,
numberOfRows : 0 ,
genreOptionsAvailable : true ,
}, {...}, ... }
]]
return Action(script.Name, function(sortsTable)
return {
sorts = sortsTable
}
end)
@@ -0,0 +1,31 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
--[[
Passes a table that looks like this... { "universeId" = { gameData }, ... }
{
"149757" : {
universeId : "149757" ,
imageToken : "_60684_8d34c" ,
totalDownVotes : 0 ,
placeId : "70395446" ,
name : test ,
totalUpVotes : 0 ,
creatorId : "22915773" ,
playerCount : 0 ,
creatorName : "Raeglyn" ,
creatorType : User
}, {...}, ...
}
]]
return Action(script.Name, function(games)
assert(type(games) == "table",
string.format("AddGames action expects games to be a table, was %s", type(games)))
return {
games = games
}
end)
@@ -0,0 +1,27 @@
return function()
local AddGames = require(script.Parent.AddGames)
it("should assert if given a non-table for games", function()
AddGames({})
expect(function()
AddGames("Blargle!")
end).to.throw()
expect(function()
AddGames(0)
end).to.throw()
expect(function()
AddGames(nil)
end).to.throw()
expect(function()
AddGames(false)
end).to.throw()
expect(function()
AddGames(function() end)
end).to.throw()
end)
end
@@ -0,0 +1,9 @@
-----------------------------------------------------------------------------
--- ---
--- Under Migration to CorePackages ---
--- ---
--- Please put your changes in AppTempCommon. ---
--- NOTE: You will have to rebuild for changes to kick in ---
-----------------------------------------------------------------------------
local CorePackages = game:GetService("CorePackages")
return require(CorePackages.AppTempCommon.LuaApp.Actions.AddUser)
@@ -0,0 +1,9 @@
-----------------------------------------------------------------------------
--- ---
--- Under Migration to CorePackages ---
--- ---
--- Please put your changes in AppTempCommon. ---
--- NOTE: You will have to rebuild for changes to kick in ---
-----------------------------------------------------------------------------
local CorePackages = game:GetService("CorePackages")
return require(CorePackages.AppTempCommon.LuaApp.Actions.AddUsers)
@@ -0,0 +1,16 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
--[[
{
searchUuid : number
searchesInGames : table [] (SearchInGames model),
}
]]
return Action(script.Name, function(searchUuid, searchInGames)
return {
searchUuid = searchUuid,
searchInGames = searchInGames
}
end)
@@ -0,0 +1,11 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(timeout)
assert(type(timeout) == "nil" or type(timeout) == "number",
string.format("NavigateBack action expects timeout to be nil or a number, was %s", type(timeout)))
return {
timeout = timeout,
}
end)
@@ -0,0 +1,24 @@
return function()
local ApplyNavigateBack = require(script.Parent.ApplyNavigateBack)
it("should assert if given a non-nil non-number for navLockEndTime", function()
ApplyNavigateBack(nil)
ApplyNavigateBack(0)
expect(function()
ApplyNavigateBack("Blargle!")
end).to.throw()
expect(function()
ApplyNavigateBack({})
end).to.throw()
expect(function()
ApplyNavigateBack(false)
end).to.throw()
expect(function()
ApplyNavigateBack(function() end)
end).to.throw()
end)
end
@@ -0,0 +1,14 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(route, navLockEndTime)
assert(type(route) == "table",
string.format("NavigateToRoute action expects route to be a table, was %s", type(route)))
assert(type(navLockEndTime) == "nil" or type(navLockEndTime) == "number",
string.format("NavigateToRoute action expects navLockEndTime to be nil or a number, was %s", type(navLockEndTime)))
return {
route = route,
timeout = navLockEndTime,
}
end)
@@ -0,0 +1,48 @@
return function()
local ApplyNavigateToRoute = require(script.Parent.ApplyNavigateToRoute)
it("should assert if given a non-table for route", function()
ApplyNavigateToRoute({})
expect(function()
ApplyNavigateToRoute(nil)
end).to.throw()
expect(function()
ApplyNavigateToRoute("Blargle!")
end).to.throw()
expect(function()
ApplyNavigateToRoute(false)
end).to.throw()
expect(function()
ApplyNavigateToRoute(0)
end).to.throw()
expect(function()
ApplyNavigateToRoute(function() end)
end).to.throw()
end)
it("should assert if given a non-nil non-number for navLockEndTime", function()
ApplyNavigateToRoute({}, nil)
ApplyNavigateToRoute({}, 0)
expect(function()
ApplyNavigateToRoute({}, "Blargle!")
end).to.throw()
expect(function()
ApplyNavigateToRoute({}, {})
end).to.throw()
expect(function()
ApplyNavigateToRoute({}, false)
end).to.throw()
expect(function()
ApplyNavigateToRoute({}, function() end)
end).to.throw()
end)
end
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("EquipAsset", function(assetType, assetId)
return {
assetType = assetType,
assetId = assetId
}
end)
@@ -0,0 +1,23 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local EquipAsset = require(Modules.LuaApp.Actions.EquipAsset)
describe("Action EquipAsset", function()
it("should return a correct action name", function()
expect(EquipAsset.name).to.equal("EquipAsset")
end)
it("should return a correct action type name", function()
local action = EquipAsset("Hat", 1)
expect(action.type).to.equal(EquipAsset.name)
end)
it("should return a EquipAsset action with the correct status", function()
local action = EquipAsset("Hat", 1)
expect(action).to.be.a("table")
expect(action.assetType).to.be.a("string")
expect(action.assetType).to.equal("Hat")
expect(action.assetId).to.be.a("number")
expect(action.assetId).to.equal(1)
end)
end)
end
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("UpdateGameMedia", function(universeId, entries)
return {
universeId = universeId,
entries = entries
}
end)
@@ -0,0 +1,24 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local UpdateGameMedia = require(Modules.LuaApp.Actions.Games.UpdateGameMedia)
describe("Action UpdateGameMedia", function()
it("should return a correct action name", function()
expect(UpdateGameMedia.name).to.equal("UpdateGameMedia")
end)
it("should return a correct action type name", function()
local action = UpdateGameMedia(nil, {})
expect(action.type).to.equal(UpdateGameMedia.name)
end)
it("should return an UpdateGameMedia action with correct values", function()
local action = UpdateGameMedia("universeId", { {}, {} })
expect(action.universeId).to.equal("universeId")
expect(typeof(action.entries)).to.equal("table")
expect(#action.entries).to.equal(2)
end)
end)
end
@@ -0,0 +1,12 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(data)
assert(type(data) == "table",
string.format("UpdateSiteMessageBannerText action expects data to be a table, was %s", type(data)))
return {
text = data.Text,
visible = data.IsVisible or false
}
end)
@@ -0,0 +1,67 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local ProcessSiteAlertInfoPayload = require(Modules.LuaApp.Actions.ProcessSiteAlertInfoPayload)
describe("Action ProcessSiteAlertInfoPayload", function()
it("should return correct action name", function()
expect(ProcessSiteAlertInfoPayload.name).equal("ProcessSiteAlertInfoPayload")
end)
it("should return correct action type name", function()
local action = ProcessSiteAlertInfoPayload({})
expect(action.type).equal(ProcessSiteAlertInfoPayload.name)
end)
it("should return text as Text even if IsVisible is false", function()
local action = ProcessSiteAlertInfoPayload({
Text = "foobar",
IsVisible = false
})
expect(action.text).equal("foobar")
end)
it("should return text as Text if IsVisible is true", function()
local action = ProcessSiteAlertInfoPayload({
Text = "foobar",
IsVisible = true
})
expect(action.text).equal("foobar")
end)
it("should return text as nil when Text is missing", function()
local action = ProcessSiteAlertInfoPayload({
IsVisible = true
})
expect(action.text).equal(nil)
end)
it("should return visible=true when IsVisible is true", function()
local action = ProcessSiteAlertInfoPayload({
Text = "foobar",
IsVisible = true
})
expect(action.visible).equal(true)
end)
it("should return visible=false when IsVisible is false", function()
local action = ProcessSiteAlertInfoPayload({
Text = "foobar",
IsVisible = false
})
expect(action.visible).equal(false)
end)
it("should return visible=false when IsVisible is missing", function()
local action = ProcessSiteAlertInfoPayload({
Text = "foobar"
})
expect(action.visible).equal(false)
end)
end)
end
@@ -0,0 +1,9 @@
-----------------------------------------------------------------------------
--- ---
--- Under Migration to CorePackages ---
--- ---
--- Please put your changes in AppTempCommon. ---
--- NOTE: You will have to rebuild for changes to kick in ---
-----------------------------------------------------------------------------
local CorePackages = game:GetService("CorePackages")
return require(CorePackages.AppTempCommon.LuaApp.Actions.ReceivedPlacesInfos)
@@ -0,0 +1,6 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function()
return {}
end)
@@ -0,0 +1,15 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
--[[
{
searchUuid : number
searchesInGames : table [] (SearchInGames model),
}
]]
return Action(script.Name, function(searchUuid)
return {
searchUuid = searchUuid
}
end)
@@ -0,0 +1,9 @@
-----------------------------------------------------------------------------
--- ---
--- Under Migration to CorePackages ---
--- ---
--- Please put your changes in AppTempCommon. ---
--- NOTE: You will have to rebuild for changes to kick in ---
-----------------------------------------------------------------------------
local CorePackages = game:GetService("CorePackages")
return require(CorePackages.AppTempCommon.LuaApp.Actions.RemoveUser)
@@ -0,0 +1,6 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("ResetCategory", function()
return {}
end)
@@ -0,0 +1,18 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local ResetCategory = require(Modules.LuaApp.Actions.ResetCategory)
describe("Action ResetCategory", function()
it("should return a correct action name", function()
expect(ResetCategory.name).to.equal("ResetCategory")
end)
it("should return a correct action type name", function()
local action = ResetCategory()
expect(action.type).to.equal(ResetCategory.name)
end)
it("should return a ResetCategory action with the correct status", function()
local action = ResetCategory()
expect(action).to.be.a("table")
end)
end)
end
@@ -0,0 +1,6 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function()
return {}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("SelectCategory", function(categoryIndex)
return {
categoryIndex = categoryIndex
}
end)
@@ -0,0 +1,21 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SelectCategory = require(Modules.LuaApp.Actions.SelectCategory)
describe("Action SelectCategory", function()
it("should return a correct action name", function()
expect(SelectCategory.name).to.equal("SelectCategory")
end)
it("should return a correct action type name", function()
local action = SelectCategory(1)
expect(action.type).to.equal(SelectCategory.name)
end)
it("should return a SelectCategory action with the correct status", function()
local action = SelectCategory(1)
expect(action).to.be.a("table")
expect(action.categoryIndex).to.be.a("number")
expect(action.categoryIndex).to.equal(1)
end)
end)
end
@@ -0,0 +1,11 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("SelectCategoryTab", function(categoryIndex, tabIndex, position)
return
{
categoryIndex = categoryIndex,
tabIndex = tabIndex,
position = position
}
end)
@@ -0,0 +1,25 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SelectCategoryTab = require(Modules.LuaApp.Actions.SelectCategoryTab)
describe("Action SelectCategoryTab", function()
it("should return a correct action name", function()
expect(SelectCategoryTab.name).to.equal("SelectCategoryTab")
end)
it("should return a correct action type name", function()
local action = SelectCategoryTab(1, 2, Vector2.new(0,0))
expect(action.type).to.equal(SelectCategoryTab.name)
end)
it("should return a SelectCategoryTab action with the correct status", function()
local action = SelectCategoryTab(1, 2, Vector2.new(0,0))
expect(action).to.be.a("table")
expect(action.categoryIndex).to.be.a("number")
expect(action.categoryIndex).to.equal(1)
expect(action.tabIndex).to.be.a("number")
expect(action.tabIndex).to.equal(2)
expect(action.position).to.be.a("userdata")
expect(action.position).to.equal(Vector2.new(0,0))
end)
end)
end
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("SetAssets", function(assets)
return
{
assets = assets
}
end)
@@ -0,0 +1,53 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SetAssets = require(Modules.LuaApp.Actions.SetAssets)
describe("Action SetAssets", function()
it("should return a correct action name", function()
expect(SetAssets.name).to.equal("SetAssets")
end)
it("should return a correct action type name", function()
local action = SetAssets({})
expect(action.type).to.equal(SetAssets.name)
end)
it("should return a SetAssets action with the correct status", function()
local action = SetAssets({})
expect(action).to.be.a("table")
expect(action.assets).to.be.a("table")
expect(next(action.assets)).never.to.be.ok()
action = SetAssets({
["Head"] = {1}
})
expect(action).to.be.a("table")
expect(action.assets).to.be.a("table")
expect(action.assets["Head"]).to.be.a("table")
expect(action.assets["Head"][1]).to.equal(1)
action = SetAssets({
["Hat"] = {2, 3, 4},
["Shirt"] = {5},
["Pants"] = {6},
})
expect(action).to.be.a("table")
expect(action.assets).to.be.a("table")
expect(action.assets["Head"]).never.to.be.ok()
expect(action.assets["Hat"]).to.be.a("table")
expect(action.assets["Hat"][1]).to.equal(2)
expect(action.assets["Hat"][2]).to.equal(3)
expect(action.assets["Hat"][3]).to.equal(4)
expect(action.assets["Shirt"]).to.be.a("table")
expect(action.assets["Shirt"][1]).to.equal(5)
expect(action.assets["Pants"]).to.be.a("table")
expect(action.assets["Pants"][1]).to.equal(6)
end)
end)
end
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("SetAvatarBodyType", function(bodyType)
return {
bodyType = bodyType
}
end)
@@ -0,0 +1,21 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SetAvatarBodyType = require(Modules.LuaApp.Actions.SetAvatarBodyType)
describe("Action SetAvatarBodyType", function()
it("should return a correct action name", function()
expect(SetAvatarBodyType.name).to.equal("SetAvatarBodyType")
end)
it("should return a correct action type name", function()
local action = SetAvatarBodyType(0.5)
expect(action.type).to.equal(SetAvatarBodyType.name)
end)
it("should return a SetAvatarBodyType action with the correct status", function()
local action = SetAvatarBodyType(0.5)
expect(action).to.be.a("table")
expect(action.bodyType).to.be.a("number")
expect(action.bodyType).to.equal(0.5)
end)
end)
end
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("SetAvatarEditorFullView", function(fullView)
return
{
fullView = fullView
}
end)
@@ -0,0 +1,27 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SetAvatarEditorFullView = require(Modules.LuaApp.Actions.SetAvatarEditorFullView)
describe("Action SetAvatarEditorFullView", function()
it("should return a correct action name", function()
expect(SetAvatarEditorFullView.name).to.equal("SetAvatarEditorFullView")
end)
it("should return a correct action type name", function()
local action = SetAvatarEditorFullView(true)
expect(action.type).to.equal(SetAvatarEditorFullView.name)
end)
it("should return a SetAvatarEditorFullView action with the correct status", function()
local action = SetAvatarEditorFullView(true)
expect(action).to.be.a("table")
expect(action.fullView).to.be.a("boolean")
expect(action.fullView).to.equal(true)
action = SetAvatarEditorFullView(false)
expect(action).to.be.a("table")
expect(action.fullView).to.be.a("boolean")
expect(action.fullView).to.equal(false)
end)
end)
end
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("SetAvatarHeadSize", function(head)
return
{
head = head
}
end)
@@ -0,0 +1,21 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SetAvatarHeadSize = require(Modules.LuaApp.Actions.SetAvatarHeadSize)
describe("Action SetAvatarHeadSize", function()
it("should return a correct action name", function()
expect(SetAvatarHeadSize.name).to.equal("SetAvatarHeadSize")
end)
it("should return a correct action type name", function()
local action = SetAvatarHeadSize(0.95)
expect(action.type).to.equal(SetAvatarHeadSize.name)
end)
it("should return a SetAvatarHeadSize action with the correct status", function()
local action = SetAvatarHeadSize(0.95)
expect(action).to.be.a("table")
expect(action.head).to.be.a("number")
expect(action.head).to.equal(0.95)
end)
end)
end
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("SetAvatarHeight", function(height)
return
{
height = height
}
end)
@@ -0,0 +1,21 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SetAvatarHeight = require(Modules.LuaApp.Actions.SetAvatarHeight)
describe("Action SetAvatarHeight", function()
it("should return a correct action name", function()
expect(SetAvatarHeight.name).to.equal("SetAvatarHeight")
end)
it("should return a correct action type name", function()
local action = SetAvatarHeight(0.97)
expect(action.type).to.equal(SetAvatarHeight.name)
end)
it("should return a SetAvatarHeight action with the correct status", function()
local action = SetAvatarHeight(0.97)
expect(action).to.be.a("table")
expect(action.height).to.be.a("number")
expect(action.height).to.equal(0.97)
end)
end)
end
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("SetAvatarProportion", function(proportion)
return {
proportion = proportion
}
end)
@@ -0,0 +1,21 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SetAvatarProportion = require(Modules.LuaApp.Actions.SetAvatarProportion)
describe("Action SetAvatarProportion", function()
it("should return a correct action name", function()
expect(SetAvatarProportion.name).to.equal("SetAvatarProportion")
end)
it("should return a correct action type name", function()
local action = SetAvatarProportion(0.3)
expect(action.type).to.equal(SetAvatarProportion.name)
end)
it("should return a SetAvatarProportion action with the correct status", function()
local action = SetAvatarProportion(0.3)
expect(action).to.be.a("table")
expect(action.proportion).to.be.a("number")
expect(action.proportion).to.equal(0.3)
end)
end)
end
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("SetAvatarType", function(avatarType)
return
{
avatarType = avatarType
}
end)
@@ -0,0 +1,27 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SetAvatarType = require(Modules.LuaApp.Actions.SetAvatarType)
describe("Action SetAvatarType", function()
it("should return a correct action name", function()
expect(SetAvatarType.name).to.equal("SetAvatarType")
end)
it("should return a correct action type name", function()
local action = SetAvatarType("R6")
expect(action.type).to.equal(SetAvatarType.name)
end)
it("should return a SetAvatarType action with the correct status", function()
local action = SetAvatarType("R6")
expect(action).to.be.a("table")
expect(action.avatarType).to.be.a("string")
expect(action.avatarType).to.equal("R6")
action = SetAvatarType("R15")
expect(action).to.be.a("table")
expect(action.avatarType).to.be.a("string")
expect(action.avatarType).to.equal("R15")
end)
end)
end
@@ -0,0 +1,10 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("SetAvatarWidth", function(width, depth)
return
{
width = width,
depth = depth
}
end)
@@ -0,0 +1,23 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SetAvatarWidth = require(Modules.LuaApp.Actions.SetAvatarWidth)
describe("Action SetAvatarWidth", function()
it("should return a correct action name", function()
expect(SetAvatarWidth.name).to.equal("SetAvatarWidth")
end)
it("should return a correct action type name", function()
local action = SetAvatarWidth(0.7, 0.85)
expect(action.type).to.equal(SetAvatarWidth.name)
end)
it("should return a SetAvatarWidth action with the correct status", function()
local action = SetAvatarWidth(0.7, 0.85)
expect(action).to.be.a("table")
expect(action.width).to.be.a("number")
expect(action.width).to.equal(0.7)
expect(action.depth).to.be.a("number")
expect(action.depth).to.equal(0.85)
end)
end)
end
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("SetBodyColors", function(bodyColors)
return
{
bodyColors = bodyColors
}
end)
@@ -0,0 +1,46 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SetBodyColors = require(Modules.LuaApp.Actions.SetBodyColors)
describe("Action SetBodyColors", function()
it("should return a correct action name", function()
expect(SetBodyColors.name).to.equal("SetBodyColors")
end)
it("should return a correct action type name", function()
local action = SetBodyColors({})
expect(action.type).to.equal(SetBodyColors.name)
end)
it("should return a SetBodyColors action with the correct status", function()
local bodyColors = {
["HeadColor"] = 194,
["LeftArmColor"] = 0,
["LeftLegColor"] = 100,
["RightArmColor"] = 50,
["RightLegColor"] = 150,
["TorsoColor"] = 255,
}
local action = SetBodyColors(bodyColors)
expect(action).to.be.a("table")
expect(action.bodyColors).to.be.a("table")
expect(action.bodyColors["HeadColor"]).to.be.a("number")
expect(action.bodyColors["HeadColor"]).to.equal(194)
expect(action.bodyColors["LeftArmColor"]).to.be.a("number")
expect(action.bodyColors["LeftArmColor"]).to.equal(0)
expect(action.bodyColors["LeftLegColor"]).to.be.a("number")
expect(action.bodyColors["LeftLegColor"]).to.equal(100)
expect(action.bodyColors["RightArmColor"]).to.be.a("number")
expect(action.bodyColors["RightArmColor"]).to.equal(50)
expect(action.bodyColors["RightLegColor"]).to.be.a("number")
expect(action.bodyColors["RightLegColor"]).to.equal(150)
expect(action.bodyColors["TorsoColor"]).to.be.a("number")
expect(action.bodyColors["TorsoColor"]).to.equal(255)
end)
end)
end
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(overlayType, arguments)
return {
overlayType = overlayType,
arguments = arguments,
}
end)
@@ -0,0 +1,8 @@
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local Action = require(Modules.Common.Action)
return Action("SetConsoleMenuLevel", function(menuLevel)
return {
menuLevel = menuLevel
}
end)
@@ -0,0 +1,21 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SetConsoleMenuLevel = require(Modules.LuaApp.Actions.SetConsoleMenuLevel)
describe("Action SetConsoleMenuLevel", function()
it("should return a correct action name", function()
expect(SetConsoleMenuLevel.name).to.equal("SetConsoleMenuLevel")
end)
it("should return a correct action type name", function()
local action = SetConsoleMenuLevel(1)
expect(action.type).to.equal(SetConsoleMenuLevel.name)
end)
it("should return a SetConsoleMenuLevel action with the correct status", function()
local action = SetConsoleMenuLevel(1)
expect(action).to.be.a("table")
expect(action.menuLevel).to.be.a("number")
expect(action.menuLevel).to.equal(1)
end)
end)
end
@@ -0,0 +1,10 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(toastMessage)
assert(type(toastMessage) == "table", "SetCurrentToastMessage action expects toastMessage to be a table")
return {
toastMessage = toastMessage,
}
end)
@@ -0,0 +1,9 @@
-----------------------------------------------------------------------------
--- ---
--- Under Migration to CorePackages ---
--- ---
--- Please put your changes in AppTempCommon. ---
--- NOTE: You will have to rebuild for changes to kick in ---
-----------------------------------------------------------------------------
local CorePackages = game:GetService("CorePackages")
return require(CorePackages.AppTempCommon.LuaApp.Actions.SetDeviceOrientation)
@@ -0,0 +1,28 @@
return function()
local Modules = game:GetService("CoreGui"):FindFirstChild("RobloxGui").Modules
local SetDeviceOrientation = require(Modules.LuaApp.Actions.SetDeviceOrientation)
local DeviceOrientationMode = require(Modules.LuaApp.DeviceOrientationMode)
describe("Action SetDeviceOrientation", function()
it("should return a correct action name", function()
expect(SetDeviceOrientation.name).to.equal("SetDeviceOrientation")
end)
it("should return a correct action type name", function()
local action = SetDeviceOrientation(DeviceOrientationMode.Portrait)
expect(action.type).to.equal(SetDeviceOrientation.name)
end)
it("should return a SetDeviceOrientation action with the correct status", function()
local action = SetDeviceOrientation(DeviceOrientationMode.Landscape)
expect(action).to.be.a("table")
expect(action.deviceOrientation).to.be.a("string")
expect(action.deviceOrientation).to.equal(DeviceOrientationMode.Landscape)
action = SetDeviceOrientation(DeviceOrientationMode.Portrait)
expect(action).to.be.a("table")
expect(action.deviceOrientation).to.be.a("string")
expect(action.deviceOrientation).to.equal(DeviceOrientationMode.Portrait)
end)
end)
end
@@ -0,0 +1,12 @@
local CoreGui = game:GetService("CoreGui")
local Modules = CoreGui.RobloxGui.Modules
local Common = Modules.Common
local Action = require(Common.Action)
return Action(script.Name, function(formFactor)
return {
formFactor = formFactor,
}
end)
@@ -0,0 +1,9 @@
-----------------------------------------------------------------------------
--- ---
--- Under Migration to CorePackages ---
--- ---
--- Please put your changes in AppTempCommon. ---
--- NOTE: You will have to rebuild for changes to kick in ---
-----------------------------------------------------------------------------
local CorePackages = game:GetService("CorePackages")
return require(CorePackages.AppTempCommon.LuaApp.Actions.SetFriendCount)
@@ -0,0 +1,14 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
--[[
Passes a table that looks like this... { "universeId" = "status", ... }
]]
return Action(script.Name, function(statuses)
assert(type(statuses) == "table", "SetGameDetailsFetchingStatus action expects statuses to be a table")
return {
statuses = statuses,
}
end)
@@ -0,0 +1,19 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
--[[
{
universeId: string,
status: string (RetrievalStauts enum),
}
]]
return Action(script.Name, function(universeId, status)
assert(type(universeId) == "string", "SetGameDetailsPageDataStatus action expects universeId to be a string")
assert(type(status) == "string", "SetGameDetailsPageDataStatus action expects status to be a string")
return {
universeId = universeId,
status = status,
}
end)
@@ -0,0 +1,17 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
--[[
universeId: string,
isFavorited : boolean
]]
return Action(script.Name, function(universeId, isFavorited)
assert(type(universeId) == "string", "SetGameFavorite: universeId must be a string")
assert(type(isFavorited) == "boolean", "SetGameFavorite: isFavorited must be a boolean")
return {
universeId = universeId,
isFavorited = isFavorited,
}
end)
@@ -0,0 +1,14 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(universeId, socialLinks)
assert(type(universeId) == "string",
string.format("SetGameSocialLinks action expects universeId to be a string, was %s", type(universeId)))
assert(type(socialLinks) == "table",
string.format("SetGameSocialLinks action expects socialLinks to be a table, was %s", type(socialLinks)))
return {
universeId = universeId,
socialLinks = socialLinks,
}
end)
@@ -0,0 +1,16 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
--[[
{
sort : String ,
gameSortContents : table [] ,
}
]]
return Action(script.Name, function(sortName, gameSortContents)
return {
sort = sortName,
gameSortContents = gameSortContents
}
end)
@@ -0,0 +1,16 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
--[[
{
sortName : string
fetchStatus : RetrievalStatus,
}
]]
return Action(script.Name, function(sortName, status)
return {
sortName = sortName,
status = status,
}
end)
@@ -0,0 +1,9 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(sortCategory, fetchStatus)
return {
sortCategory = sortCategory,
fetchStatus = fetchStatus,
}
end)
@@ -0,0 +1,17 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local Action = require(Modules.Common.Action)
--[[
Passes a table that looks like this...
{
groupId : "games",
sorts : {1, 6, 12, 13}
}
]]
return Action(script.Name, function(groupId, sortsTable)
return {
groupId = groupId,
sorts = sortsTable
}
end)
@@ -0,0 +1,9 @@
-----------------------------------------------------------------------------
--- ---
--- Under Migration to CorePackages ---
--- ---
--- Please put your changes in AppTempCommon. ---
--- NOTE: You will have to rebuild for changes to kick in ---
-----------------------------------------------------------------------------
local CorePackages = game:GetService("CorePackages")
return require(CorePackages.AppTempCommon.LuaApp.Actions.SetGameThumbnails)
@@ -0,0 +1,27 @@
return function()
local SetGameThumbnails = require(script.Parent.SetGameThumbnails)
it("should assert if given a non-table for thumbnailsTable", function()
SetGameThumbnails({})
expect(function()
SetGameThumbnails("Blargle!")
end).to.throw()
expect(function()
SetGameThumbnails(0)
end).to.throw()
expect(function()
SetGameThumbnails(nil)
end).to.throw()
expect(function()
SetGameThumbnails(false)
end).to.throw()
expect(function()
SetGameThumbnails(function() end)
end).to.throw()
end)
end

Some files were not shown because too many files have changed in this diff Show More