Config
Here you can find all the information about configuring our resource.
Take a look at the Config below.
You can create as many notify types as you want, in the config below you can see some different types as example.
If you want, you can create something like success, error, info, announce and whatever you want to extend your notification ressource.
Type "default" is the standard type and is used if you dont choose a specific type in your events.
The Progressbar have config options to change the styling (colors and size) and the HelpNotify have options to change the style only.
Config
Config = {}
Config.Notification = {
DefaultType = "default", --will be used if no type is specified
Types = {
--["default" -> Type of Notify, you can create as many as you want. e.G: info, announce, success etc.]
["default"] = {
LightColor = "rgb(0, 255, 0)",
DarkColor = "rgb(0, 110, 0)",
BackgroundTransparency = "0.9",
TextColor = "white",
Icon = "fa-sharp fa-solid fa-bell", -- Notify Icon / Fontawesome -> https://fontawesome.com/v5/search?o=r&m=free
IconColor = "white", -- Color of the Icon
},
["info"] = {
LightColor = "rgb(255, 0, 64)",
DarkColor = "rgb(138, 0, 34)",
BackgroundTransparency = "0.9",
TextColor = "white",
Icon = "fa-sharp fa-solid fa-exclamation",
IconColor = "white",
},
["success"] = {
LightColor = "rgb(0, 255, 0)",
DarkColor = "rgb(0, 110, 0)",
BackgroundTransparency = "0.9",
TextColor = "white",
Icon = "fa-sharp fa-solid fa-exclamation",
IconColor = "white",
},
["error"] = {
LightColor = "rgb(255, 0, 64)",
DarkColor = "rgb(138, 0, 34)",
BackgroundTransparency = "0.9",
TextColor = "white",
Icon = "fa-sharp fa-solid fa-xmark",
IconColor = "white",
}
}
}
Config.Progressbar = {
LightColor = "rgb(255, 0, 64)",
DarkColor = "rgb(138, 0, 34)",
BackgroundTransparency = "0.5",
FontColor = "#ffffff",
Height = "s", -- s | m | l
RoundedEdges = false
}
Config.HelpNotify = {
LightColor = "rgb(255, 0, 64)",
DarkColor = "rgb(138, 0, 34)",
BackgroundTransparency = "1",
TextColor = "#FFFFFF",
BlurColor = "rgb(255, 0, 64)"
}
Progressbar Options
Height = "s", -- s | m | l
RoundedEdges = true
With the height option you can change the size of the progressbar. - s (small) - m (medium) - l (large)
If you want Rounded Edges, set the option to true. If not, leave it false.
Last updated