Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SCR_ReportedAddonsDialog Interface Reference

Show list of reported mods and provide option to cancel reports. More...

Inheritance diagram for SCR_ReportedAddonsDialog:
[legend]

Public Member Functions

override void OnMenuOpen (SCR_ConfigurableDialogUiPreset preset)
 Called last of all, after all the initialization of main element done.
 
ScriptInvoker GetOnAllReportsCanceled ()
 
- Public Member Functions inherited from SCR_AddonListDialog
void SCR_AddonListDialog (array< ref SCR_WorkshopItem > items, string preset)
 
override void OnMenuOpen (SCR_ConfigurableDialogUiPreset preset)
 Called last of all, after all the initialization of main element done.
 
array< SCR_DownloadManager_AddonDownloadLineGetDonwloadLines ()
 
- 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 ()
 

Protected Member Functions

void SetupReports ()
 Check report state and setup entries data Search for reported author.
 
override void OnConfirm ()
 
SCR_ModularButtonComponent CreateEntry (string name, string message)
 Create entry with specific reported author.
 
void CreateAddonEntry (notnull SCR_WorkshopItem item)
 Create addon entry with message based on type.
 
void OnAddonEntrySelected (SCR_ModularButtonComponent button)
 
void OnAddonReportLoadSuccess (SCR_WorkshopItem item)
 
void OnAddonReportLoadError (SCR_WorkshopItem item)
 
void CreateAuthorEntry (notnull WorkshopAuthor author)
 Create entry with reported author.
 
void OnAuthorEntrySelected (SCR_ModularButtonComponent button)
 
void OnCancelReport ()
 
void AuthorBlockCancelDialog ()
 
void OnAuthorReportLoadResponse (SCR_BackendCallback callback)
 
void OpenAuthorModsDialog (WorkshopAuthor author)
 
void OnConfirmRemoveAuthorBlock (SCR_ConfigurableDialogUi dialog)
 
void OnRemoveAuthorBlockResponse (SCR_BackendCallback callback)
 
void OnReportDialogClose (SCR_ConfigurableDialogUi dialog)
 Call this on closing any report dialog to set repot list focus.
 
void DisplayReportCancelSuccess (notnull SCR_ModularButtonComponent button)
 
void AllButtonsCanceled ()
 
void OnCancelRemoveAuthorReport (SCR_ConfigurableDialogUi dialog)
 
void OnAddonLineFocus (SCR_ModularButtonComponent button)
 Show details of addon line report when focused.
 
void OnCancelReportActived ()
 Start to canceling report of currently focused mod.
 
void OnCancelReportConfirm (SCR_ConfigurableDialogUi dialog)
 
void OnCancelReportSuccess (SCR_WorkshopItemActionCancelReport action)
 
void OnCancelReportFail (SCR_WorkshopItemActionCancelReport action)
 
void OnCancelReportDialog (SCR_ConfigurableDialogUi dialog)
 
void FocusTopLine ()
 
void InvokeOnAllReportsCanceled ()
 
- 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.
 

Protected Attributes

ref ScriptInvoker< SCR_ReportedAddonsDialogEvent_OnAllReportsCanceled
 
bool m_bBlocked
 
TextWidget m_wTxtType
 
TextWidget m_wTxtMessage
 
SCR_InputButtonComponent m_NavCancelReport
 
Widget m_wList
 
SCR_LoadingOverlayDialog m_LoadingOvelay
 
ref SCR_CancelMyReportDialog m_DialogCancelReport
 
SCR_ModularButtonComponent m_LineFocused
 
ref map< SCR_ModularButtonComponent, SCR_WorkshopItemm_mButtonsItems
 
ref map< SCR_ModularButtonComponent, WorkshopAuthor > m_mButtonsAuthors
 
WorkshopAuthor m_LoadingAuthor
 
ref SCR_BackendCallback m_ReportCallback = new SCR_BackendCallback()
 
- Protected Attributes inherited from SCR_AddonListDialog
ref array< ref SCR_WorkshopItemm_aItems = {}
 
ref array< SCR_DownloadManager_AddonDownloadLinem_aDownloadLines = {}
 
- 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 LINE_LAYOUT = "{6D73127FB096229D}UI/layouts/Menus/ContentBrowser/DownloadManager/ReportedAddonEntry.layout"
 
const ResourceName DIALOGS_CONFIG = "{ADEA32EB841E8629}Configs/ContentBrowser/ContentBrowserReportDialogs.conf"
 
const string AUTHOR_REPORT_TAG = "report_author"
 
const string AUTHOR_UNBLOCK_TAG = "unblock_author_simple"
 
const string MSG_AUTHOR = "#AR-Workshop_FilterCategory_Author"
 
const string STR_FIXED_REPORT = "#AR-Workshop_Dialog_Success"
 
const string WIDGET_DETAIL = "TxtDetailType"
 
const string WIDGET_MESSAGE = "TxtDetailMessage"
 
const string BUTTON_CANCEL_REPORT = "cancelReport"
 
const int AUTHOR_MOD_LIMIT = 20
 
