|
Arma Reforger Script API
|
Takes care of dynamic and static onscreen popups. More...
Public Member Functions | |
| void | Offset (bool down) |
| void | OnInventoryToggle (bool open) |
| bool | IsPresentPopupWithHigherPriority (int priority) |
| void | SetTitleText (string text) |
| 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 | ClearMsg () |
| Clear and instant fade all popup messages. | |
| 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 | OnEditorOpened () |
| void | OnEditorClosed () |
| void | OnEditorModeChanged (SCR_EditorModeEntity currentMode, SCR_EditorModeEntity prevMode) |
| void | FadeWidget (notnull Widget widget, bool fadeOut=false, bool instant=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_PopupMessage > | m_aQueue = {} |
| Widget | m_wRoot |
| 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 |
| string | m_sCachedLanguage |
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" |
Takes care of dynamic and static onscreen popups.
| void SCR_PopUpNotification.SCR_PopUpNotification | ( | IEntitySource | src, |
| IEntity | parent ) |
| void SCR_PopUpNotification.~SCR_PopUpNotification | ( | ) |
| void SCR_PopUpNotification.ChangeProgressBarFinish | ( | WorldTimestamp | progressEnd | ) |
| void SCR_PopUpNotification.ClearMsg | ( | ) |
Clear and instant fade all popup messages.
| override void SCR_PopUpNotification.EOnFrame | ( | IEntity | owner, |
| float | timeSlice ) |
|
protected |
| SCR_PopupMessage SCR_PopUpNotification.GetCurrentMsg | ( | ) |
|
static |
| void SCR_PopUpNotification.HideCurrentMsg | ( | ) |
|
protected |
| bool SCR_PopUpNotification.IsPresentPopupWithHigherPriority | ( | int | priority | ) |
| void SCR_PopUpNotification.Offset | ( | bool | down | ) |
|
protected |
|
protected |
|
protected |
| void SCR_PopUpNotification.OnInventoryToggle | ( | bool | open | ) |
|
protected |
| 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.
| text | Text to be shown |
| duration | How long the text should stay on screen, -1 for infinite duration (use HideCurrentMsg() to toggle off) |
| text2 | Secondary (smaller) text |
| prio | Priority (when more popups are queued) |
| param1 | (and subsequent) Text or secondary text parameters to be parsed |
| sound | Sound event to be played via SCR_UISoundEntity |
| category | See SCR_EPopupMsgFilter for settings |
| progressStart | Progress bar start value (relative to Replication.Time()) |
| progressEnd | Progress bar end value (relative to Replication.Time() |
|
protected |
|
protected |
|
protected |
| void SCR_PopUpNotification.SetDefaultHorizontalPosition | ( | ) |
|
static |
| void SCR_PopUpNotification.SetTitleText | ( | string | text | ) |
|
protected |
|
static |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |