Skip to content

Commit

Permalink
WIP 2.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
parker02311 committed Sep 30, 2024
1 parent 99acbab commit 48a8980
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/ExportTemplates/EVCPlugin.luau
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,12 @@ for _, func in pairs(moduleStore:GetChildren()) do
end
end

for _, lighto in pairs(fader.lightos) do
lighto.ImageTransparency = lighto:GetAttribute("defaultTransparency")
end
for _, light in pairs(fader.lights) do
light.Brightness = light:GetAttribute("defaultBrightness")
end
patternModule.moduleSettings.light(
lightParts[lightName],
0,
Expand Down
6 changes: 6 additions & 0 deletions src/ExportTemplates/EVCPlugin_AG.luau
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,12 @@ for _, func in pairs(moduleStore:GetChildren()) do
end
end

for _, lighto in pairs(fader.lightos) do
lighto.ImageTransparency = lighto:GetAttribute("defaultTransparency")
end
for _, light in pairs(fader.lights) do
light.Brightness = light:GetAttribute("defaultBrightness")
end
patternModule.moduleSettings.light(
lightParts[lightName],
0,
Expand Down
2 changes: 1 addition & 1 deletion src/ExportTemplates/Settings.luau
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@ return {

-- DO NOT CHANGE
-- THIS IS AUTOMATICALLY GENERATED
PluginVersion = "2.2.4",
PluginVersion = "2.2.5",
-- THIS IS FOR THE CHASSIS PLUGIN AND WILL NOT ALWAYS MATCH THE STUDIO PLUGIN
}
2 changes: 1 addition & 1 deletion src/Main.server.luau
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local function getName(name: string)
return name
end

local Plugin_Version = "2.2.4"
local Plugin_Version = "2.2.5"
local Plugin_Name = getName("Emergency Vehicle Creator V2")
local Plugin_Description = "Easily create amazing ELS for emergency vehicles!"
local Plugin_Icon = "http://www.roblox.com/asset/?id=9953243250"
Expand Down
12 changes: 12 additions & 0 deletions src/Utils/settingsConverter.luau
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,18 @@ settingsConverter.converters["2_2_2"] = function(settings: ModuleScript, pluginS
return newSettingsModule
end

settingsConverter.converters["2_2_4"] = function(settings: ModuleScript, pluginSettings: v2_1_0): ModuleScript
local newSettingsModule = pluginRoot.src.ExportTemplates.BlankSettings:Clone()
local originalSource = settings.Source
local source = newSettingsModule.Source

source = originalSource
source = source:gsub('PluginVersion = "2.2.4",', `PluginVersion = "2.2.5",`, 1)

newSettingsModule.Source = source
return newSettingsModule
end

function settingsConverter.convert(settings: ModuleScript)
local pluginSettings = require(settings)
local formattedVersion = pluginSettings.PluginVersion:gsub("%.", "_")
Expand Down

0 comments on commit 48a8980

Please sign in to comment.