- Static Protected Attributes inherited from SCR_AddonListDialog
const ResourceName ADDON_LINE_LAYOUT = "{BB5AEDDA3C4134FD}UI/layouts/Menus/ContentBrowser/DownloadManager/DownloadManager_AddonDownloadLineConfirmation.layout"
 
- Static Protected Attributes inherited from SCR_ConfigurableDialogUi
static SCR_ConfigurableDialogUi m_CurrentDialog
 

Additional Inherited Members

- Static Public Member Functions inherited from SCR_AddonListDialog
static SCR_AddonListDialog CreateItemsList (array< ref SCR_WorkshopItem > items, string preset, ResourceName dialogsConfig=string.Empty)
 
static SCR_AddonListDialog CreateRestrictedAddonsDownload (array< ref SCR_WorkshopItem > items)
 Dialog when downloading restricted addons.
 
static SCR_AddonListDialog CreateRestrictedAddonsJoinServer (array< ref SCR_WorkshopItem > items)
 Dialog when trying to connect to a server with restricted addons.
 
static SCR_AddonListDialog DisplayRestrictedAddonsList (array< ref SCR_WorkshopItem > items, string tagBlocked, string tagReported)
 Display dialogs for reported and blocked (banned) mods.
 
static SCR_AddonListDialog CreateFailedToStartWithMods (array< ref SCR_WorkshopItem > items)
 Dialog when failed to load game with selected mods.
 
- 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.
 

Detailed Description

Show list of reported mods and provide option to cancel reports.

Member Function Documentation

◆ AllButtonsCanceled()

void SCR_ReportedAddonsDialog.AllButtonsCanceled ( )
protected

◆ AuthorBlockCancelDialog()

void SCR_ReportedAddonsDialog.AuthorBlockCancelDialog ( )
protected

◆ CreateAddonEntry()

void SCR_ReportedAddonsDialog.CreateAddonEntry ( notnull SCR_WorkshopItem  item)
protected

Create addon entry with message based on type.

◆ CreateAuthorEntry()

void SCR_ReportedAddonsDialog.CreateAuthorEntry ( notnull WorkshopAuthor  author)
protected

Create entry with reported author.

◆ CreateEntry()

SCR_ModularButtonComponent SCR_ReportedAddonsDialog.CreateEntry ( string  name,
string  message 
)
protected

Create entry with specific reported author.

◆ DisplayReportCancelSuccess()

void SCR_ReportedAddonsDialog.DisplayReportCancelSuccess ( notnull SCR_ModularButtonComponent  button)
protected

◆ FocusTopLine()

void SCR_ReportedAddonsDialog.FocusTopLine ( )
protected

◆ GetOnAllReportsCanceled()

ScriptInvoker SCR_ReportedAddonsDialog.GetOnAllReportsCanceled ( )

◆ InvokeOnAllReportsCanceled()

void SCR_ReportedAddonsDialog.InvokeOnAllReportsCanceled ( )
protected

◆ OnAddonEntrySelected()

void SCR_ReportedAddonsDialog.OnAddonEntrySelected ( SCR_ModularButtonComponent  button)
protected

◆ OnAddonLineFocus()

void SCR_ReportedAddonsDialog.OnAddonLineFocus ( SCR_ModularButtonComponent  button)
protected

Show details of addon line report when focused.

◆ OnAddonReportLoadError()

void SCR_ReportedAddonsDialog.OnAddonReportLoadError ( SCR_WorkshopItem  item)
protected

◆ OnAddonReportLoadSuccess()

void SCR_ReportedAddonsDialog.OnAddonReportLoadSuccess ( SCR_WorkshopItem  item)
protected

◆ OnAuthorEntrySelected()

void SCR_ReportedAddonsDialog.OnAuthorEntrySelected ( SCR_ModularButtonComponent  button)
protected

◆ OnAuthorReportLoadResponse()

void SCR_ReportedAddonsDialog.OnAuthorReportLoadResponse ( SCR_BackendCallback  callback)
protected

◆ OnCancelRemoveAuthorReport()

void SCR_ReportedAddonsDialog.OnCancelRemoveAuthorReport ( SCR_ConfigurableDialogUi  dialog)
protected

◆ OnCancelReport()

void SCR_ReportedAddonsDialog.OnCancelReport ( )
protected

◆ OnCancelReportActived()

void SCR_ReportedAddonsDialog.OnCancelReportActived ( )
protected

Start to canceling report of currently focused mod.

◆ OnCancelReportConfirm()

void SCR_ReportedAddonsDialog.OnCancelReportConfirm ( SCR_ConfigurableDialogUi  dialog)
protected

◆ OnCancelReportDialog()

void SCR_ReportedAddonsDialog.OnCancelReportDialog ( SCR_ConfigurableDialogUi  dialog)
protected

◆ OnCancelReportFail()

void SCR_ReportedAddonsDialog.OnCancelReportFail ( SCR_WorkshopItemActionCancelReport  action)
protected

◆ OnCancelReportSuccess()

void SCR_ReportedAddonsDialog.OnCancelReportSuccess ( SCR_WorkshopItemActionCancelReport  action)
protected

