Expanded all 315 instances type into a separate module#74
Open
AeroUtilities wants to merge 2 commits into
Open
Expanded all 315 instances type into a separate module#74AeroUtilities wants to merge 2 commits into
AeroUtilities wants to merge 2 commits into
Conversation
Created all of the current component types that are built in Roblox Studio.
Removed the instance type in create and separated the instance module into the types folder.
|
a lot of these are unnecessary. this is a UI library |
Author
Understandable. I did mention that not all instance may be used, but I wanted to keep the scope wide so nothing is left out. I also noticed there's a There are some missing UI instances in the list like Commit 19eaeb4:
type Instances = {
Folder: Folder,
BillboardGui: BillboardGui,
CanvasGroup: CanvasGroup,
Frame: Frame,
ImageButton: ImageButton,
ImageLabel: ImageLabel,
ScreenGui: ScreenGui,
ScrollingFrame: ScrollingFrame,
SurfaceGui: SurfaceGui,
TextBox: TextBox,
TextButton: TextButton,
TextLabel: TextLabel,
UIAspectRatioConstraint: UIAspectRatioConstraint,
UICorner: UICorner,
UIGradient: UIGradient,
UIGridLayout: UIGridLayout,
UIListLayout: UIListLayout,
Camera: Camera,
WorldModel: WorldModel,
}
return {
Part = {
Material = Enum.Material.SmoothPlastic,
Size = vector.create(1, 1, 1),
Anchored = true
},
} |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
Instancestype increate.luauonly had 19 instance types written.I decided to create a types folder and the
types/instances.luaumodule covering all the built in instances in Roblox Studio that were sourced from the Roblox API dump. That way the autocompletion for any of the missing instances works in IDE's.All of the instances may not be used with vide but you can definitely make cool projects even with creating plugins with the instances!
Changes:
src/types/instances.luausrc/types/instances.luauintosrc/create.luautype Instancesto use theinstances.luaumoduleHope this is helpful!