diff --git a/patches/lua-source-container.yml b/patches/lua-source-container.yml index a491d6a23..4768ddd15 100644 --- a/patches/lua-source-container.yml +++ b/patches/lua-source-container.yml @@ -4,4 +4,12 @@ Change: # and it makes no sense for us to write it ourselves at this moment. ScriptGuid: Serialization: - Type: DoesNotSerialize \ No newline at end of file + Type: DoesNotSerialize + + Script: + Source: + Scriptability: Custom + + ModuleScript: + Source: + Scriptability: Custom diff --git a/rbx_dom_lua/src/customProperties.lua b/rbx_dom_lua/src/customProperties.lua index 624523b6d..3ffbf7af5 100644 --- a/rbx_dom_lua/src/customProperties.lua +++ b/rbx_dom_lua/src/customProperties.lua @@ -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 = { @@ -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, + }, + }, } diff --git a/rbx_dom_lua/src/database.json b/rbx_dom_lua/src/database.json index 720fb5ff7..817d31301 100644 --- a/rbx_dom_lua/src/database.json +++ b/rbx_dom_lua/src/database.json @@ -1,9 +1,9 @@ { "Version": [ 0, - 596, + 597, 1, - 5960685 + 5970668 ], "Classes": { "Accessory": { @@ -4504,6 +4504,17 @@ }, "DefaultProperties": {} }, + "AvatarCreationService": { + "Name": "AvatarCreationService", + "Tags": [ + "NotCreatable", + "NotReplicated", + "Service" + ], + "Superclass": "Instance", + "Properties": {}, + "DefaultProperties": {} + }, "AvatarEditorService": { "Name": "AvatarEditorService", "Tags": [ @@ -15560,9 +15571,7 @@ }, "DragDetector": { "Name": "DragDetector", - "Tags": [ - "NotBrowsable" - ], + "Tags": [], "Superclass": "ClickDetector", "Properties": { "ActivatedCursorIcon": { @@ -28121,6 +28130,17 @@ } } }, + "LogReporterService": { + "Name": "LogReporterService", + "Tags": [ + "NotCreatable", + "NotReplicated", + "Service" + ], + "Superclass": "Instance", + "Properties": {}, + "DefaultProperties": {} + }, "LogService": { "Name": "LogService", "Tags": [ @@ -31192,7 +31212,7 @@ }, "Source": { "Name": "Source", - "Scriptability": "ReadWrite", + "Scriptability": "Custom", "DataType": { "Value": "String" }, @@ -41454,7 +41474,7 @@ "Properties": { "Source": { "Name": "Source", - "Scriptability": "ReadWrite", + "Scriptability": "Custom", "DataType": { "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": { "Name": "Camera Zoom to Mouse Position", "Scriptability": "ReadWrite", @@ -49545,7 +49578,9 @@ }, "StudioAttachment": { "Name": "StudioAttachment", - "Tags": [], + "Tags": [ + "NotReplicated" + ], "Superclass": "Instance", "Properties": { "AutoHideParent": { @@ -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", @@ -64701,6 +64695,14 @@ "EdgeBump": 1 } }, + "CameraSpeedAdjustBinding": { + "name": "CameraSpeedAdjustBinding", + "items": { + "AltScroll": 2, + "None": 0, + "RmbScroll": 1 + } + }, "CameraType": { "name": "CameraType", "items": { @@ -67514,6 +67516,9 @@ "Mid": 36, "Midlight": 98, "Notification": 4, + "OnboardingCover": 132, + "OnboardingHighlight": 133, + "OnboardingShadow": 134, "RibbonButton": 19, "RibbonTab": 15, "RibbonTabTopBar": 16, diff --git a/rbx_reflection_database/CHANGELOG.md b/rbx_reflection_database/CHANGELOG.md index 524ba0fc0..c7c2d3c89 100644 --- a/rbx_reflection_database/CHANGELOG.md +++ b/rbx_reflection_database/CHANGELOG.md @@ -1,6 +1,7 @@ # rbx\_reflection_database Changelog ## Unreleased Changes +* Updated to Roblox version 597 ## 0.2.9+roblox-596 (2023-10-03) ## 0.2.8+roblox-296 (incorrect metadata) diff --git a/rbx_reflection_database/database.msgpack b/rbx_reflection_database/database.msgpack index 4df967b6c..b24c0700d 100644 Binary files a/rbx_reflection_database/database.msgpack and b/rbx_reflection_database/database.msgpack differ diff --git a/rbx_types/src/attributes/writer.rs b/rbx_types/src/attributes/writer.rs index 792593f78..e3f262be2 100644 --- a/rbx_types/src/attributes/writer.rs +++ b/rbx_types/src/attributes/writer.rs @@ -1,5 +1,4 @@ use std::{ - borrow::Borrow, collections::BTreeMap, io::{self, Write}, }; @@ -24,7 +23,7 @@ pub(crate) fn write_attributes( writer.write_all(&(map.len() as u32).to_le_bytes())?; for (name, variant) in map { - let variant = variant.borrow(); + let variant = variant; write_string(&mut writer, name)?;