Arma Reforger Script API
Loading...
Searching...
No Matches
Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SCR_ServicesStatusDialogUI Interface Reference
Inheritance diagram for SCR_ServicesStatusDialogUI:
[legend]

Static Public Member Functions

static void OpenIfServicesAreNotOK ()
 
- Static Public Member Functions inherited from SCR_ConfigurableDialogUi
static SCR_ConfigurableDialogUi CreateFromPreset (ResourceName presetsResourceName, string tag, SCR_ConfigurableDialogUi customDialogObj=null)
 Creates a dialog from preset.
 
static SCR_ConfigurableDialogUi GetCurrentDialog ()
 
static string GetCurrentDialogTag ()
 
static bool IsPresetValid (ResourceName presetsResourceName, string tag)
 

Protected Member Functions

override void OnMenuOpen (SCR_ConfigurableDialogUiPreset preset)
 Called last of all, after all the initialization of main element done.
 
override void OnMenuClose ()
 
void OnRefresh ()
 refresh service statuses refresh UI through ServicesStatusDialogComponent
 
void OnCommStatusUpdated (SCR_ECommStatus status, float responseTime, float lastSuccessTime, float lastFailTime)
 
void UpdateUI (SCR_ECommStatus status)
 refresh UI through ServicesStatusDialogComponent
 
EServiceStatus UpdateServiceStates ()
 Updates status of services and returns general status based on the number of active services.
 
void UpdatePingValueUI ()
 
void UpdateRefreshWidgets ()
 
EServiceStatus GetEnumStatus (string wantedItemName)
 
EServiceStatus GetStatusFromString (string status)
 
- Protected Member Functions inherited from SCR_ConfigurableDialogUi
void OnConfirm ()
 
void OnCancel ()
 
void OnButtonPressed (SCR_InputButtonComponent button)
 
void OnMenuOpen (SCR_ConfigurableDialogUiPreset preset)
 Called last of all, after all the initialization of main element done.
 
void Init (Widget root, SCR_ConfigurableDialogUiPreset preset, MenuBase proxyMenu)
 
void InitWidgets ()
 
SCR_InputButtonComponent CreateButton (SCR_ConfigurableDialogUiButtonPreset buttonPreset)
 
void Internal_Close ()
 
void InitAttributedVariables ()
 Verifies that all attributed variables are set up.
 

Static Protected Member Functions

static void OnCommStatusUpdatedOpenDialog (SCR_ECommStatus status, float responseTime, float lastSuccessTime, float lastFailTime)
 
- Static Protected Member Functions inherited from SCR_ConfigurableDialogUi
static SCR_ConfigurableDialogUi CreateByPreset (SCR_ConfigurableDialogUiPreset preset, SCR_ConfigurableDialogUi customDialogObj=null)
 
static Widget GetContentWidget (Widget baseWidget)
 Returns the container in which to place the content layout. Container must be called ContentLayoutContainer.
 

Protected Attributes

SCR_ServicesStatusDialogComponent m_ServicesStatusDialogComponent
 
SCR_InputButtonComponent m_Refresh
 
- Protected Attributes inherited from SCR_ConfigurableDialogUi
float m_fFadeInTime
 
ResourceName m_sNavigationButtonLayout
 
string m_sWidgetNameButtonsLeft
 
string m_sWidgetNameButtonsRight
 
string m_sWidgetNameButtonsCenter
 
ImageWidget m_wImgTopLine
 
ImageWidget m_wImgTitleIcon
 
TextWidget m_wTitle
 
TextWidget m_wMessage
 
VerticalLayoutWidget m_wContentVerticalLayout
 
ref map< string, SCR_InputButtonComponentm_aButtonComponents = new map<string, SCR_InputButtonComponent>
 
Widget m_wRoot
 
OverlayWidget m_wDialogBase
 
SCR_DynamicFooterComponent m_DynamicFooter
 
MenuBase m_ProxyMenu
 
ref SCR_ConfigurableDialogUiPreset m_DialogPreset
 
string m_sLastPressedButtonTag
 
bool m_bIsClosing
 

Static Protected Attributes

static const int LAST_UPDATED_REFRESH_RATE = 500
 
static bool m_bIsOpen
 
- Static Protected Attributes inherited from SCR_ConfigurableDialogUi
static SCR_ConfigurableDialogUi m_CurrentDialog
 

Additional Inherited Members

- Public Member Functions inherited from SCR_ConfigurableDialogUi
Widget GetRootWidget ()
 
OverlayWidget GetDialogBaseOverlay ()
 Returns the base dialog overlay (the rectangle covered by the background). Useful for dialog wide darkening (e.g. by SCR_LoadingOverlay)
 
Widget GetContentLayoutRoot ()
 Returns the root of the content layout.
 
SCR_ConfigurableDialogUiPreset GetDialogPreset ()
 
void Close ()
 
void SetTitle (string text)
 
void SetMessage (string text)
 
void SetMessageColor (Color color)
 
TextWidget GetMessageWidget ()
 
