Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_ValidateRepair_Dialog Interface Reference
Inheritance diagram for SCR_ValidateRepair_Dialog:
SCR_TabDialog SCR_ConfigurableDialogUi

Public Member Functions

bool HasRunningValidation ()
 
bool HasRunningRepair ()
 
bool HasRunningDownload ()
 
override void OnMenuOpen (SCR_ConfigurableDialogUiPreset preset)
 Called last of all, after all the initialization of main element done.
 
override void OnMenuClose ()
 
void LoadAddons (bool enabledAddons)
 
void LoadAddon (notnull SCR_WorkshopItem item)
 
- Public Member Functions inherited from SCR_TabDialog
override void OnMenuShow ()
 
override void OnMenuHide ()
 
override void OnMenuUpdate (float tDelta)
 
override void OnMenuFocusGained ()
 
override void OnMenuFocusLost ()
 
- 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.
 

Protected Member Functions

override void Init (Widget root, SCR_ConfigurableDialogUiPreset preset, MenuBase proxyMenu)
 
void BindButtonValidate (notnull SCR_InputButtonComponent button)
 
void BindButtonRedownload (notnull SCR_InputButtonComponent button)
 
void InitList (bool loadEnabledMods=true)
 
void CreateList (array< ref SCR_WorkshopItem > items)
 
void UpdateStatusText ()
 
void DelayedDownloadButtonVisibility ()
 
void OnFocusAddon (notnull SCR_AddonLineValidateRepairComponent addonComponent)
 
void OnFocusLostAddon (notnull SCR_AddonLineValidateRepairComponent addonComponent)
 
void OnAddonStartValidating (notnull SCR_AddonLineValidateRepairComponent addonComponent)
 
void OnAddonStartRepairing (notnull SCR_AddonLineValidateRepairComponent addonComponent)
 
void OnAddonStartDownloading (notnull SCR_AddonLineValidateRepairComponent addonComponent)
 
void OnAddonDownloaded (notnull SCR_AddonLineValidateRepairComponent addonComponent)
 
void OnAddonValidated (notnull SCR_AddonLineValidateRepairComponent addonComponent)
 
void OnAddonRepaired (notnull SCR_AddonLineValidateRepairComponent addonComponent)
 
void OnValidateAllButton ()
 
void OnReDownloadSelectedAddon ()
 
void DisableButtons ()
 
void OnCloseButton ()
 
- Protected Member Functions inherited from SCR_ConfigurableDialogUi
void OnConfirm ()
 
void OnCancel ()
 
void OnButtonPressed (SCR_InputButtonComponent button)
 
void InitWidgets ()
 
SCR_InputButtonComponent CreateButton (SCR_ConfigurableDialogUiButtonPreset buttonPreset)
 
void Internal_Close ()
 
void InitAttributedVariables ()
 Verifies that all attributed variables are set up.
 

Protected Attributes

ref map< SCR_AddonLineValidateRepairComponent, SCR_WorkshopItemm_mEntriesComponents = new map<SCR_AddonLineValidateRepairComponent, SCR_WorkshopItem>()
 
ref array< SCR_AddonLineValidateRepairComponentm_aEntriesValidating = {}
 
ref array< SCR_AddonLineValidateRepairComponentm_aEntriesRepairing = {}
 
ref array< SCR_AddonLineValidateRepairComponentm_aEntriesDownloading = {}
 
SCR_AddonLineValidateRepairComponent m_FocusedAddon
 
ref map< SCR_EAddonValidateState, ref SCR_AddonLineValidateStatem_mCachedAddonStates
 Holds all the different cached id with the enum as key.
 
ref map< int, string > m_mCachedAddonErrors
 
SCR_InputButtonComponent m_ButtonValidate
 
SCR_InputButtonComponent m_ButtonRedownload
 
TextWidget m_wGlobalStatusText
 
int m_iValidationCount
 
int m_iFailedValidationCount
 
bool m_bValidationStarting
 
- Protected Attributes inherited from SCR_TabDialog
SCR_SuperMenuComponent m_SuperMenuComponent
 
- 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

const ResourceName DOWNLOAD_LINE_LAYOUT = "{8E94F18104D88E73}UI/layouts/Menus/ContentBrowser/ValidateRepair/ValidateRepairLine.layout"
 
const string WIDGET_VERTICAL_NAME = "DownloadManagerVertical"
 
const string WIDGET_SCROLL_NAME = "DownloadManagerScroll"
 
const string WIDGET_STATUS_TEXT_NAME = "m_GlobalStatusText"
 
