Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump rbx_dom_lua rojo-rbx/rbx-dom@e7a5b91c (ScriptEditorService) #801

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions plugin/rbx_dom_lua/customProperties.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local CollectionService = game:GetService("CollectionService")
local ScriptEditorService = game:GetService("ScriptEditorService")

--- A list of `Enum.Material` values that are used for Terrain.MaterialColors
local TERRAIN_MATERIAL_COLORS = {
Expand Down Expand Up @@ -116,4 +117,34 @@ return {
end,
},
},
Script = {
Source = {
read = function(instance: Script)
return true, ScriptEditorService:GetEditorSource(instance)
end,
write = function(instance: Script, _, value: string)
task.spawn(function()
ScriptEditorService:UpdateSourceAsync(instance, function()
return value
end)
end)
return true
end,
},
},
ModuleScript = {
Source = {
read = function(instance: ModuleScript)
return true, ScriptEditorService:GetEditorSource(instance)
end,
write = function(instance: ModuleScript, _, value: string)
task.spawn(function()
ScriptEditorService:UpdateSourceAsync(instance, function()
return value
end)
end)
return true
end,
},
},
}
105 changes: 55 additions & 50 deletions plugin/rbx_dom_lua/database.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Version": [
0,
596,
597,
1,
5960685
5970668
],
"Classes": {
"Accessory": {
Expand Down Expand Up @@ -4504,6 +4504,17 @@
},
"DefaultProperties": {}
},
"AvatarCreationService": {
"Name": "AvatarCreationService",
"Tags": [
"NotCreatable",
"NotReplicated",
"Service"
],
"Superclass": "Instance",
"Properties": {},
"DefaultProperties": {}
},
"AvatarEditorService": {
"Name": "AvatarEditorService",
"Tags": [
Expand Down Expand Up @@ -15560,9 +15571,7 @@
},
"DragDetector": {
"Name": "DragDetector",
"Tags": [
"NotBrowsable"
],
"Tags": [],
"Superclass": "ClickDetector",
"Properties": {
"ActivatedCursorIcon": {
Expand Down Expand Up @@ -28121,6 +28130,17 @@
}
}
},
"LogReporterService": {
"Name": "LogReporterService",
"Tags": [
"NotCreatable",
"NotReplicated",
"Service"
],
"Superclass": "Instance",
"Properties": {},
"DefaultProperties": {}
},
"LogService": {
"Name": "LogService",
"Tags": [
Expand Down Expand Up @@ -31192,7 +31212,7 @@
},
"Source": {
"Name": "Source",
"Scriptability": "ReadWrite",
"Scriptability": "Custom",
"DataType": {
"Value": "String"
},
Expand Down Expand Up @@ -41454,7 +41474,7 @@
"Properties": {
"Source": {
"Name": "Source",
"Scriptability": "ReadWrite",
"Scriptability": "Custom",
"DataType": {
"Value": "String"
},
Expand Down Expand Up @@ -47977,6 +47997,19 @@
}
}
},
"Camera Speed Adjust Binding": {
"Name": "Camera Speed Adjust Binding",
"Scriptability": "ReadWrite",
"DataType": {
"Enum": "CameraSpeedAdjustBinding"
},
"Tags": [],
"Kind": {
"Canonical": {
"Serialization": "Serializes"
}
}
},
"Camera Zoom to Mouse Position": {
"Name": "Camera Zoom to Mouse Position",
"Scriptability": "ReadWrite",
Expand Down Expand Up @@ -49545,7 +49578,9 @@
},
"StudioAttachment": {
"Name": "StudioAttachment",
"Tags": [],
"Tags": [
"NotReplicated"
],
"Superclass": "Instance",
"Properties": {
"AutoHideParent": {
Expand Down Expand Up @@ -49614,52 +49649,11 @@
}
}
},
"DefaultProperties": {
"Attributes": {
"Attributes": {}
},
"AutoHideParent": {
"Bool": false
},
"Capabilities": {
"SecurityCapabilities": 0
},
"DefinesCapabilities": {
"Bool": false
},
"IsArrowVisible": {
"Bool": false
},
"Offset": {
"Vector2": [
0.0,
0.0
]
},
"SourceAnchorPoint": {
"Vector2": [
0.0,
0.0
]
},
"SourceAssetId": {
"Int64": -1
},
"Tags": {
"Tags": []
},
"TargetAnchorPoint": {
"Vector2": [
0.0,
0.0
]
}
}
"DefaultProperties": {}
},
"StudioCallout": {
"Name": "StudioCallout",
"Tags": [
"NotCreatable",
"NotReplicated"
],
"Superclass": "Instance",
Expand Down Expand Up @@ -64701,6 +64695,14 @@
"EdgeBump": 1
}
},
"CameraSpeedAdjustBinding": {
"name": "CameraSpeedAdjustBinding",
"items": {
"AltScroll": 2,
"None": 0,
"RmbScroll": 1
}
},
"CameraType": {
"name": "CameraType",
"items": {
Expand Down Expand Up @@ -67514,6 +67516,9 @@
"Mid": 36,
"Midlight": 98,
"Notification": 4,
"OnboardingCover": 132,
"OnboardingHighlight": 133,
"OnboardingShadow": 134,
"RibbonButton": 19,
"RibbonTab": 15,
"RibbonTabTopBar": 16,
Expand Down