Skip to content

Commit

Permalink
0.410.1.361262
Browse files Browse the repository at this point in the history
  • Loading branch information
Roblox-Client-Tracker committed Nov 14, 2019
1 parent cf3a7b8 commit 2db1634
Show file tree
Hide file tree
Showing 251 changed files with 8,956 additions and 2,148 deletions.
1,000 changes: 529 additions & 471 deletions API-Dump.json

Large diffs are not rendered by default.

22 changes: 13 additions & 9 deletions API-Dump.txt
Expand Up @@ -1536,6 +1536,7 @@ Class Script : BaseScript {PluginSecurity}
Function string Script:GetHash() {LocalUserSecurity}
Class LocalScript : Script
Class ModuleScript : LuaSourceContainer
Property bool ModuleScript.CoreScriptModified {NotAccessibleSecurity} [NotReplicated] [NotScriptable]
Property Content ModuleScript.LinkedSource
Property ProtectedString ModuleScript.Source {PluginSecurity}
Class LuaWebService : Instance [NotCreatable] [Service]
Expand Down Expand Up @@ -1813,6 +1814,7 @@ Class SpawnLocation : Part
Property BrickColor SpawnLocation.TeamColor
Class WedgePart : FormFactorPart
Class Terrain : BasePart [NotCreatable]
Property bool Terrain.Decoration {NotAccessibleSecurity} [NotScriptable]
Property BinaryString Terrain.MaterialColors {NotAccessibleSecurity} [NotScriptable]
Property Color3 Terrain.WaterColor
Property float Terrain.WaterReflectance
Expand Down Expand Up @@ -1893,7 +1895,16 @@ Class Model : PVInstance
Function void Model:TranslateBy(Vector3 delta)
Function void Model:move(Vector3 location) [Deprecated]
Class Status : Model [NotCreatable] [Deprecated]
Class Workspace : Model [NotCreatable] [Service]
Class WorldRoot : Model [NotCreatable]
Function Tuple WorldRoot:FindPartOnRay(Ray ray, Instance ignoreDescendantsInstance = nil, bool terrainCellsAreCubes = false, bool ignoreWater = false)
Function Tuple WorldRoot:FindPartOnRayWithIgnoreList(Ray ray, Objects ignoreDescendantsTable, bool terrainCellsAreCubes = false, bool ignoreWater = false)
Function Tuple WorldRoot:FindPartOnRayWithWhitelist(Ray ray, Objects whitelistDescendantsTable, bool ignoreWater = false)
Function Objects WorldRoot:FindPartsInRegion3(Region3 region, Instance ignoreDescendantsInstance = nil, int maxParts = 20)
Function Objects WorldRoot:FindPartsInRegion3WithIgnoreList(Region3 region, Objects ignoreDescendantsTable, int maxParts = 20)
Function Objects WorldRoot:FindPartsInRegion3WithWhiteList(Region3 region, Objects whitelistDescendantsTable, int maxParts = 20)
Function bool WorldRoot:IsRegion3Empty(Region3 region, Instance ignoreDescendentsInstance = nil)
Function bool WorldRoot:IsRegion3EmptyWithIgnoreList(Region3 region, Objects ignoreDescendentsTable)
Class Workspace : WorldRoot [NotCreatable] [Service]
Property bool Workspace.AllowThirdPartySales [NotReplicated]
Property float Workspace.FallenPartsDestroyHeight {✏️PluginSecurity}
Property bool Workspace.FilteringEnabled {✏️PluginSecurity}
Expand All @@ -1909,23 +1920,16 @@ Class Workspace : Model [NotCreatable] [Service]
Function void Workspace:BreakJoints(Objects objects) {PluginSecurity}
Function float Workspace:CalculateJumpPower(float gravity, float jumpHeight) {RobloxScriptSecurity}
Function bool Workspace:ExperimentalSolverIsEnabled() {LocalUserSecurity}
Function Tuple Workspace:FindPartOnRay(Ray ray, Instance ignoreDescendantsInstance = nil, bool terrainCellsAreCubes = false, bool ignoreWater = false)
Function Tuple Workspace:FindPartOnRayWithIgnoreList(Ray ray, Objects ignoreDescendantsTable, bool terrainCellsAreCubes = false, bool ignoreWater = false)
Function Tuple Workspace:FindPartOnRayWithWhitelist(Ray ray, Objects whitelistDescendantsTable, bool ignoreWater = false)
Function Objects Workspace:FindPartsInRegion3(Region3 region, Instance ignoreDescendantsInstance = nil, int maxParts = 20)
Function Objects Workspace:FindPartsInRegion3WithIgnoreList(Region3 region, Objects ignoreDescendantsTable, int maxParts = 20)
Function Objects Workspace:FindPartsInRegion3WithWhiteList(Region3 region, Objects whitelistDescendantsTable, int maxParts = 20)
Function int Workspace:GetNumAwakeParts()
Function int Workspace:GetPhysicsThrottling()
Function double Workspace:GetRealPhysicsFPS()
Function bool Workspace:IsRegion3Empty(Region3 region, Instance ignoreDescendentsInstance = nil)
Function bool Workspace:IsRegion3EmptyWithIgnoreList(Region3 region, Objects ignoreDescendentsTable)
Function void Workspace:JoinToOutsiders(Objects objects, Enum<JointCreationMode> jointType)
Function void Workspace:MakeJoints(Objects objects) {PluginSecurity}
Function bool Workspace:PGSIsEnabled()
Function void Workspace:SetPhysicsThrottleEnabled(bool value) {LocalUserSecurity}
Function void Workspace:UnjoinFromOutsiders(Objects objects)
Function void Workspace:ZoomToExtents() {PluginSecurity}
Class WorldModel : WorldRoot
Class PackageLink : Instance [NotCreatable] [NotBrowsable]
Property bool PackageLink.AutoUpdate {NotAccessibleSecurity} [NotScriptable]
Property Content PackageLink.PackageId [ReadOnly] [NotReplicated]
Expand Down
Expand Up @@ -18,6 +18,9 @@
function OnActivated = A callback fired when the user clicks the frame.
function OnMouseEnter = A callback fired when the mouse enters the frame.
function OnMouseLeave = A callback fired when the mouse leaves the frame.
[Roact.Change.AbsoluteSize] = An event that fires when the frame's AbsoluteSize changes
[Roact.Change.AbsolutePosition] = An event that fires when the frame's AbsolutePosition changes
]]