const string TEXT_VALIDATING_FORMAT = "#AR-AddonValidate_ValidationProgress"
 
const string TEXT_VALIDATED_FORMAT = "#AR-AddonValidate_ValidationFinished"
 
const string TEXT_ERROR_FORMAT = "#AR-AddonValidate_ValidationError"
 
const string BUTTON_VALIDATE = "validation"
 
const string BUTTON_REDOWNLOAD = "redownload"
 
const ResourceName ADDON_VISUALS_CONFIG = "{DFFE187A7738CE15}scripts/Game/UI/Menu/ValidateRepair/AddonLineValidateStates.conf"
 
- Static Protected Attributes inherited from SCR_ConfigurableDialogUi
static SCR_ConfigurableDialogUi m_CurrentDialog
 

Additional Inherited Members

- 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)
 
- 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"
 
- 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.
 

Member Function Documentation

◆ BindButtonRedownload()

void SCR_ValidateRepair_Dialog.BindButtonRedownload ( notnull SCR_InputButtonComponent button)
protected

◆ BindButtonValidate()

void SCR_ValidateRepair_Dialog.BindButtonValidate ( notnull SCR_InputButtonComponent button)
protected

◆ CreateList()

void SCR_ValidateRepair_Dialog.CreateList ( array< ref SCR_WorkshopItem > items)
protected

◆ DelayedDownloadButtonVisibility()

void SCR_ValidateRepair_Dialog.DelayedDownloadButtonVisibility ( )
protected

◆ DisableButtons()

void SCR_ValidateRepair_Dialog.DisableButtons ( )
protected

◆ HasRunningDownload()

bool SCR_ValidateRepair_Dialog.HasRunningDownload ( )

◆ HasRunningRepair()

bool SCR_ValidateRepair_Dialog.HasRunningRepair ( )

◆ HasRunningValidation()

bool SCR_ValidateRepair_Dialog.HasRunningValidation ( )

◆ Init()

override void SCR_ValidateRepair_Dialog.Init ( Widget root,
SCR_ConfigurableDialogUiPreset preset,
MenuBase proxyMenu )
protected

◆ InitList()

void SCR_ValidateRepair_Dialog.InitList ( bool loadEnabledMods = true)
protected

◆ LoadAddon()

void SCR_ValidateRepair_Dialog.LoadAddon ( notnull SCR_WorkshopItem item)

◆ LoadAddons()

void SCR_ValidateRepair_Dialog.LoadAddons ( bool enabledAddons)

◆ OnAddonDownloaded()

void SCR_ValidateRepair_Dialog.OnAddonDownloaded ( notnull SCR_AddonLineValidateRepairComponent addonComponent)
protected

◆ OnAddonRepaired()

void SCR_ValidateRepair_Dialog.OnAddonRepaired ( notnull SCR_AddonLineValidateRepairComponent addonComponent)
protected

◆ OnAddonStartDownloading()

void SCR_ValidateRepair_Dialog.OnAddonStartDownloading ( notnull SCR_AddonLineValidateRepairComponent addonComponent)
protected

◆ OnAddonStartRepairing()

void SCR_ValidateRepair_Dialog.OnAddonStartRepairing ( notnull SCR_AddonLineValidateRepairComponent addonComponent)
protected

◆ OnAddonStartValidating()

void SCR_ValidateRepair_Dialog.OnAddonStartValidating ( notnull SCR_AddonLineValidateRepairComponent addonComponent)
protected

◆ OnAddonValidated()

void SCR_ValidateRepair_Dialog.OnAddonValidated ( notnull SCR_AddonLineValidateRepairComponent addonComponent)
protected

◆ OnCloseButton()

void SCR_ValidateRepair_Dialog.OnCloseButton ( )
protected

◆ OnFocusAddon()

void SCR_ValidateRepair_Dialog.OnFocusAddon ( notnull SCR_AddonLineValidateRepairComponent addonComponent)
protected

◆ OnFocusLostAddon()

void SCR_ValidateRepair_Dialog.OnFocusLostAddon ( notnull SCR_AddonLineValidateRepairComponent addonComponent)
protected

◆ OnMenuClose()

override void SCR_ValidateRepair_Dialog.OnMenuClose ( )

Implements SCR_TabDialog.

◆ OnMenuOpen()

override void SCR_ValidateRepair_Dialog.OnMenuOpen ( SCR_ConfigurableDialogUiPreset preset)

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

Here you can perform custom initialization.

Implements SCR_TabDialog.

◆ OnReDownloadSelectedAddon()

void SCR_ValidateRepair_Dialog.OnReDownloadSelectedAddon ( )
protected

◆ OnValidateAllButton()

void SCR_ValidateRepair_Dialog.OnValidateAllButton ( )
protected

◆ UpdateStatusText()

void SCR_ValidateRepair_Dialog.UpdateStatusText ( )
protected

Hackfix

Member Data Documentation

◆ ADDON_VISUALS_CONFIG

const ResourceName SCR_ValidateRepair_Dialog.ADDON_VISUALS_CONFIG = "{DFFE187A7738CE15}scripts/Game/UI/Menu/ValidateRepair/AddonLineValidateStates.conf"
staticprotected

◆ BUTTON_REDOWNLOAD

const string SCR_ValidateRepair_Dialog.BUTTON_REDOWNLOAD = "redownload"
staticprotected

◆ BUTTON_VALIDATE

const string SCR_ValidateRepair_Dialog.BUTTON_VALIDATE = "validation"
staticprotected

◆ DOWNLOAD_LINE_LAYOUT

const ResourceName SCR_ValidateRepair_Dialog.DOWNLOAD_LINE_LAYOUT = "{8E94F18104D88E73}UI/layouts/Menus/ContentBrowser/ValidateRepair/ValidateRepairLine.layout"
staticprotected

◆ m_aEntriesDownloading

ref array<SCR_AddonLineValidateRepairComponent> SCR_ValidateRepair_Dialog.m_aEntriesDownloading = {}
protected

◆ m_aEntriesRepairing

ref array<SCR_AddonLineValidateRepairComponent> SCR_ValidateRepair_Dialog.m_aEntriesRepairing = {}
protected

◆ m_aEntriesValidating

ref array<SCR_AddonLineValidateRepairComponent> SCR_ValidateRepair_Dialog.m_aEntriesValidating = {}
protected

◆ m_ButtonRedownload

SCR_InputButtonComponent SCR_ValidateRepair_Dialog.m_ButtonRedownload
protected

◆ m_ButtonValidate

SCR_InputButtonComponent SCR_ValidateRepair_Dialog.m_ButtonValidate
protected

◆ m_bValidationStarting

bool SCR_ValidateRepair_Dialog.m_bValidationStarting
protected

◆ m_FocusedAddon

SCR_AddonLineValidateRepairComponent SCR_ValidateRepair_Dialog.m_FocusedAddon
protected

◆ m_iFailedValidationCount

int SCR_ValidateRepair_Dialog.m_iFailedValidationCount
protected

◆ m_iValidationCount

int SCR_ValidateRepair_Dialog.m_iValidationCount
protected

◆ m_mCachedAddonErrors

ref map<int, string> SCR_ValidateRepair_Dialog.m_mCachedAddonErrors
protected

◆ m_mCachedAddonStates

ref map<SCR_EAddonValidateState, ref SCR_AddonLineValidateState> SCR_ValidateRepair_Dialog.m_mCachedAddonStates
protected

Holds all the different cached id with the enum as key.

◆ m_mEntriesComponents

ref map<SCR_AddonLineValidateRepairComponent, SCR_WorkshopItem> SCR_ValidateRepair_Dialog.m_mEntriesComponents = new map<SCR_AddonLineValidateRepairComponent, SCR_WorkshopItem>()
protected

◆ m_wGlobalStatusText

TextWidget SCR_ValidateRepair_Dialog.m_wGlobalStatusText
protected

◆ TEXT_ERROR_FORMAT

const string SCR_ValidateRepair_Dialog.TEXT_ERROR_FORMAT = "#AR-AddonValidate_ValidationError"
staticprotected

◆ TEXT_VALIDATED_FORMAT

const string SCR_ValidateRepair_Dialog.TEXT_VALIDATED_FORMAT = "#AR-AddonValidate_ValidationFinished"
staticprotected

◆ TEXT_VALIDATING_FORMAT

const string SCR_ValidateRepair_Dialog.TEXT_VALIDATING_FORMAT = "#AR-AddonValidate_ValidationProgress"
staticprotected

◆ WIDGET_SCROLL_NAME

const string SCR_ValidateRepair_Dialog.WIDGET_SCROLL_NAME = "DownloadManagerScroll"
staticprotected

◆ WIDGET_STATUS_TEXT_NAME

const string SCR_ValidateRepair_Dialog.WIDGET_STATUS_TEXT_NAME = "m_GlobalStatusText"
staticprotected

◆ WIDGET_VERTICAL_NAME

const string SCR_ValidateRepair_Dialog.WIDGET_VERTICAL_NAME = "DownloadManagerVertical"
staticprotected

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