Skip to content
On this page

Module: game/notifications

Functions

getHighNotifyStyle

getHighNotifyStyle(): Object

Utility function to call getNotifyStyle with "high importance" parameters

Returns

Object

NameType
borderColorstring
boxShadowstring
transformstring
zIndexnumber

getNotifyStyle

getNotifyStyle(color?, strength?): Object

Gives a CSSProperties object that makes an object glow, to bring focus to it. Default values are for a "soft" white notif effect.

Parameters

NameTypeDefault valueDescription
colorstring"white"The color of the glow effect.
strengthstring"8px"The strength of the glow effect - affects its spread.

Returns

Object

NameType
borderColorstring
boxShadowstring
transformstring
zIndexnumber