Description
Scenic is an easy to use, easy to pick up module for easy control over multiple UI elements.
In Scenic there are these objects called Scenes and Containers which you can create with the Manager module!
Latest Update
Installation
You can install Scenic with any of these methods:
Wally
- First, install Wally if you don’t have it already,
- Then, make sure
wally.toml
is present and initialized in the root directory of your project. - Add this to your dependencies:
Scenic = lillianskull/scenic@0.3.1
- It should look something like this:
[dependencies]
Scenic = lillianskull/scenic@0.3.1
- You should be able to use it afterwards!
Github Releases (.rbxm file)
- Go to the GitHub repository
- Navigate to the releases page (on the left side)
- Download the latest version’s
.rbxm
file. - Drag that into Studio and place it in your desired location (preferably ReplicatedStorage)
Basic Template
local Scenic = require(Directory.Scenic)
local Manager = Scenic.Manager
local Scene = Manager.Create("Scene", {
Tag = "MyFirstScene",
Adornee = script.Parent
})
local Container = Manager.Create("Container", {
Tag = "Container1",
Scene = Scene
})
local Frame = Instance.new("Frame")
Frame.AnchorPoint = Vector2.new(.5, .5)
Frame.Position = UDim2.fromScale(.5, .5)
Frame.Size = UDim2.fromOffset(350, 250)
Container:Push(Frame) -- Moved “Frame” into our Container.
Basically, the entire premise is readability and efficiency - you can animate large heaps of UI (in containers) with the :Tween()
method, et cetera
I’m trying my best to make this as modular as it can be - so this can be used for more than just UI. Currently, it’s in an infancy stage, but I’ve got the basic concept done!
I’m definitely planning on adding more than these few methods and functions, but time will tell! plus i got no ideas
Almost forgot to mention, this is compatible with both Roact, Fusion, or just about any UI framework!
Credits
- Lead Developer - lillianskull (@lowrescat) | Github