-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
48 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
return { | ||
name = "OnyxUI Samples", | ||
storyRoots = { | ||
script.Parent, | ||
}, | ||
} |
2 changes: 1 addition & 1 deletion
2
src/Examples/SettingToggle.lua → samples/SettingsMenu/SettingToggle.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
local OnyxUI = script.Parent.Parent.Parent.OnyxUI.Packages.OnyxUI | ||
local Fusion = require(OnyxUI.Packages.Fusion) | ||
local Themer = require(OnyxUI.Themer) | ||
|
||
local Children = Fusion.Children | ||
local Scoped = Fusion.scoped | ||
|
||
local Frame = require(OnyxUI.Components.Frame) | ||
local SettingsMenu = require(script.Parent) | ||
local Components = { | ||
Frame = Frame, | ||
SettingsMenu = SettingsMenu, | ||
} | ||
|
||
return function(Parent: GuiObject) | ||
local Scope: Fusion.Scope<typeof(Fusion) & typeof(Components)> = Scoped(Fusion, Components) | ||
local Theme: Themer.ThemeObject = Themer.Theme:now() | ||
|
||
Scope:Frame { | ||
Parent = Parent, | ||
Padding = Scope:Computed(function(use) | ||
return UDim.new(0, use(Theme.StrokeThickness["1"])) | ||
end), | ||
|
||
[Children] = { | ||
Scope:SettingsMenu {}, | ||
}, | ||
} | ||
|
||
return function() | ||
Scope:doCleanup() | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
return { | ||
name = "OnyxUI", | ||
storyRoots = { | ||
script.Parent, | ||
script.Parent.Components, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,9 @@ | |
"$path": "src" | ||
} | ||
} | ||
}, | ||
"Samples": { | ||
"$path": "samples" | ||
} | ||
} | ||
} | ||
|