Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SCR_PopUpNotification Interface Reference

Takes care of dynamic and static onscreen popups. More...

Inheritance diagram for SCR_PopUpNotification:
[legend]

Public Member Functions

void Offset (bool down)
 
void OnInventoryToggle (bool open)
 
void PopupMsg (string text, float duration=DEFAULT_DURATION, string text2="", int prio=-1, string param1="", string param2="", string param3="", string param4="", string text2param1="", string text2param2="", string text2param3="", string text2param4="", string sound="", SCR_EPopupMsgFilter category=SCR_EPopupMsgFilter.ALL, WorldTimestamp progressStart=null, WorldTimestamp progressEnd=null)
 Queue new popup notification.
 
SCR_PopupMessage GetCurrentMsg ()
 
void HideCurrentMsg ()
 
void ChangeProgressBarFinish (WorldTimestamp progressEnd)
 
void SetDefaultHorizontalPosition ()
 
override void EOnFrame (IEntity owner, float timeSlice)
 
void SCR_PopUpNotification (IEntitySource src, IEntity parent)
 
void ~SCR_PopUpNotification ()
 

Static Public Member Functions

static SCR_PopUpNotification GetInstance ()
 
static void SetFilter (SCR_EPopupMsgFilter filter)
 

Static Public Attributes

static const float DEFAULT_DURATION = 4
 
static const string TASKS_KEY_IMAGE_FORMAT = "<color rgba='226, 168, 79, 200'><shadow mode='image' color='0, 0, 0' size='1' offset='1, 1' opacity = '0.5'><action name='TasksOpen'/></shadow></color>"
 

Protected Member Functions

void ProcessInit ()
 
void OnSettingsChanged ()
 
void RefreshInventoryInvoker (IEntity previousPlayer, IEntity currentPlayer)
 
void FadeWidget (notnull Widget widget, bool fadeOut=false)
 
void RefreshQueue (SCR_PopupMessage msg=null)
 
void ShowMsg (notnull SCR_PopupMessage msg)
 
void HideMsg (notnull SCR_PopupMessage msg)
 

Protected Attributes

ref array< ref SCR_PopupMessagem_aQueue = {}
 
RichTextWidget m_wPopupMsg
 
RichTextWidget m_wPopupMsgSmall
 
ProgressBarWidget m_wStatusProgress
 
float m_fDefaultAlpha
 
float m_fDefaultHorizontalOffset = -1
 
bool m_bInventoryOpen
 
bool m_bOffset
 
bool m_bIsEnabledInSettings = true
 
IEntity m_Player
 
SCR_PopupMessage m_ShownMsg
 

Static Protected Attributes

static const int INVALID_ID = -1
 
static const float FADE_DURATION = 1
 
static const ResourceName LAYOUT_NAME = "{8EF935F196AADE33}UI/layouts/Common/PopupUI.layout"
 
static const int POPUP_OFFSET = 35
 
static SCR_PopUpNotification s_Instance = null
 
static SCR_EPopupMsgFilter s_eFilter
 
static const string INTERFACE_SETTINGS_NAME = "m_bShowNotifications"
 

Detailed Description

Takes care of dynamic and static onscreen popups.

Constructor & Destructor Documentation

◆ SCR_PopUpNotification()

void SCR_PopUpNotification.SCR_PopUpNotification ( IEntitySource  src,
IEntity  parent 
)

◆ ~SCR_PopUpNotification()

void SCR_PopUpNotification.~SCR_PopUpNotification ( )

Member Function Documentation

◆ ChangeProgressBarFinish()

void SCR_PopUpNotification.ChangeProgressBarFinish ( WorldTimestamp  progressEnd)

◆ EOnFrame()

override void SCR_PopUpNotification.EOnFrame ( IEntity  owner,
float  timeSlice 
)

◆ FadeWidget()

void SCR_PopUpNotification.FadeWidget ( notnull Widget  widget,
bool  fadeOut = false 
)
protected

◆ GetCurrentMsg()

SCR_PopupMessage SCR_PopUpNotification.GetCurrentMsg ( )

◆ GetInstance()

static SCR_PopUpNotification SCR_PopUpNotification.GetInstance ( )
static

◆ HideCurrentMsg()

void SCR_PopUpNotification.HideCurrentMsg ( )

◆ HideMsg()

void SCR_PopUpNotification.HideMsg ( notnull SCR_PopupMessage  msg)
protected

◆ Offset()

void SCR_PopUpNotification.Offset ( bool  down)

◆ OnInventoryToggle()

void SCR_PopUpNotification.OnInventoryToggle ( bool  open)

◆ OnSettingsChanged()

void SCR_PopUpNotification.OnSettingsChanged ( )
protected

