9 [
Attribute(
desc:
"List of all aprox text that will show a specific text. It will check if the value is between the given min and max and if non valid are found will always use the last entry")]
10 protected ref array<ref SCR_NotificationAproxDisplayContainer> m_aApproxDisplayContainers;
15 if (m_aApproxDisplayContainers.IsEmpty())
17 Debug.Error2(
"SCR_NotificationAproxNumber",
string.Format(
"Trying to display notification '%1' but no 'm_aApproxDisplayContainers' are assigned!",
typename.EnumToString(
ENotification, m_NotificationKey)));
21 int param1, param2, param3, param4, param5, param6;
22 data.GetParams(param1, param2, param3, param4, param5, param6);
26 data.GetNotificationTextEntries(display1);
29 display1 = GetAproxText(param1);
37 data.SetNotificationTextEntries(display1, display2, display3, display4, display5, display6);
38 return super.GetText(
data);
44 for (
int i = 0; i < m_aApproxDisplayContainers.Count(); i++)
46 if (value >= m_aApproxDisplayContainers[i].
m_fMin && value < m_aApproxDisplayContainers[i].
m_fMax)
47 return m_aApproxDisplayContainers[i].m_sDisplayText;
51 return m_aApproxDisplayContainers[m_aApproxDisplayContainers.Count() -1].m_sDisplayText;
58 [
Attribute(
desc:
"Text shown in the notification at the param location", uiwidget: UIWidgets.LocaleEditBox)]
61 [
Attribute(
desc:
"(inclusive) if nr is greater or equal than this and less than max",)]
64 [
Attribute(
desc:
"(inclusive) if nr is smaller than this and greater or equal than min",)]