- Modifying the location
- Modifying the corners
- Custom background and text color
- Custom divider line
- Glowing effect
- Modifying the height and width
- Modifying Icons
- Other Settings
- You can modify the location of the notification!
-
To use the pre-defined locations, find the following code in the
config.luafile:Cfg.Location = 'center-right'
- Set
Cfg.Locationto one of the following values:'top''top-right''top-left''center''center-right''center-left''bottom''bottom-right''bottom-left'
- You can also create custom locations or modify the existing ones.
-
Locate the following code in the
config.luafile:Cfg.LocationMapping = { ['top'] = {right = '50%', top = '94%'}, ['top-right'] = {right = '1%', top = '94%'}, ['top-left'] = {left = '1%', top = '94%'}, ['center'] = {right = '50%', top = '35%'}, ['center-right'] = {right = '1%', top = '35%'}, ['center-left'] = {left = '1%', top = '35%'}, ['bottom'] = {right = '50%', top = '6%'}, ['bottom-right'] = {right = '1%', top = '6%'}, ['bottom-left'] = {left = '1%', top = '6%'}, }
-
Modify any of the pre-defined locations or create your own!
- To create a custom location, you can adjust three parameters:
'top'➡️ Distance from the top of the screen'right'➡️ Distance from the right'left'➡️ Distance from the left
- If you want to change only one parameter, you can remove the others; the script will set their value to 'auto'. You only need to use either
'left'or'right', not both.
-
Example of custom location:
Cfg.LocationMapping = { ['my-custom-location'] = {left = '10px', top = '5px'}, -- Also able to use `px` suffix :D ['my-custom-location2'] = {left = '6%'}, -- Maybe we just need to modify one parameters! }
-
To apply the custom location tag to the script, change
'Cfg.Location', for example:Cfg.Location = 'my-custom-location'
- You can make the corners rounded or modify them.
- Find the following code in the
config.luafile:Cfg.Corners = 'rounded'
- Change the value to one of the following options:
'super-rounded'➡️ Very rounded corners!'rounded'➡️ Normal rounded corners.'custom'➡️ Allows for custom rounded corners.'normal'➡️ Removes rounded corners.
-
To apply a custom value, set
Cfg.Cornersto'custom':Cfg.Corners = 'custom'
-
Then find the following code in the
config.luafile and modify the value:Cfg.CustomRadius = '15px'
- Change the background color of the notifications.
-
Locate the following code in the
config.luafile and modify the value:Cfg.BackGround = 'dimgrey'
Cfg.BackGround = '#333'
Cfg.BackGround = '#333333'
Cfg.BackGround = 'rgb(51, 51, 51)'
- Ensure the text colors are adjusted for visibility!
-
To change the text colors, find the following codes in the
config.luafile and modify them:Cfg.TitleColor = '#fff' Cfg.MessageColor = '#fff'
- Modify the divider line between the notification header and message.
-
Find the following codes in the
config.luafile:Cfg.Divider = true Cfg.DividerColor = 'gray'
-
Disable the divider line by setting
Cfg.Dividertofalse, for example:Cfg.Divider = false Cfg.DividerColor = 'gray'
-
To change the color of the divider, modify the
Cfg.DividerColorvalue. Examples:Cfg.Divider = true Cfg.DividerColor = 'gray'
Cfg.Divider = true Cfg.DividerColor = '#555'
Cfg.Divider = true Cfg.DividerColor = '#555555'
Cfg.Divider = true Cfg.DividerColor = 'rgb(85, 85, 85)'
- Enable a glowing effect around the notifications!
-
Find the following code in the
config.luafile and enable or disable it:Cfg.Glowing = true
- Modify the height and width of the notifications.
-
Find the following codes in the
config.luafile:Cfg.MinHeight = 'auto' Cfg.MaxHeight = '6%' Cfg.HeightSize = 'auto' Cfg.MinWidth = '300px' Cfg.MaxWidth = '390px' Cfg.WidthSize = 'auto'
- The
Cfg.MinHeightandCfg.MinWidthproperties enforce minimum sizes:- If
Cfg.MinWidthis set to'30px', the width cannot be lower than'30px'. - You can also set this option to
'auto'.
- If
- The
Cfg.MaxHeightandCfg.MaxWidthproperties enforce maximum sizes:- If
Cfg.MaxWidthis set to'300px', the width cannot exceed'300px'. - You can also set this option to
'auto'.
- If
- The
Cfg.WidthSizeandCfg.HeightSizeproperties change the actual notification size.- You cannot set these values lower than
Cfg.MinHeightandCfg.MinWidthvalues.
- You cannot set these values lower than
- Adjust the size of the icons!
-
Find the following code in the
config.luafile to adjust the logo size:Cfg.ImageSize = '24px'
- To change the images, go to the appropriate folder and replace the images:
- Ensure to use PNG formatted images!
- Images must have a transparent background.
- Modify the default duration of notifications.
-
Locate the following code in the
config.luafile:- Time is in milliseconds.
Cfg.DefaultDuration = 5000
- To modify the default title of notifications.
-
Find the following codes in the
config.luafile:Cfg.DefaultTitle = "Code Wizards" Cfg.ForceDefaultTitle = false
- To change the title, simply edit the
Cfg.DefaultTitlevalue. - To force the use of the default title on all notifications, edit the
Cfg.ForceDefaultTitlevalue.