-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
17 changed files
with
173 additions
and
182 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 |
---|---|---|
@@ -1,11 +1,21 @@ | ||
## Summary | ||
|
||
<!-- Summarize your changes here --> | ||
<!-- Summarize any of the significant changes you made --> | ||
|
||
## Files Changed | ||
|
||
<!-- Add a list of the files you changed --> | ||
|
||
## Notes | ||
|
||
<!-- Add any additional notices you think might be useful --> | ||
|
||
## Checks | ||
|
||
By submitting your pull request for review, you agree to the following: | ||
By submitting this pull request for maintainer review, you agree to the following terms: | ||
|
||
<!-- If your pull request doesn't comply with these, it will be ignored until it does --> | ||
|
||
- [ ] I give full permission for maintainers and contributors of this repository to change my code in any way. | ||
- [ ] I am open to this pull request being a part of a completely open source repository which can be modified at any time, and I abide by the license terms. | ||
- [ ] To the best of my knowledge, there are no issues present in this pull request. | ||
- [ ] To the best of my knowledge, there are no bugs present in this pull request. |
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
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,18 +1,22 @@ | ||
-- Variables | ||
local Root = script.Parent | ||
local Types = require(Root.Types) | ||
local Actions = {} | ||
local Actions: {[string]: Types.Action} = {} | ||
|
||
-- Functions | ||
|
||
--[=[ | ||
Creates a new action, which allows for custom modifications to instances. | ||
[Learn More](https://luminlabsdev.github.io/ui-framework/api/#action) | ||
[Open Documentation](https://lumin-org.github.io/ui/api/#action) | ||
]=] | ||
return function(name: string, apply: (Instance) -> ()): Types.Action | ||
if not Actions[name] then | ||
local function New(name: string, apply: (Instance) -> ()) | ||
if not Actions[name] then -- Cache the action so a new one is created each time | ||
Actions[name] = apply | ||
end | ||
return Actions[name] | ||
end | ||
|
||
return { | ||
New = New, | ||
List = Actions, | ||
} |
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 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 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 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
Oops, something went wrong.