local Library = script.Parent.Parent
Expand Down Expand Up @@ -81,6 +84,9 @@ function RoundFrame:render()
[Roact.Event.MouseEnter] = mouseEnterCallback,
[Roact.Event.MouseLeave] = mouseLeaveCallback,
[Roact.Event.Activated] = activatedCallback,

[Roact.Change.AbsoluteSize] = props[Roact.Change.AbsoluteSize],
[Roact.Change.AbsolutePosition] = props[Roact.Change.AbsolutePosition],
}, {
Border = Roact.createElement("ImageLabel", {
Size = UDim2.new(1, 0, 1, 0),
Expand Down
Expand Up @@ -18,6 +18,9 @@
function OnActivated = A callback fired when the user clicks the frame.
function OnMouseEnter = A callback fired when the mouse enters the frame.
function OnMouseLeave = A callback fired when the mouse leaves the frame.
[Roact.Change.AbsoluteSize] = An event that fires when the frame's AbsoluteSize changes
[Roact.Change.AbsolutePosition] = An event that fires when the frame's AbsolutePosition changes
]]

local Library = script.Parent.Parent
Expand Down Expand Up @@ -81,6 +84,9 @@ function RoundFrame:render()
[Roact.Event.MouseEnter] = mouseEnterCallback,
[Roact.Event.MouseLeave] = mouseLeaveCallback,
[Roact.Event.Activated] = activatedCallback,

[Roact.Change.AbsoluteSize] = props[Roact.Change.AbsoluteSize],
[Roact.Change.AbsolutePosition] = props[Roact.Change.AbsolutePosition],
}, {
Border = Roact.createElement("ImageLabel", {
Size = UDim2.new(1, 0, 1, 0),
Expand Down
12 changes: 3 additions & 9 deletions BuiltInPlugins/ConvertToPackage/Bin/main.server.lua
@@ -1,12 +1,6 @@
if not plugin then
return
end
local FFlagStudioConvertToPackageLua = settings():GetFFlag("StudioConvertToPackageLua")
local FFlagStudioAllowConvertToPackageLuaResize = game:DefineFastFlag("StudioAllowConvertToPackageLuaResize", false)

if not FFlagStudioConvertToPackageLua then
return
end

local Plugin = script.Parent.Parent
local Roact = require(Plugin.Packages.Roact)
Expand Down Expand Up @@ -41,9 +35,9 @@ local assetConfigHandle = nil
local assetConfigGui = nil
local function makePluginGui()
assetConfigGui = plugin:CreateQWidgetPluginGui(plugin.Name, {
Size = Vector2.new(960, FFlagStudioAllowConvertToPackageLuaResize and 600 or 700),
MinSize = Vector2.new(960, FFlagStudioAllowConvertToPackageLuaResize and 600 or 700),
Resizable = FFlagStudioAllowConvertToPackageLuaResize,
Size = Vector2.new(960, 600),
MinSize = Vector2.new(960, 600),
Resizable = true,
Modal = true,
InitialEnabled = false,
})
Expand Down
2 changes: 1 addition & 1 deletion BuiltInPlugins/GameSettings/Src/Util/Theme.lua
Expand Up @@ -236,7 +236,7 @@ function Theme.createValues(getColor, StyleColor, StyleModifier)
local UILibraryOverrides = {
button = {
LargeHitboxButton = {
backgroundColor = Color3.new(1,0,0),
backgroundColor = getColor(StyleColor.MainBackground, StyleModifier.Default),

hovered = {
backgroundColor = getColor(StyleColor.Button, StyleModifier.Hover),
Expand Down
Expand Up @@ -18,6 +18,9 @@
function OnActivated = A callback fired when the user clicks the frame.
function OnMouseEnter = A callback fired when the mouse enters the frame.
function OnMouseLeave = A callback fired when the mouse leaves the frame.
[Roact.Change.AbsoluteSize] = An event that fires when the frame's AbsoluteSize changes
[Roact.Change.AbsolutePosition] = An event that fires when the frame's AbsolutePosition changes
]]

local Library = script.Parent.Parent
Expand Down Expand Up @@ -81,6 +84,9 @@ function RoundFrame:render()
[Roact.Event.MouseEnter] = mouseEnterCallback,
[Roact.Event.MouseLeave] = mouseLeaveCallback,
[Roact.Event.Activated] = activatedCallback,

[Roact.Change.AbsoluteSize] = props[Roact.Change.AbsoluteSize],
[Roact.Change.AbsolutePosition] = props[Roact.Change.AbsolutePosition],
}, {
Border = Roact.createElement("ImageLabel", {
Size = UDim2.new(1, 0, 1, 0),
Expand Down
5 changes: 2 additions & 3 deletions BuiltInPlugins/PublishPlaceAs/Src/Components/TileGame.lua
Expand Up @@ -6,8 +6,7 @@ local UILibrary = require(Plugin.Packages.UILibrary)
local Localizing = UILibrary.Localizing
local Separator = UILibrary.Component.Separator

local DFFlagPreloadAsyncCallbackFunction = settings():getFFlag("PreloadAsyncCallbackFunction")
local FFlagEnableRbxThumbAPI = settings():GetFFlag("EnableRbxThumbAPI")
local FFlagDefaultThumbnailForRBXThumb = game:DefineFastFlag("DefaultThumbnailForRBXThumb", false)

local ContentProvider = game:GetService("ContentProvider")

Expand All @@ -30,7 +29,7 @@ end

function TileGame:didMount()
self.isMounted = true
if DFFlagPreloadAsyncCallbackFunction and FFlagEnableRbxThumbAPI then
if FFlagDefaultThumbnailForRBXThumb then
spawn(function()
local asset = { self.thumbnailUrl }
local function setStatus(contentId, status)
Expand Down
5 changes: 2 additions & 3 deletions BuiltInPlugins/PublishPlaceAs/Src/Components/TilePlace.lua
Expand Up @@ -6,8 +6,7 @@ local UILibrary = require(Plugin.Packages.UILibrary)
local Localizing = UILibrary.Localizing
local Separator = UILibrary.Component.Separator

local DFFlagPreloadAsyncCallbackFunction = settings():getFFlag("PreloadAsyncCallbackFunction")
local FFlagEnableRbxThumbAPI = settings():GetFFlag("EnableRbxThumbAPI")
local FFlagDefaultThumbnailForRBXThumb = game:GetFastFlag("DefaultThumbnailForRBXThumb")

local ContentProvider = game:GetService("ContentProvider")

Expand All @@ -29,7 +28,7 @@ end

function TilePlace:didMount()
self.isMounted = true
if DFFlagPreloadAsyncCallbackFunction and FFlagEnableRbxThumbAPI and self.props.Id then
if FFlagDefaultThumbnailForRBXThumb and self.props.Id then
spawn(function()
local asset = { self.thumbnailUrl }
local function setStatus(contentId, status)
Expand Down
25 changes: 25 additions & 0 deletions BuiltInPlugins/TerrainToolsV2/Bin/main.server.lua
Expand Up @@ -9,13 +9,25 @@ end

-- Fast flags
game:DefineFastFlag("TerrainToolsRefactorTabsAndTools", false)
game:DefineFastFlag("TerrainToolsEnablePivotPosition", false)
game:DefineFastFlag("TerrainToolsEnableHeightSlider", false)
game:DefineFastFlag("TerrainToolsRefactorTerrainBrush", false)

local FFlagTerrainToolsRefactorTerrainBrush = game:GetFastFlag("TerrainToolsRefactorTerrainBrush")

-- services
local Workspace = game:GetService("Workspace")

-- libraries
local Plugin = script.Parent.Parent
local Roact = require(Plugin.Packages.Roact)
local Rodux = require(Plugin.Packages.Rodux)
local UILibrary = require(Plugin.Packages.UILibrary)
local Manager = require(Plugin.Src.Components.Manager) -- top most ui component
local TerrainBrush
if FFlagTerrainToolsRefactorTerrainBrush then
TerrainBrush = require(Plugin.Src.Components.Functions.TerrainBrushInstance)
end

-- components
local ServiceWrapper = require(Plugin.Src.Components.ServiceWrapper)
Expand Down Expand Up @@ -60,6 +72,14 @@ local localization = Localization.new({
translationResourceTable = TranslationReferenceTable,
})

local terrainBrush
if FFlagTerrainToolsRefactorTerrainBrush then
terrainBrush = TerrainBrush.new({
plugin = plugin,
terrain = Workspace:WaitForChild("Terrain"),
})
end

-- Widget Gui Elements
local pluginHandle
local pluginGui
Expand All @@ -77,6 +97,7 @@ local function openPluginWindow()
localization = localization,
theme = theme,
store = dataStore,
terrainBrush = FFlagTerrainToolsRefactorTerrainBrush and terrainBrush or nil,
}, {
UIManager = Roact.createElement(Manager, {
Name = Manager,
Expand Down Expand Up @@ -150,6 +171,10 @@ local function main()

-- configure the widget and button if its visible
showIfEnabled()

if FFlagTerrainToolsRefactorTerrainBrush then
plugin.Unloading:Connect(closePluginWindow)
end
end

main()
@@ -0,0 +1,7 @@
local Action = require(script.Parent.Action)

return Action(script.Name, function(locked)
return {
locked = locked
}
end)
Expand Up @@ -6,6 +6,7 @@ local Plugin = script.Parent.Parent.Parent.Parent
local UILibrary = Plugin.Packages.UILibrary
local Signal = require(UILibrary.Utils.Signal)

local Constants = require(Plugin.Src.Util.Constants)
local TerrainEnums = require(Plugin.Src.Util.TerrainEnums)
local BrushShape = TerrainEnums.BrushShape
local PivotType = TerrainEnums.PivotType
Expand All @@ -15,6 +16,7 @@ local ToolId = TerrainEnums.ToolId
local Smoother = require(script.Parent.TerrainSmoother)

local FFlagTerrainToolMetrics = settings():GetFFlag("TerrainToolMetrics")
local FFlagTerrainToolsEnableHeightSlider = game:GetFastFlag("TerrainToolsEnableHeightSlider")

local AnalyticsService = game:GetService("RbxAnalyticsService")
local StudioService = game:GetService("StudioService")
Expand Down Expand Up @@ -65,11 +67,11 @@ local brushShapeToSelectionShape = {
[BrushShape.Cylinder] = "SelectionCylinder",
}

local kMinSelectionSize = 1
local kMaxSelectionSize = 32
local kSelectionSize = 6
local kSelectionHeight = 6
local kStrength = .5
local kMinSelectionSize = Constants.MIN_BRUSH_SIZE
local kMaxSelectionSize = Constants.MAX_BRUSH_SIZE
local kSelectionSize = Constants.INITIAL_BRUSH_SIZE
local kSelectionHeight = Constants.INITIAL_BRUSH_SIZE
local kStrength = Constants.INITIAL_BRUSH_STRENGTH

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "TerrainBrushGui"
Expand Down Expand Up @@ -170,7 +172,12 @@ function updateOperationInfo()
if selectionPart then
local size = kSelectionSize * resolution
local height = kSelectionHeight * resolution
selectionPart.Size = (kBrushShape == BrushShape.Cylinder and Vector3.new(height, size, size) or Vector3.new(size, size, size)) + Vector3.new(.1, .1, .1)
if FFlagTerrainToolsEnableHeightSlider then
selectionPart.Size = kBrushShape == BrushShape.Cylinder and Vector3.new(height, size, size)
or Vector3.new(size, height, size) + Vector3.new(0.1, 0.1, 0.1)
else
selectionPart.Size = (kBrushShape == BrushShape.Cylinder and Vector3.new(height, size, size) or Vector3.new(size, size, size)) + Vector3.new(.1, .1, .1)
end

--[[ TODO: DEVTOOLS-3103 add CylinderSelection Part
if not useSelectionObjects then
Expand Down Expand Up @@ -379,9 +386,11 @@ FirstTimeSetup = function()
local selectionSize = info.size -- (1 ~ 32)
local selectionHeight = info.height and info.height or selectionSize
-- TOOD: add BaseSize and Height options
if operationName ~= ToolId.Flatten then
selectionHeight = selectionSize
if not FFlagTerrainToolsEnableHeightSlider then
-- TOOD: add BaseSize and Height options
if operationName ~= ToolId.Flatten then
selectionHeight = selectionSize
end
end
centerPoint = applyPivot(centerPoint, selectionHeight * resolution)
Expand Down Expand Up @@ -838,7 +847,12 @@ FirstTimeSetup = function()
selectionPart = nil
else
local cylinderSize = Vector3.new(height, size, size)
local partSize = Vector3.new(size, size, size) + Vector3.new(.1, .1, .1)
local partSize
if FFlagTerrainToolsEnableHeightSlider then
partSize = Vector3.new(size, height, size) + Vector3.new(0.1, 0.1, 0.1)
else
partSize = Vector3.new(size, size, size) + Vector3.new(.1, .1, .1)
end
if not selectionPart then
ChangeHistoryService:SetEnabled(false)
Expand Down

0 comments on commit 2db1634

Please sign in to comment.