Skip to content

Commit

Permalink
added lifetime param
Browse files Browse the repository at this point in the history
  • Loading branch information
Dubjunk committed May 15, 2019
1 parent 206c113 commit 405fed6
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions addons/ui/fnc_notify.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ Description:
Display a text message. Multiple incoming messages are queued.
Parameters:
_content - ARRAY
_line1 - ARRAY
_line2 - ARRAY
_content - ARRAY
_line1 - ARRAY
_line2 - ARRAY
...
_lineN - ARRAY
_text - STRING, NUMBER: Text to display or path to .paa or .jpg image.
_size - NUMBER: Text or image size multiplier, optional, default: 1
_color - ARRAY: RGB or RGBA color (range 0-1), optional, default: [1,1,1,1]
_queue - BOOL: Defines if the notify will be queued or force shown, optional, default: true (queued)
_lineN - ARRAY
_text - STRING, NUMBER: Text to display or path to .paa or .jpg image.
_size - NUMBER: Text or image size multiplier, optional, default: 1
_color - ARRAY: RGB or RGBA color (range 0-1), optional, default: [1,1,1,1]
_queue - BOOL: Defines if the notify will be queued or force shown, optional, default: true (queued)
_lifetime - NUMBER: Defines the lifetime of the notify, optional, default: 4
Examples:
(begin example)
Expand All @@ -30,10 +31,11 @@ Authors:

params [
["_content", [], [[]]],
["_queue", true, [false]]
["_queue", true, [false]],
["_lifetime", 4, [0]]
];

#define LIFE_TIME 4
#define LIFE_TIME _lifetime
#define FADE_IN_TIME 0.2
#define FADE_OUT_TIME 1

Expand Down

0 comments on commit 405fed6

Please sign in to comment.