Talk:BIS fnc showNotification

From Bohemia Interactive Community
Revision as of 11:52, 11 January 2023 by Lou Montana (talk | contribs) (Text replacement - "<code>" to "<code style="display: block">")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The pre-built notification templates for tasks as per A3 1.32:

class CfgNotifications { class Default { title = ""; iconPicture = ""; iconText = ""; description = ""; color[] = {"(profilenamespace getvariable ['IGUI_TEXT_RGB_R',0])","(profilenamespace getvariable ['IGUI_TEXT_RGB_G',1])","(profilenamespace getvariable ['IGUI_TEXT_RGB_B',1])","(profilenamespace getvariable ['IGUI_TEXT_RGB_A',0.8])"}; colorIconText[] = {"(profilenamespace getvariable ['IGUI_TEXT_RGB_R',0])","(profilenamespace getvariable ['IGUI_TEXT_RGB_G',1])","(profilenamespace getvariable ['IGUI_TEXT_RGB_B',1])","(profilenamespace getvariable ['IGUI_TEXT_RGB_A',0.8])"}; colorIconPicture[] = {"(profilenamespace getvariable ['IGUI_TEXT_RGB_R',0])","(profilenamespace getvariable ['IGUI_TEXT_RGB_G',1])","(profilenamespace getvariable ['IGUI_TEXT_RGB_B',1])","(profilenamespace getvariable ['IGUI_TEXT_RGB_A',0.8])"}; duration = 5; priority = 0; difficulty[] = {}; sound = "defaultNotification"; soundClose = "defaultNotificationClose"; soundRadio = ""; }; class TaskAssigned { title = "$STR_A3_CfgNotifications_TaskAssigned_0"; iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIcon_ca.paa"; description = "%2"; priority = 5; sound = "taskAssigned"; }; class TaskCreated: TaskAssigned { title = "$STR_A3_CfgNotifications_TaskCreated_0"; iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIconCreated_ca.paa"; priority = 5; sound = "taskCreated"; }; class TaskSucceeded: TaskAssigned { title = "$STR_A3_CfgNotifications_TaskSucceeded_0"; iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIconDone_ca.paa"; priority = 6; color[] = {0.7,1.0,0.3,1.0}; sound = "taskSucceeded"; }; class TaskFailed: TaskAssigned { title = "$STR_A3_CfgNotifications_TaskFailed_0"; iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIconFailed_ca.paa"; priority = 6; color[] = {1.0,0.3,0.2,1.0}; sound = "taskFailed"; }; class TaskCanceled: TaskAssigned { title = "$STR_A3_CfgNotifications_TaskCanceled_0"; iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIconCanceled_ca.paa"; priority = 6; color[] = {0.7,0.7,0.7,1.0}; sound = "taskCanceled"; }; class TaskUpdated: TaskAssigned { title = "$STR_A3_CfgNotifications_TaskUpdated_0"; priority = 4; sound = "taskUpdated"; }; class ScoreAdded { title = "$STR_A3_CfgNotifications_ScoreAdded_0"; iconText = "+%2"; description = "%1"; color[] = {0.5,1,1,1}; priority = 0; difficulty[] = {"netStats"}; sound = "scoreAdded"; }; class ScoreRemoved: ScoreAdded { title = "$STR_A3_CfgNotifications_ScoreRemoved_0"; iconText = "-%2"; color[] = {"(profilenamespace getvariable ['IGUI_WARNING_RGB_R',0.8])","(profilenamespace getvariable ['IGUI_WARNING_RGB_G',0.5])","(profilenamespace getvariable ['IGUI_WARNING_RGB_B',0.0])","(profilenamespace getvariable ['IGUI_WARNING_RGB_A',0.8])"}; sound = "scoreRemoved"; }; class SideLeader { title = "$STR_a3_cfgnotifications_sideleader_0"; description = "$STR_a3_cfgnotifications_sideleader_1"; iconPicture = "%2"; colorIconPicture[] = {1,1,1,1}; difficulty[] = {"netStats"}; }; class CommunicationMenuItemAdded { title = "$STR_A3_CfgNotifications_CommunicationMenuItemAdded_0"; iconPicture = "%2"; iconText = "%3"; description = "$STR_A3_CfgNotifications_CommunicationMenuItemAdded_1"; priority = 4; sound = "communicationMenuItemAdded"; }; class RespawnAdded { title = "$STR_A3_CfgNotifications_RespawnAdded_0"; description = "%2"; iconPicture = "%3"; priority = 4; soundRadio = "SentGenBaseUnlockRespawn"; }; class RespawnVehicle { title = "$STR_A3_CfgNotifications_RespawnVehicle_0"; description = "$STR_A3_CfgNotifications_RespawnVehicle_1"; iconPicture = "%3"; priority = 4; soundRadio = "SentGenBaseUnlockVehicle"; }; class SectorCapturedWEST { title = "$STR_A3_CfgNotifications_SectorCapturedWEST_0"; iconPicture = "%3"; iconText = "%4"; colorIconPicture[] = {"(profilenamespace getvariable ['Map_BLUFOR_R',0])","(profilenamespace getvariable ['Map_BLUFOR_G',1])","(profilenamespace getvariable ['Map_BLUFOR_B',1])","(profilenamespace getvariable ['Map_BLUFOR_A',0.8])"}; colorIconText[] = {0,0,0,1}; description = "$STR_A3_CfgNotifications_SectorCapturedWEST_1"; priority = 4; sound = "sectorCaptured"; }; class SectorCapturedEAST: SectorCapturedWEST { colorIconPicture[] = {"(profilenamespace getvariable ['Map_OPFOR_R',0])","(profilenamespace getvariable ['Map_OPFOR_G',1])","(profilenamespace getvariable ['Map_OPFOR_B',1])","(profilenamespace getvariable ['Map_OPFOR_A',0.8])"}; }; class SectorCapturedGUER: SectorCapturedWEST { colorIconPicture[] = {"(profilenamespace getvariable ['Map_Independent_R',0])","(profilenamespace getvariable ['Map_Independent_G',1])","(profilenamespace getvariable ['Map_Independent_B',1])","(profilenamespace getvariable ['Map_Independent_A',0.8])"}; }; class SectorCapturedCIV: SectorCapturedWEST { colorIconPicture[] = {"(profilenamespace getvariable ['Map_Civilian_R',0])","(profilenamespace getvariable ['Map_Civilian_G',1])","(profilenamespace getvariable ['Map_Civilian_B',1])","(profilenamespace getvariable ['Map_Civilian_A',0.8])"}; }; class SectorLostWEST: SectorCapturedWEST { title = "$STR_A3_CfgNotifications_SectorLostWEST_0"; sound = "sectorLost"; }; class SectorLostEAST: SectorCapturedEAST { title = "$STR_A3_CfgNotifications_SectorLostWEST_0"; sound = "sectorLost"; }; class SectorLostGUER: SectorCapturedGUER { title = "$STR_A3_CfgNotifications_SectorLostWEST_0"; sound = "sectorLost"; }; class SectorLostCIV: SectorCapturedCIV { title = "$STR_A3_CfgNotifications_SectorLostWEST_0"; sound = "sectorLost"; }; class TridentFriendly { title = "$STR_A3_CfgNotifications_TridentFriendly_0"; iconPicture = "\a3\Ui_f\data\GUI\Cfg\Notifications\tridentFriendly_ca.paa"; description = "$STR_A3_CfgNotifications_TridentFriendly_1"; priority = 5; sound = "tridentAllies"; soundRadio = "SentGenBaseSideFriendly%3"; }; class TridentEnemies: TridentFriendly { iconPicture = "\a3\Ui_f\data\GUI\Cfg\Notifications\tridentEnemy_ca.paa"; description = "$STR_A3_CfgNotifications_TridentEnemies_1"; priority = 5; sound = "tridentEnemies"; soundRadio = "SentGenBaseSideEnemy%3"; }; class HubSysTemplate { title = ""; iconPicture = ""; iconText = ""; description = ""; color[] = {"(profilenamespace getvariable ['IGUI_TEXT_RGB_R',0])","(profilenamespace getvariable ['IGUI_TEXT_RGB_G',1])","(profilenamespace getvariable ['IGUI_TEXT_RGB_B',1])","(profilenamespace getvariable ['IGUI_TEXT_RGB_A',0.8])"}; colorIconText[] = {"(profilenamespace getvariable ['IGUI_TEXT_RGB_R',0])","(profilenamespace getvariable ['IGUI_TEXT_RGB_G',1])","(profilenamespace getvariable ['IGUI_TEXT_RGB_B',1])","(profilenamespace getvariable ['IGUI_TEXT_RGB_A',0.8])"}; colorIconPicture[] = {"(profilenamespace getvariable ['IGUI_TEXT_RGB_R',0])","(profilenamespace getvariable ['IGUI_TEXT_RGB_G',1])","(profilenamespace getvariable ['IGUI_TEXT_RGB_B',1])","(profilenamespace getvariable ['IGUI_TEXT_RGB_A',0.8])"}; duration = 5; priority = 0; difficulty[] = {}; sound = "defaultNotification"; soundClose = "defaultNotificationClose"; soundRadio = ""; }; class SkirmishLeaving: HubSysTemplate { title = "$STR_A3_CfgNotifications_SkirmishLeaving_0"; iconPicture = "\A3\Ui_f\data\IGUI\Cfg\Actions\open_door_ca.paa"; description = "$STR_A3_CfgNotifications_SkirmishLeaving_1"; priority = 0; sound = "skirmishLeaving"; }; class ArmoryRearm: HubSysTemplate { title = "$STR_A3_Notification_ArmoryRearm_title"; description = "$STR_A3_Notification_ArmoryRearm_description"; iconPicture = "\A3\Ui_f\data\IGUI\Cfg\Actions\reammo_ca.paa"; priority = 0; }; class ArmoryGearAdded: HubSysTemplate { title = "$STR_A3_Notification_ArmoryGearAdded_title"; description = "<t shadow='1' align='left'>%1</t><t shadow='1' align='right'>%2</t>"; iconPicture = "%3"; priority = 9; sound = "AddItemOK"; duration = 1; }; class ArmoryGearAddingFailed: ArmoryGearAdded { title = "$STR_A3_Notification_ArmoryGearAddingFailed_title"; priority = 8; iconText = "X"; color[] = {0.8,0,0,1}; colorIconText[] = {0.8,0,0,1}; sound = "AddItemFailed"; duration = 3; }; class ArmoryInventoryFull: ArmoryGearAdded { title = "$STR_A3_Notification_ArmoryInventoryFull_title"; priority = 0; iconText = ""; iconPicture = "\A3\Ui_f\data\IGUI\Cfg\Actions\ico_OFF_ca.paa"; description = "$STR_A3_Notification_ArmoryInventoryFull_description"; color[] = {0.8,0,0,1}; colorIconText[] = {0.8,0,0,1}; colorIconPicture[] = {0.8,0,0,1}; sound = "AddItemFailed"; duration = 10; }; class ArmoryMissingRequiredGear: ArmoryInventoryFull { title = "$STR_A3_Notification_ArmoryMissingRequiredGear_title"; priority = 0; iconText = ""; iconPicture = "\A3\Ui_f\data\IGUI\Cfg\Actions\ico_OFF_ca.paa"; description = "$STR_A3_Notification_ArmoryMissingRequiredGear_description"; color[] = {0.8,0,0,1}; colorIconText[] = {0.8,0,0,1}; colorIconPicture[] = {0.8,0,0,1}; sound = "AddItemFailed"; duration = 10; }; class BriefingWarningSkirmish: HubSysTemplate { title = "$STR_A3_CfgNotifications_BriefingWarningSkirmish_0"; iconPicture = "\A3\UI_F\data\IGUI\Cfg\Actions\settimer_ca.paa"; iconText = ""; description = "$STR_A3_CfgNotifications_BriefingWarningSkirmish_1"; priority = 0; color[] = {1,1,1,0.8}; colorIconPicture[] = {1,1,1,0.8}; }; class BriefingWarningHub: BriefingWarningSkirmish { title = "$STR_A3_CfgNotifications_BriefingWarningHub_0"; description = "$STR_A3_CfgNotifications_BriefingWarningHub_1"; }; class BriefingNotification: BriefingWarningSkirmish { title = "$STR_A3_CfgNotifications_BriefingNotification_0"; description = "$STR_A3_CfgNotifications_BriefingWarningHub_1"; }; class ExfilNotification: BriefingWarningSkirmish { title = "$STR_A3_cfgnotifications_exfilnotification_0"; description = "$STR_A3_cfgnotifications_exfilnotification_1"; iconText = ""; }; class ExfilCommencing: BriefingWarningSkirmish { title = "$STR_A3_cfgnotifications_exfilcommencing_0"; description = "$STR_A3_cfgnotifications_exfilcommencing_1"; iconPicture = "\A3\Ui_f\data\IGUI\Cfg\Actions\open_door_ca.paa"; }; class ZR_AccessProhibited1: HubSysTemplate { title = "$STR_A3_C_in1_notifLeaving_AoA1_title"; description = "$STR_A3_C_in1_notifLeaving_AoA1_desc"; iconPicture = "\A3\Ui_f\data\IGUI\Cfg\Actions\take_ca.paa"; priority = 0; sound = "skirmishEntering"; }; class ZR_AccessProhibited2: HubSysTemplate { title = "$STR_A3_C_in1_notifLeaving_AoA2_title"; description = "$STR_A3_C_in1_notifLeaving_AoA2_desc"; iconPicture = "\A3\Ui_f\data\IGUI\Cfg\Actions\ico_OFF_ca.paa"; priority = 0; sound = "taskFailed"; }; class ZR_SkirmishEntering1: HubSysTemplate { title = "$STR_A3_CfgNotifications_SkirmishEntering_0"; iconPicture = "\A3\Ui_f\data\IGUI\Cfg\Actions\gear_ca.paa"; description = "$STR_A3_CfgNotifications_SkirmishEntering_1"; priority = 0; sound = "skirmishEntering"; }; class ZR_AttendBriefing1: HubSysTemplate { title = "$STR_A3_Notification_ZR_AttendBriefing1_title"; iconPicture = "\A3\Ui_f\data\IGUI\Cfg\Actions\talk_ca.paa"; description = "$STR_A3_Notification_ZR_AttendBriefing1_description"; priority = 0; sound = "skirmishEntering"; }; class ZR_StartOperation1: HubSysTemplate { title = "$STR_A3_Notification_ZR_StartOperation1_title"; iconPicture = "\A3\Ui_f\data\IGUI\Cfg\Actions\takeflag_ca.paa"; description = "$STR_A3_Notification_ZR_StartOperation1_description"; priority = 0; sound = "skirmishEntering"; }; };