I love your UI design, beautiful work! will definitely be using this.
Banner Notify 2.0 Update!
1: Longer Notifications!
Now, you donāt have to worry about summarizing your notifications cause the Banner Notify 2.0 got your back. It will automatically resize base on your text length!
2: Configurations
ā¦is tha- ā¦is that a yellow background color? Wrong! Thatās beige still you can now edit the Background Color, Transparency and Content Color, Transparency upon calling the function BannerNotificationModule:Notify()
.
Howād that work?
In your script create a variable for a table. You can name it whatever you like;
local configs = {
.3, -- Background Transparency
Color3.fromRGB(0, 0, 0), -- Background Color
0, -- Content Transparency
Color3.fromRGB(255, 255, 255), -- Content Color
}
thatās the default configuration and this is where you put thatā¦
BannerNotification:Notify("Red Alert", "An error occurred!", "rbxassetid://14202377967", 5, configs)
There in the 5th arguments! This is optional if you donāt provide one the notification will be the default look.
What if I only want to provide the Content Color?
You can just nil
off the other ones like this;
local configs = {
nil,
nil,
nil,
Color3.fromRGB(255, 255, 255), -- Content Color
}
3: Smoother Exit Animation
New:
Old:
Watch the two clips together, and notice the 2 have different collapsing animation. The New one, once the notification above collapses it will smoothly hover back to the same position as the previously collapsed one. The Old one however kind of jumps back to the position, you know itās small addition
In version 2.0, you can now provide configuration table, it consists of Background Color/Transparency and Content Color/Transparency in that way you can now make every notifications unique!
Another Day, Another Amazing Update.
Where can you change the position where it appears?
Probably a me issue, but the textlabel doesnāt clear up until the entire UI is just destroyed after the animation.
Video:
The issue doesnāt seem to appear in the Test Place: (if possible uncopylock)
Iāll look further more into the issue and Iāll ask more questions in your DMsā¦ and Testing Grounds should be uncopylocked now.
really cool module. Configs are hard to use. Canāt you make instead of
local configs= {
.3, -- Background Transparency
Color3.fromRGB(0, 0, 0), -- Background Color
0, -- Content Transparency
Color3.fromRGB(255, 255, 255), -- Content Color
}
do
local configs= {
BackgroundTransparency = .3,
BackgroundColor = Color3.fromRGB(0, 0, 0),
ContentTransparency = 0,
ContentColor = Color3.fromRGB(255, 255, 255)
}
Could you provide a Github repo to make integration into Rojo projects easier?
What is the purpose of integrating into rojo projects? Just create a script and put it there, itās not that hard
@Pcoi94 I also recommend adding some types
Thank you for this awesome library, it looks visually amazing! (Iām currently using it in my first ever game that Iām making with my brother.)
However, there seems to be an issue with the background color configuration. It does not seem to do anything, even when using the code given in the OP.
Other than that, thanks for making this! I replaced the notification system that was already in my game with this, and it looks a lot nicer. I especially like that the notifications stack up the screen.
Edit: after further investigation, it appears this only happens when the notification is sent to the client from the server.
I agree with this. Named values are almost always better for configuration.
Super cool. Iām going to give it a try.
Thanks for making this.
I am (mostly) trash at making UIs. This UI is so clean and literally perfect for my use case. This will be very useful for my custom Admin Command System.
While I do try to keep all my scripts and modules 100% original , I am more then willing to implement a great module like this one (with credit of course).
Well made resources
You should try add animated icons for the image, or being able to add tween animations to the images. We could use this if we had a loading icon which kept spinning with for example the text saying āLoading New Mapā
bv_hl
Is there a way to make the banner appear when the player touches a part or clicks a button??
Get the player object (Players:GetPlayerFromCharacter
) from whoever touches the part by using .Touched
event. .Touched
is a bit finicky so you might wanna add a debounce.
Once you have the player object, you can now use the module in the same script.
module:Notify(
player.Name .. " touched a part!", --header
"You're allowed to touch any parts", --description
"rbxassetid://14202377967", --icon (warning)
5, --duration
nil, --configs (default),
player --notification recipient)
this goes same with ClickDetectors, ClickDetector.MouseClick
has a player return which you can use to put in the BannerNotification module.
Im loving to see these new modules for the new roblox interfaces, definitely going to give this one a try!
Is there a way to cancel any or all notifications natively? As of now Iām looping through the āActiveNotificationsā frame and destroying any āCanvasā frames parented to it but this doesnāt play the out animation.
If not, Can it be added in a future update? Something like module:CancelAllNotifications()
would be nice.
This is sick. I did not expect this to be so simplistic to work with too.
Very nice!