◆ OnConfirm()

override void SCR_ReportedAddonsDialog.OnConfirm ( )
protected

◆ OnConfirmRemoveAuthorBlock()

void SCR_ReportedAddonsDialog.OnConfirmRemoveAuthorBlock ( SCR_ConfigurableDialogUi  dialog)
protected

◆ OnMenuOpen()

override void SCR_ReportedAddonsDialog.OnMenuOpen ( SCR_ConfigurableDialogUiPreset  preset)

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

Here you can perform custom initialization.

Implements SCR_AddonListDialog.

◆ OnRemoveAuthorBlockResponse()

void SCR_ReportedAddonsDialog.OnRemoveAuthorBlockResponse ( SCR_BackendCallback  callback)
protected

◆ OnReportDialogClose()

void SCR_ReportedAddonsDialog.OnReportDialogClose ( SCR_ConfigurableDialogUi  dialog)
protected

Call this on closing any report dialog to set repot list focus.

◆ OpenAuthorModsDialog()

void SCR_ReportedAddonsDialog.OpenAuthorModsDialog ( WorkshopAuthor  author)
protected

◆ SetupReports()

void SCR_ReportedAddonsDialog.SetupReports ( )
protected

Check report state and setup entries data Search for reported author.

Member Data Documentation

◆ AUTHOR_MOD_LIMIT

const int SCR_ReportedAddonsDialog.AUTHOR_MOD_LIMIT = 20
staticprotected

◆ AUTHOR_REPORT_TAG

const string SCR_ReportedAddonsDialog.AUTHOR_REPORT_TAG = "report_author"
staticprotected

◆ AUTHOR_UNBLOCK_TAG

const string SCR_ReportedAddonsDialog.AUTHOR_UNBLOCK_TAG = "unblock_author_simple"
staticprotected

◆ BUTTON_CANCEL_REPORT

const string SCR_ReportedAddonsDialog.BUTTON_CANCEL_REPORT = "cancelReport"
staticprotected

◆ DIALOGS_CONFIG

const ResourceName SCR_ReportedAddonsDialog.DIALOGS_CONFIG = "{ADEA32EB841E8629}Configs/ContentBrowser/ContentBrowserReportDialogs.conf"
staticprotected

◆ Event_OnAllReportsCanceled

ref ScriptInvoker<SCR_ReportedAddonsDialog> SCR_ReportedAddonsDialog.Event_OnAllReportsCanceled
protected

◆ LINE_LAYOUT

const ResourceName SCR_ReportedAddonsDialog.LINE_LAYOUT = "{6D73127FB096229D}UI/layouts/Menus/ContentBrowser/DownloadManager/ReportedAddonEntry.layout"
staticprotected

◆ m_bBlocked

bool SCR_ReportedAddonsDialog.m_bBlocked
protected

◆ m_DialogCancelReport

ref SCR_CancelMyReportDialog SCR_ReportedAddonsDialog.m_DialogCancelReport
protected

◆ m_LineFocused

SCR_ModularButtonComponent SCR_ReportedAddonsDialog.m_LineFocused
protected

◆ m_LoadingAuthor

WorkshopAuthor SCR_ReportedAddonsDialog.m_LoadingAuthor
protected

◆ m_LoadingOvelay

SCR_LoadingOverlayDialog SCR_ReportedAddonsDialog.m_LoadingOvelay
protected

◆ m_mButtonsAuthors

ref map<SCR_ModularButtonComponent, WorkshopAuthor> SCR_ReportedAddonsDialog.m_mButtonsAuthors
protected

◆ m_mButtonsItems

ref map<SCR_ModularButtonComponent, SCR_WorkshopItem> SCR_ReportedAddonsDialog.m_mButtonsItems
protected

◆ m_NavCancelReport

SCR_InputButtonComponent SCR_ReportedAddonsDialog.m_NavCancelReport
protected

◆ m_ReportCallback

ref SCR_BackendCallback SCR_ReportedAddonsDialog.m_ReportCallback = new SCR_BackendCallback()
protected

◆ m_wList

Widget SCR_ReportedAddonsDialog.m_wList
protected

◆ m_wTxtMessage

TextWidget SCR_ReportedAddonsDialog.m_wTxtMessage
protected

◆ m_wTxtType

TextWidget SCR_ReportedAddonsDialog.m_wTxtType
protected

◆ MSG_AUTHOR

const string SCR_ReportedAddonsDialog.MSG_AUTHOR = "#AR-Workshop_FilterCategory_Author"
staticprotected

◆ STR_FIXED_REPORT

const string SCR_ReportedAddonsDialog.STR_FIXED_REPORT = "#AR-Workshop_Dialog_Success"
staticprotected

◆ WIDGET_DETAIL

const string SCR_ReportedAddonsDialog.WIDGET_DETAIL = "TxtDetailType"
staticprotected

◆ WIDGET_MESSAGE

const string SCR_ReportedAddonsDialog.WIDGET_MESSAGE = "TxtDetailMessage"
staticprotected

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