◆ PopupMsg()

void SCR_PopUpNotification.PopupMsg ( string  text,
float  duration = DEFAULT_DURATION,
string  text2 = "",
int  prio = -1,
string  param1 = "",
string  param2 = "",
string  param3 = "",
string  param4 = "",
string  text2param1 = "",
string  text2param2 = "",
string  text2param3 = "",
string  text2param4 = "",
string  sound = "",
SCR_EPopupMsgFilter  category = SCR_EPopupMsgFilter::ALL,
WorldTimestamp  progressStart = null,
WorldTimestamp  progressEnd = null 
)

Queue new popup notification.

Parameters
textText to be shown
durationHow long the text should stay on screen, -1 for infinite duration (use HideCurrentMsg() to toggle off)
text2Secondary (smaller) text
prioPriority (when more popups are queued)
param1(and subsequent) Text or secondary text parameters to be parsed
soundSound event to be played via SCR_UISoundEntity
categorySee SCR_EPopupMsgFilter for settings
progressStartProgress bar start value (relative to Replication.Time())
progressEndProgress bar end value (relative to Replication.Time()

◆ ProcessInit()

void SCR_PopUpNotification.ProcessInit ( )
protected

◆ RefreshInventoryInvoker()

void SCR_PopUpNotification.RefreshInventoryInvoker ( IEntity  previousPlayer,
IEntity  currentPlayer 
)
protected

◆ RefreshQueue()

void SCR_PopUpNotification.RefreshQueue ( SCR_PopupMessage  msg = null)
protected

◆ SetDefaultHorizontalPosition()

void SCR_PopUpNotification.SetDefaultHorizontalPosition ( )

◆ SetFilter()

static void SCR_PopUpNotification.SetFilter ( SCR_EPopupMsgFilter  filter)
static

◆ ShowMsg()

void SCR_PopUpNotification.ShowMsg ( notnull SCR_PopupMessage  msg)
protected

Member Data Documentation

◆ DEFAULT_DURATION

const float SCR_PopUpNotification.DEFAULT_DURATION = 4
static

◆ FADE_DURATION

const float SCR_PopUpNotification.FADE_DURATION = 1
staticprotected

◆ INTERFACE_SETTINGS_NAME

const string SCR_PopUpNotification.INTERFACE_SETTINGS_NAME = "m_bShowNotifications"
staticprotected

◆ INVALID_ID

const int SCR_PopUpNotification.INVALID_ID = -1
staticprotected

◆ LAYOUT_NAME

const ResourceName SCR_PopUpNotification.LAYOUT_NAME = "{8EF935F196AADE33}UI/layouts/Common/PopupUI.layout"
staticprotected

◆ m_aQueue

ref array<ref SCR_PopupMessage> SCR_PopUpNotification.m_aQueue = {}
protected

◆ m_bInventoryOpen

bool SCR_PopUpNotification.m_bInventoryOpen
protected

◆ m_bIsEnabledInSettings

bool SCR_PopUpNotification.m_bIsEnabledInSettings = true
protected

◆ m_bOffset

bool SCR_PopUpNotification.m_bOffset
protected

◆ m_fDefaultAlpha

float SCR_PopUpNotification.m_fDefaultAlpha
protected

◆ m_fDefaultHorizontalOffset

float SCR_PopUpNotification.m_fDefaultHorizontalOffset = -1
protected

◆ m_Player

IEntity SCR_PopUpNotification.m_Player
protected

◆ m_ShownMsg

SCR_PopupMessage SCR_PopUpNotification.m_ShownMsg
protected

◆ m_wPopupMsg

RichTextWidget SCR_PopUpNotification.m_wPopupMsg
protected

◆ m_wPopupMsgSmall

RichTextWidget SCR_PopUpNotification.m_wPopupMsgSmall
protected

◆ m_wStatusProgress

ProgressBarWidget SCR_PopUpNotification.m_wStatusProgress
protected

◆ POPUP_OFFSET

const int SCR_PopUpNotification.POPUP_OFFSET = 35
staticprotected

◆ s_eFilter

SCR_EPopupMsgFilter SCR_PopUpNotification.s_eFilter
staticprotected

◆ s_Instance

SCR_PopUpNotification SCR_PopUpNotification.s_Instance = null
staticprotected

◆ TASKS_KEY_IMAGE_FORMAT

const string SCR_PopUpNotification.TASKS_KEY_IMAGE_FORMAT = "<color rgba='226, 168, 79, 200'><shadow mode='image' color='0, 0, 0' size='1' offset='1, 1' opacity = '0.5'><action name='TasksOpen'/></shadow></color>"
static

The documentation for this interface was generated from the following file: