Arma Reforger Script API
|
Show list of reported mods and provide option to cancel reports. More...
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_AddonDownloadLine > | GetDonwloadLines () |
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 () |
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. | |
Show list of reported mods and provide option to cancel reports.
|
protected |
|
protected |
|
protected |
Create addon entry with message based on type.
|
protected |
Create entry with reported author.
|
protected |
Create entry with specific reported author.
|
protected |
|
protected |
ScriptInvoker SCR_ReportedAddonsDialog.GetOnAllReportsCanceled | ( | ) |
|
protected |
|
protected |
|
protected |
Show details of addon line report when focused.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Start to canceling report of currently focused mod.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Implements SCR_ConfigurableDialogUi.
|
protected |
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.
|
protected |
|
protected |
Call this on closing any report dialog to set repot list focus.
|
protected |
|
protected |
Check report state and setup entries data Search for reported author.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |