mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Bump rbx_dom_lua rojo-rbx/rbx-dom@e7a5b91c (ScriptEditorService) (#801)
This commit is contained in:
parent
e897f524dc
commit
d441fbdf91
2 changed files with 86 additions and 50 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
local CollectionService = game:GetService("CollectionService")
|
local CollectionService = game:GetService("CollectionService")
|
||||||
|
local ScriptEditorService = game:GetService("ScriptEditorService")
|
||||||
|
|
||||||
--- A list of `Enum.Material` values that are used for Terrain.MaterialColors
|
--- A list of `Enum.Material` values that are used for Terrain.MaterialColors
|
||||||
local TERRAIN_MATERIAL_COLORS = {
|
local TERRAIN_MATERIAL_COLORS = {
|
||||||
|
|
@ -116,4 +117,34 @@ return {
|
||||||
end,
|
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,
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"Version": [
|
"Version": [
|
||||||
0,
|
0,
|
||||||
596,
|
597,
|
||||||
1,
|
1,
|
||||||
5960685
|
5970668
|
||||||
],
|
],
|
||||||
"Classes": {
|
"Classes": {
|
||||||
"Accessory": {
|
"Accessory": {
|
||||||
|
|
@ -4504,6 +4504,17 @@
|
||||||
},
|
},
|
||||||
"DefaultProperties": {}
|
"DefaultProperties": {}
|
||||||
},
|
},
|
||||||
|
"AvatarCreationService": {
|
||||||
|
"Name": "AvatarCreationService",
|
||||||
|
"Tags": [
|
||||||
|
"NotCreatable",
|
||||||
|
"NotReplicated",
|
||||||
|
"Service"
|
||||||
|
],
|
||||||
|
"Superclass": "Instance",
|
||||||
|
"Properties": {},
|
||||||
|
"DefaultProperties": {}
|
||||||
|
},
|
||||||
"AvatarEditorService": {
|
"AvatarEditorService": {
|
||||||
"Name": "AvatarEditorService",
|
"Name": "AvatarEditorService",
|
||||||
"Tags": [
|
"Tags": [
|
||||||
|
|
@ -15560,9 +15571,7 @@
|
||||||
},
|
},
|
||||||
"DragDetector": {
|
"DragDetector": {
|
||||||
"Name": "DragDetector",
|
"Name": "DragDetector",
|
||||||
"Tags": [
|
"Tags": [],
|
||||||
"NotBrowsable"
|
|
||||||
],
|
|
||||||
"Superclass": "ClickDetector",
|
"Superclass": "ClickDetector",
|
||||||
"Properties": {
|
"Properties": {
|
||||||
"ActivatedCursorIcon": {
|
"ActivatedCursorIcon": {
|
||||||
|
|
@ -28121,6 +28130,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"LogReporterService": {
|
||||||
|
"Name": "LogReporterService",
|
||||||
|
"Tags": [
|
||||||
|
"NotCreatable",
|
||||||
|
"NotReplicated",
|
||||||
|
"Service"
|
||||||
|
],
|
||||||
|
"Superclass": "Instance",
|
||||||
|
"Properties": {},
|
||||||
|
"DefaultProperties": {}
|
||||||
|
},
|
||||||
"LogService": {
|
"LogService": {
|
||||||
"Name": "LogService",
|
"Name": "LogService",
|
||||||
"Tags": [
|
"Tags": [
|
||||||
|
|
@ -31192,7 +31212,7 @@
|
||||||
},
|
},
|
||||||
"Source": {
|
"Source": {
|
||||||
"Name": "Source",
|
"Name": "Source",
|
||||||
"Scriptability": "ReadWrite",
|
"Scriptability": "Custom",
|
||||||
"DataType": {
|
"DataType": {
|
||||||
"Value": "String"
|
"Value": "String"
|
||||||
},
|
},
|
||||||
|
|
@ -41454,7 +41474,7 @@
|
||||||
"Properties": {
|
"Properties": {
|
||||||
"Source": {
|
"Source": {
|
||||||
"Name": "Source",
|
"Name": "Source",
|
||||||
"Scriptability": "ReadWrite",
|
"Scriptability": "Custom",
|
||||||
"DataType": {
|
"DataType": {
|
||||||
"Value": "String"
|
"Value": "String"
|
||||||
},
|
},
|
||||||
|
|
@ -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": {
|
"Camera Zoom to Mouse Position": {
|
||||||
"Name": "Camera Zoom to Mouse Position",
|
"Name": "Camera Zoom to Mouse Position",
|
||||||
"Scriptability": "ReadWrite",
|
"Scriptability": "ReadWrite",
|
||||||
|
|
@ -49545,7 +49578,9 @@
|
||||||
},
|
},
|
||||||
"StudioAttachment": {
|
"StudioAttachment": {
|
||||||
"Name": "StudioAttachment",
|
"Name": "StudioAttachment",
|
||||||
"Tags": [],
|
"Tags": [
|
||||||
|
"NotReplicated"
|
||||||
|
],
|
||||||
"Superclass": "Instance",
|
"Superclass": "Instance",
|
||||||
"Properties": {
|
"Properties": {
|
||||||
"AutoHideParent": {
|
"AutoHideParent": {
|
||||||
|
|
@ -49614,52 +49649,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"DefaultProperties": {
|
"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
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"StudioCallout": {
|
"StudioCallout": {
|
||||||
"Name": "StudioCallout",
|
"Name": "StudioCallout",
|
||||||
"Tags": [
|
"Tags": [
|
||||||
"NotCreatable",
|
|
||||||
"NotReplicated"
|
"NotReplicated"
|
||||||
],
|
],
|
||||||
"Superclass": "Instance",
|
"Superclass": "Instance",
|
||||||
|
|
@ -64701,6 +64695,14 @@
|
||||||
"EdgeBump": 1
|
"EdgeBump": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"CameraSpeedAdjustBinding": {
|
||||||
|
"name": "CameraSpeedAdjustBinding",
|
||||||
|
"items": {
|
||||||
|
"AltScroll": 2,
|
||||||
|
"None": 0,
|
||||||
|
"RmbScroll": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
"CameraType": {
|
"CameraType": {
|
||||||
"name": "CameraType",
|
"name": "CameraType",
|
||||||
"items": {
|
"items": {
|
||||||
|
|
@ -67514,6 +67516,9 @@
|
||||||
"Mid": 36,
|
"Mid": 36,
|
||||||
"Midlight": 98,
|
"Midlight": 98,
|
||||||
"Notification": 4,
|
"Notification": 4,
|
||||||
|
"OnboardingCover": 132,
|
||||||
|
"OnboardingHighlight": 133,
|
||||||
|
"OnboardingShadow": 134,
|
||||||
"RibbonButton": 19,
|
"RibbonButton": 19,
|
||||||
"RibbonTab": 15,
|
"RibbonTab": 15,
|
||||||
"RibbonTabTopBar": 16,
|
"RibbonTabTopBar": 16,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue