Skip to content

Commit

Permalink
Fix ProgressBar update
Browse files Browse the repository at this point in the history
  • Loading branch information
ImAvafe committed Jun 7, 2024
1 parent eb5e905 commit 797f033
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/Components/ProgressBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ local Spring = Fusion.Spring

local Frame = require(script.Parent.Frame)

export type Props = Frame.Props & {
Progress: PubTypes.CanBeState<number>?,
Color: PubTypes.CanBeState<Color3>?,
}
local Frame = require(script.Parent.Frame)

export type Props = Frame.Props & {
Progress: PubTypes.CanBeState<number>?,
Color: PubTypes.CanBeState<Color3>?,
Expand All @@ -39,33 +33,22 @@ return function(Props: Props)
BackgroundTransparency = 0,
BackgroundColor3 = Themer.Theme.Colors.Neutral.Dark,
CornerRadius = CornerRadius,
end),
AutomaticSize = Enum.AutomaticSize.None,
BackgroundTransparency = 0,
BackgroundColor3 = Themer.Theme.Colors.Neutral.Dark,
CornerRadius = CornerRadius,

[Children] = {
Frame {
Name = "ProgressFill",
Size = Spring(
Computed(function()
return UDim2.fromScale(Progress:get(), 1)
return UDim2.fromScale(Progress:get(), 1)
end),
Themer.Theme.SpringSpeed["0.5"],
Themer.Theme.SpringDampening
Themer.Theme.SpringSpeed["0.5"],
Themer.Theme.SpringDampening
),
AutomaticSize = Enum.AutomaticSize.None,
BackgroundTransparency = 0,
BackgroundColor3 = Color,
CornerRadius = CornerRadius,
BackgroundColor3 = Color,
CornerRadius = CornerRadius,
},
},
}))
}))
end

0 comments on commit 797f033

Please sign in to comment.