Author: HazJ
Author Website: https://github.com/HazJ/notificationSystem.VR

Requirements: No addons required

Version: 0.3.2

Short description: An ArmA III 'Notification System' by Haz.

Date: 2018-06-28 09:07


Comments: (1)
Rating:



 







Notification System

by
HazJ


Description:
A notification System for ArmA III.


Installation / Usage:
For usage instructions and information of how to use the Notification System please refer to the included documentation and/or example mission.

Installation
Copy notificationSystem folder to your mission root
Copy contents from init.sqf to your mission
Copy contents from description.ext to your mission (if you already have class RscTitles then please only copy the #include part inside your existing RscTitles)
Configure config options in notificationSystem\config\config_master
Execute function where ever needed
Usage examples
["New notification", "This is a notification!", [0, 0, 0, 1], [1, 1, 0, 1]] spawn Haz_fnc_createNotification;
["<img size='1' color='#ffffff' image='\A3\Ui_f\data\GUI\Cfg\Ranks\private_gs.paa'/> New notification", "This is a notification!"] spawn Haz_fnc_createNotification;
["<img size='1' align='right' color='#ffffff' image='\A3\Ui_f\data\GUI\Cfg\Ranks\private_gs.paa'/> New notification", "This is a notification!"] spawn Haz_fnc_createNotification;
["<img size='1' align='right' color='#ffffff' image='\A3\Ui_f\data\GUI\Cfg\Ranks\private_gs.paa'/> Rank Promotion", "Good work!", [1, 1, 1, 1], [0.12, 0.63, 0.94, 1]] spawn Haz_fnc_createNotification;
Config options
0 = FALSE
1 = TRUE
debugMode = 0; // If set to 1 then debug mode will be enabled (used for DEV purposes only)
defaultTitleTextColour[] = {1, 1, 1, 1}; // Default title text colour (used if you don't pass custom argument to function)
defaultTitleBgColour[] = {"(profileNamespace getVariable ['GUI_BCG_RGB_R', 0.13])", "(profileNamespace getVariable ['GUI_BCG_RGB_G', 0.54])", "(profileNamespace getVariable ['GUI_BCG_RGB_B', 0.21])", 1}; // Default title text colour (used if you don't pass custom argument to function)
maxNotificationsOnScreen = 4; // Maximum number of notifications to show on screen at once (4 is the currently the max - if you try to set higher then it will revert to 3)
positionOnScreen = "RIGHT"; // Where to position notifications on the screen - "LEFT" or "RIGHT"
expandShrinkToggle = 1; // Enable player to expand/shrink notifications
expandShrinkKey = "help"; // The key which is used to expand/shrink notifications - https://community.bistudio.com/wiki/DIK_KeyCodes (you can also use action key names: https://community.bistudio.com/wiki/Category:Key_Actions)
showNotificationsQueue = 1; // Show notification queue count in bottom left corner of screen


Media:



Armaholic.com has its own Youtube channel where we will cover the Community made releases.
Subscribe to the Armaholic.com Youtube channel


Known issues:
None known


Notes:
If you change values in config_master then you may need to reload the mission (not just restart). Please do not remove my name from file(s) - Give credit where due!


Useful information:
https://community.bistudio.com/wiki/DIK_KeyCodes
https://community.bistudio.com/wiki/Category:Key_Actions


Credits & Thanks:
Thank you to everyone who provided suggestions, bug-reports and overall feedback!
Sa-Matra
AZCoder - Load save fix
Tankbuster - Bug report


Changelog:
0.3.2
Fixed positioning issues
Added config option for expand display time which will show the notification on screen for longer if expanded
Code tweaks and fixes

0.3.1
Fixed expand/shrink positioning when using RIGHT config option (thanks to Tankbuster for reporting)
Added config option for expand/shrink key
Minor code tweaks

0.3
Added load save fix (thanks AZCoder)
Added functionality for the inactive customisable config options that were added last version (for example: positionOnScreen)
Fixed the bug with the key press toggle (expand/shrink control elements)
Fixed queue counter

0.2
Added customisable config options
Added key press toggle which expands/shrinks the control elements out to show more/less information (inspired by BIS_fnc_advHint)
Added RscStructuredText styling support for title
Added option to pass arguments directly to the function
Added text which shows total number of notifications in the queue

0.1
Initital release


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: Script,   Dialog,   Enhace,   Notification