Skip to content

Commit

Permalink
Tested components for compatibility with Cold-Fusion
Browse files Browse the repository at this point in the history
  • Loading branch information
nightcycle committed Jul 28, 2023
1 parent ed4907a commit e41c648
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ build
out
types
lints
tests
tests
Synthetic.rbxl
5 changes: 5 additions & 0 deletions Synthetic.rbxl.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
129220
RobloxStudioBeta
DESKTOP-UIAPQFM
faf3918c-cd67-4e9b-95e8-76107b83bc31

2 changes: 1 addition & 1 deletion sourcemap.json

Large diffs are not rendered by default.

37 changes: 21 additions & 16 deletions src/Button/demo.story.lua
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
--!strict

return function(coreGui)
local module = require(script.Parent)
local demo = {
Text = "Button *Time*",
BackgroundTransparency = 1,
BorderTransparency = 0,
TextSize = 20,
Padding = UDim.new(0, 8),
IconScale = 1,
TextOnly = false,
Position = UDim2.fromScale(0.5, 0.5),
AnchorPoint = Vector2.new(0.5, 0.5),
Parent = coreGui,
LeftIcon = "star",
RightIcon = "accessibility",
}
local object = module()(demo)

local object: Instance
task.spawn(function()
local module = require(script.Parent)
local demo = {
Text = "Button *Time*",
BackgroundTransparency = 1,
BorderTransparency = 0,
TextSize = 20,
Padding = UDim.new(0, 8),
IconScale = 1,
TextOnly = false,
Position = UDim2.fromScale(0.5, 0.5),
AnchorPoint = Vector2.new(0.5, 0.5),
Parent = coreGui,
LeftIcon = "star",
RightIcon = "accessibility",
}
object = module()(demo)
end)

return function()
object:Destroy()
end
Expand Down
2 changes: 1 addition & 1 deletion src/Util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Util.bindSignal(inst: Instance, maid: Maid, name: string, signal: Signa
-- Maid:GiveTask(bindableEvent.Event:Connect(function(...)
-- signal:Fire(...)
-- end))
maid:GiveTask(Signal:Connect(function(...)
maid:GiveTask(signal:Connect(function(...)
bindableEvent:Fire(...)
end))
maid:GiveTask(bindableEvent)
Expand Down
4 changes: 2 additions & 2 deletions wally.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ registry = "test"

[[package]]
name = "nightcycle/cold-fusion"
version = "9.0.5"
version = "9.0.7"
dependencies = [["Maid", "nightcycle/[email protected]"], ["ServiceProxy", "nightcycle/[email protected]"], ["Signal", "nightcycle/[email protected]"], ["TableUtil", "nightcycle/[email protected]"]]

[[package]]
Expand Down Expand Up @@ -45,7 +45,7 @@ dependencies = []
[[package]]
name = "nightcycle/synthetic"
version = "5.0.0"
dependencies = [["ColdFusion", "nightcycle/[email protected].5"], ["Format", "nightcycle/[email protected]"], ["Maid", "nightcycle/[email protected]"], ["MeshUtil", "nightcycle/[email protected]"], ["Signal", "nightcycle/[email protected]"]]
dependencies = [["ColdFusion", "nightcycle/[email protected].7"], ["Format", "nightcycle/[email protected]"], ["Maid", "nightcycle/[email protected]"], ["MeshUtil", "nightcycle/[email protected]"], ["Signal", "nightcycle/[email protected]"]]

[[package]]
name = "nightcycle/table-util"
Expand Down
2 changes: 1 addition & 1 deletion wally.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ registry = "https://github.com/upliftgames/wally-index"
exclude = [ "Packages", ".vscode",]

[dependencies]
ColdFusion = "nightcycle/[email protected].5"
ColdFusion = "nightcycle/[email protected].7"
Signal = "nightcycle/[email protected]"
Maid = "nightcycle/[email protected]"
Format = "nightcycle/[email protected]"
Expand Down

0 comments on commit e41c648

Please sign in to comment.