add gs
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"language": {
|
||||
"mode": "nonstrict"
|
||||
},
|
||||
"lint": {
|
||||
"ImplicitReturn": "fatal"
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
local CorePackages = game:GetService("CorePackages")
|
||||
|
||||
local ThrottleUserId = require(CorePackages.AppTempCommon.LuaApp.Utils.ThrottleUserId)
|
||||
|
||||
local FIntAvatarEditorNewCatalogButton = settings():GetFVariable("AvatarEditorNewCatalogButton2")
|
||||
|
||||
return function(userId)
|
||||
if tonumber(userId) then
|
||||
local throttleNumber = tonumber(FIntAvatarEditorNewCatalogButton)
|
||||
local id = tonumber(userId)
|
||||
return ThrottleUserId(throttleNumber, id)
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
-- TODO: Delete this file when deleting the flag: LuaAppConvertUniverseIdToStringV364
|
||||
local FFlagLuaAppConvertUniverseIdToString = settings():GetFFlag("LuaAppConvertUniverseIdToStringV364")
|
||||
|
||||
return function(universeId)
|
||||
-- When the flag is on, we've converted the universe id to string at the place we received it
|
||||
if FFlagLuaAppConvertUniverseIdToString then
|
||||
return universeId
|
||||
else
|
||||
return tostring(universeId)
|
||||
end
|
||||
end
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
local CorePackages = game:GetService("CorePackages")
|
||||
local Players = game:GetService("Players")
|
||||
|
||||
local ThrottleUserId = require(CorePackages.AppTempCommon.LuaApp.Utils.ThrottleUserId)
|
||||
|
||||
local FIntEnableFriendFooterOnHomePage = settings():GetFVariable("EnableFriendFooterOnHomePageV369")
|
||||
|
||||
-- Don't call this function globally because we cannot get the userId
|
||||
-- Reason: The LocalPlayer wouldn't be ready if we called it globally.
|
||||
return function()
|
||||
local throttleNumber = tonumber(FIntEnableFriendFooterOnHomePage)
|
||||
local userId = Players.LocalPlayer.UserId
|
||||
|
||||
return ThrottleUserId(throttleNumber, userId)
|
||||
end
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
return function()
|
||||
return settings():GetFFlag("UseDateTimeType3")
|
||||
end
|
||||
Reference in New Issue
Block a user