From 3b6238ff933a89f749828fead32913bc6ec4cac8 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Mon, 11 Mar 2019 16:55:42 -0700 Subject: [PATCH] Add more types to plugin --- CHANGELOG.md | 1 + plugin/src/rojoValueToRobloxValue.lua | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2ea4be8..3f80ac55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Updated default place file: * Improved default properties to be closer to Studio's built-in 'Baseplate' template * Added a baseplate to the project file (Thanks, [@AmaranthineCodices](https://github.com/AmaranthineCodices/)!) +* Added more type support to Rojo plugin ## [0.5.0 Alpha 5](https://github.com/LPGhatguy/rojo/releases/tag/v0.5.0-alpha.5) (March 1, 2019) * Upgraded core dependencies, which improves compatibility for lots of instance types diff --git a/plugin/src/rojoValueToRobloxValue.lua b/plugin/src/rojoValueToRobloxValue.lua index 995a8e4b..b5855b2a 100644 --- a/plugin/src/rojoValueToRobloxValue.lua +++ b/plugin/src/rojoValueToRobloxValue.lua @@ -1,14 +1,20 @@ local primitiveTypes = { - String = true, Bool = true, - Int32 = true, - Float32 = true, Enum = true, + Float32 = true, + Float64 = true, + Int32 = true, + Int64 = true, + String = true, } local directConstructors = { CFrame = CFrame.new, Color3 = Color3.new, + Color3uint8 = Color3.fromRGB, + Rect = Rect.new, + UDim = UDim.new, + UDim2 = UDim2.new, Vector2 = Vector2.new, Vector2int16 = Vector2int16.new, Vector3 = Vector3.new,