7 protected ref array<ref SCR_ServicesStatusDialogComponent_Status>
m_aStatuses;
10 protected ref array<ref SCR_ServicesStatusDialogComponent_Status>
m_aMainStatuses;
12 [
Attribute(defvalue:
"{D6EA742398E63066}UI/layouts/Menus/Dialogs/ServiceStatusLine.layout",
params:
"layout")]
22 [
Attribute(defvalue:
"%1+",
desc:
"Can use %1 for Max Ping display (default \"%1+\" e.g \"999+\")")]
26 [
Attribute(defvalue:
"#AR-Account_LoginTimeout")]
29 [
Attribute(defvalue:
"#AR-ServicesStatus_Message_AttemptingToConnect")]
32 [
Attribute(defvalue:
"#AR-Workshop_Dialog_NoConnection_CheckConnection")]
35 [
Attribute(defvalue:
"#AR-ServicesStatus_Message_AllServicesUp")]
38 [
Attribute(defvalue:
"#AR-ServicesStatus_Message_SomeServicesUp")]
41 [
Attribute(defvalue:
"#AR-ServicesStatus_Message_AllServicesDown")]
45 [
Attribute(defvalue:
"#AR-ServicesStatus_LastUpdate_Seconds_Condensed")]
48 [
Attribute(defvalue:
"#AR-ServicesStatus_LastUpdate_Condensed")]
51 [
Attribute(defvalue:
"#AR-Account_LoginTimeout")]
55 [
Attribute(defvalue:
"ServiceStatusLegend")]
58 [
Attribute(defvalue:
"#AR-ServicesStatus_Legend_Warning")]
61 [
Attribute(defvalue:
"#AR-ServicesStatus_Legend_Running")]
64 [
Attribute(defvalue:
"#AR-ServicesStatus_Legend_Error")]
82 super.HandlerAttached(w);
120 buildInfo.SetTextFormat(buildInfo.GetText(),
game.GetBuildVersion(),
game.GetBuildTime());
128 super.HandlerDeattached(w);
139 SCR_ServicesStatusDialogComponent_Status status;
154 line.SetName(service.m_sId);
161 lineComp.
m_wTitle.SetText(service.m_sTitle);
192 else if (pingInMs == 0)
195 color =
Color.FromInt(
UIColors.NEUTRAL_ACTIVE_STANDBY.PackToInt());
206 sPing = pingInMs.ToString();
217 array<ref SCR_BackendServiceDisplay> services = {};
296 switch(servicesStatus)
336 int minutes = pingAge / 60000;
337 int seconds = (pingAge / 1000) - (60 * minutes);
367 backgroundWidget.SetColor(status.m_sBackgroundColor);
377 textWidget.SetColor(status.m_sTextColor);
386 SCR_ServicesStatusDialogComponent_Status status;
396 iconWidget.LoadImageFromSet(0, status.m_sImageSet, status.m_sIcon);
397 iconWidget.SetColor(status.m_sIconColor);
401 protected SCR_ServicesStatusDialogComponent_Status
GetStatus(
EServiceStatus serviceStatus, array<ref SCR_ServicesStatusDialogComponent_Status> statuses)
406 foreach (SCR_ServicesStatusDialogComponent_Status status : statuses)
408 if (status.m_Status == serviceStatus)
474 content.SetMessageColor(statusPreset.m_sIconColor);
479class SCR_ServicesStatusDialogComponent_Status
491 ref
Color m_sIconColor;
494 ref
Color m_sBackgroundColor;
497 ref
Color m_sTextColor;
511 super.HandlerAttached(w);
class RestAPIHelper< JsonApiStruct T > content
ArmaReforgerScripted GetGame()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_ServicesStatusDialogComponent ScriptedWidgetComponent BaseContainerProps()] class SCR_ServicesStatusDialogComponent_Status
SCR_ECommStatus
This class may become obsolete on BackendAPI update.
void SetAllServicesState(EServiceStatus status)
void SetLastUpdateMessage(int pingAge)
string m_sStatusesMessageError
ref array< ref SCR_ServicesStatusDialogComponent_Status > m_aMainStatuses
SCR_ServicesStatusDialogComponent_Status GetStatus(EServiceStatus serviceStatus, array< ref SCR_ServicesStatusDialogComponent_Status > statuses)
override void HandlerDeattached(Widget w)
string m_sStatusesMessageAttemptingToConnect
string m_sStatusesMessageRunning
SCR_ScriptedWidgetTooltip m_Tooltip
void SetRefreshMessage(int countdown, bool visible=true)
void SetPing(int pingInMs)
void OnTooltipShow(SCR_ScriptedWidgetTooltip tooltip)
ref array< ref SCR_ServicesStatusDialogComponent_Status > m_aStatuses
void UpdateServicesMessage(SCR_ECommStatus commStatus, EServiceStatus servicesStatus)
TextWidget m_wServicesMessage
array< ref SCR_BackendServiceDisplay > GetAllServices()
string m_sStatusesMessageInitializationError
void SetStatusText(Widget textWidget, EServiceStatus serviceStatus)
void SetStatusImageAndColor(ImageWidget iconWidget, EServiceStatus serviceStatus, bool mainIcon=false)
void SetStatusBackground(ImageWidget backgroundWidget, EServiceStatus serviceStatus)
ResourceName m_LineLayout
void SetServiceState(string serviceId, EServiceStatus status)
override void HandlerAttached(Widget w)
Widget m_wLinesParentWidget
string m_sLastUpdateMessageMinutes
ref SCR_BackendServiceDisplayPresets m_ServicesPresets
string m_sStatusesMessageNoConnection
TextWidget m_wRefreshMessage
void CreateLines(Widget w)
string m_sLastUpdateMessageSeconds
string m_sLastUpdateMessageNoConnection
string m_sStatusesMessageWarning
ImageWidget m_wBackground
EServiceStatus GetStatus()
static SCR_ServicesStatusDialogLineComponent FindComponent(notnull Widget w)
override void HandlerAttached(Widget w)
ImageWidget m_wIconWidget
void CacheStatus(EServiceStatus status)
static const int PING_THRESHOLD_BAD
static const int PING_MAX
static bool DisplayServiceOnCurrentPlatform(SCR_BackendServiceDisplay service)
static const int PING_THRESHOLD_GOOD
static SCR_ECommStatus GetLastReceivedCommStatus()
SCR_FieldOfViewSettings Attribute