string GetMessageStr ()
 
void SetTitleIcon (ResourceName image, string imageName)
 Set title icons with custom image.
 
void SetIconColor (Color color)
 Set title icons with custom image.
 
void SetStyle (EConfigurableDialogStyle type)
 Sets colors based on style.
 
void BindButtonConfirm (SCR_InputButtonComponent button)
 Allows to register a custom button to call OnConfirm (i.e. one not in the conf files but placed by hand in the layout)
 
void BindButtonCancel (SCR_InputButtonComponent button)
 Allows to register a custom button to call OnCancel (i.e. one not in the conf files but placed by hand in the layout)
 
void BindButtonGeneric (SCR_InputButtonComponent button, string tag=string.Empty)
 Allows to register a custom button to call OnButtonPressed (i.e. one not in the conf files but placed by hand in the layout). An empty tag will result in the widget's name being used instead.
 
SCR_InputButtonComponent FindButton (string tag)
 Returns a button with given tag.
 
string GetButtonTag (SCR_InputButtonComponent button)
 Returns a button's tag.
 
void OnMenuUpdate (float tDelta)
 
void OnMenuFocusGained ()
 
void OnMenuFocusLost ()
 
void OnMenuShow ()
 
void OnMenuHide ()
 
void OnMenuClose ()
 
- Public Attributes inherited from SCR_ConfigurableDialogUi
ref ScriptInvoker m_OnConfirm = new ScriptInvoker()
 
ref ScriptInvoker m_OnCancel = new ScriptInvoker()
 
ref ScriptInvoker m_OnClose = new ScriptInvoker()
 
ref ScriptInvoker m_OnCloseStart = new ScriptInvoker()
 
ref ScriptInvoker m_OnButtonPressed = new ScriptInvoker()
 
- Static Public Attributes inherited from SCR_ConfigurableDialogUi
static const ResourceName NAVIGATION_BUTTON_LAYOUT = "{87037226B1A2064B}UI/layouts/WidgetLibrary/Buttons/WLib_NavigationButtonSuperSmall.layout"
 
static const string BUTTON_CONFIRM = "confirm"
 
static const string BUTTON_CANCEL = "cancel"
 

Member Function Documentation

◆ GetEnumStatus()

EServiceStatus SCR_ServicesStatusDialogUI.GetEnumStatus ( string  wantedItemName)
protected

◆ GetStatusFromString()

EServiceStatus SCR_ServicesStatusDialogUI.GetStatusFromString ( string  status)
protected

◆ OnCommStatusUpdated()

void SCR_ServicesStatusDialogUI.OnCommStatusUpdated ( SCR_ECommStatus  status,
float  responseTime,
float  lastSuccessTime,
float  lastFailTime 
)
protected

◆ OnCommStatusUpdatedOpenDialog()

static void SCR_ServicesStatusDialogUI.OnCommStatusUpdatedOpenDialog ( SCR_ECommStatus  status,
float  responseTime,
float  lastSuccessTime,
float  lastFailTime 
)
staticprotected

◆ OnMenuClose()

override void SCR_ServicesStatusDialogUI.OnMenuClose ( )
protected

◆ OnMenuOpen()

override void SCR_ServicesStatusDialogUI.OnMenuOpen ( SCR_ConfigurableDialogUiPreset  preset)
protected

Called last of all, after all the initialization of main element done.

Here you can perform custom initialization.

Implements SCR_ConfigurableDialogUi.

◆ OnRefresh()

void SCR_ServicesStatusDialogUI.OnRefresh ( )
protected

refresh service statuses refresh UI through ServicesStatusDialogComponent

◆ OpenIfServicesAreNotOK()

static void SCR_ServicesStatusDialogUI.OpenIfServicesAreNotOK ( )
static

◆ UpdatePingValueUI()

void SCR_ServicesStatusDialogUI.UpdatePingValueUI ( )
protected

◆ UpdateRefreshWidgets()

void SCR_ServicesStatusDialogUI.UpdateRefreshWidgets ( )
protected

◆ UpdateServiceStates()

EServiceStatus SCR_ServicesStatusDialogUI.UpdateServiceStates ( )
protected

Updates status of services and returns general status based on the number of active services.

◆ UpdateUI()

void SCR_ServicesStatusDialogUI.UpdateUI ( SCR_ECommStatus  status)
protected

refresh UI through ServicesStatusDialogComponent

Member Data Documentation

◆ LAST_UPDATED_REFRESH_RATE

const int SCR_ServicesStatusDialogUI.LAST_UPDATED_REFRESH_RATE = 500
staticprotected

◆ m_bIsOpen

bool SCR_ServicesStatusDialogUI.m_bIsOpen
staticprotected

◆ m_Refresh

SCR_InputButtonComponent SCR_ServicesStatusDialogUI.m_Refresh
protected

◆ m_ServicesStatusDialogComponent

SCR_ServicesStatusDialogComponent SCR_ServicesStatusDialogUI.m_ServicesStatusDialogComponent
protected

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