6 [
Attribute(
desc:
"Widgets that are colored by the Notification Color")]
9 [
Attribute(
desc:
"Notifications widgets that are hidden if notification is GM only. These widgets should be shown by default")]
12 [
Attribute(
desc:
"Notifications widgets that are shown if notification is GM only. These widgets should be hidden by default")]
69 if (!notificationText)
84 uiInfo.SetIconTo(icon);
86 icon.SetVisible(
false);
99 elementWidget =
m_wRoot.FindAnyWidget(element);
102 elementWidget.SetVisible(
false);
107 elementWidget =
m_wRoot.FindAnyWidget(element);
110 elementWidget.SetVisible(
true);
116 if (coloredTextNotificationUIInfo)
119 textColor.SetA(notificationText.GetColor().A());
120 notificationText.SetColor(textColor);
138 if (!editorManager.IsOpened())
162 string notificationMessage =
m_Data.GetText();
163 if (notificationMessage.IsEmpty())
174 if (!notificationText)
179 if (notificationMessage !=
string.Empty)
210 color =
Color.FromInt(notificationColor.PackToInt());
211 color.SetA(widget.GetColor().A());
212 widget.SetColor(notificationColor);
346 if (!cursorManualCameraComponent)
349 cursorManualCameraComponent.TeleportCamera(
position);
ArmaReforgerScripted GetGame()
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
static SCR_ManualCamera GetCameraInstance()
SCR_BaseManualCameraComponent FindCameraComponent(typename type)
bool GetPosition(SCR_NotificationData data, out vector position)
void GetDisplayVisualizationData(SCR_NotificationData data, out SCR_UINotificationInfo info=null, out ENotificationColor colorEnum=ENotificationColor.NEUTRAL)
ENotificationColor GetTextColor(SCR_NotificationData data)
static const float ANIMATION_DONE_UPDATE_SPEED
SCR_NotificationsLogComponent m_NotificationsLog
Widget m_GoToIndicatorsHolder
void SetWidgetColor(Color notificationColor)
void DeleteNotification()
SCR_NotificationData GetData()
void AnimationDoneListenerUpdate()
string m_sGoToIndicatorsHolder
bool m_bIsListeningToDoneFade
ref array< string > m_aColoredWidgets
ref array< string > m_aGameMasterOnlyWidgets
override void HandlerAttached(Widget w)
void OnNewNotificationHasPosition()
override void HandlerDeattached(Widget w)
static const float AUTO_FADE_SPEED
static const float FORCE_DELETE_FADE_SPEED
void OnLimitedChanged(bool limited)
ref SCR_NotificationData m_Data
ScriptInvoker GetOnDeleted()
static const float FADE_IN_SPEED
void FadeDelete(float fadeSpeed)
ref array< string > m_aNonGameMasterWidgets
void ForceRemoveNotification()
Delete the notification with a fast fade.
void TeleportToLocation()
void UpdateText()
Update message text.
ref ScriptInvoker Event_OnDeleted
string m_sNotificationText
void Init(SCR_NotificationData data, SCR_NotificationsLogComponent notificationLog, float fadeDelay)
void OnInputDeviceChanged(bool isUsingMouseAndKeyboard)
bool m_bShowTeleportControlHint
string m_sGoToControlHint
SCR_NotificationsComponent GetNotificationManager()
SCR_EditorManagerEntity GetEditorManager()
Color GetNotificationTextColor(ENotificationColor notificationColor)
Teleport the camera to the cursor's world position.
UIInfo used by the Notifications system.
SCR_FieldOfViewSettings Attribute