4 protected const string MSG_SELECT =
"#AR-Workshop_SelectMsg";
13 [
Attribute(
"{ADEA32EB841E8629}Configs/ContentBrowser/ContentBrowserReportDialogs.conf",
UIWidgets.ResourceNamePicker,
"Layout of the navigation button",
params:
"layout")]
31 protected ref array<ref SCR_ConfigurableDialogUi>
m_aDialogs = {};
51 m_Author = item.GetWorkshopItem().Author();
54 string author =
m_Item.GetAuthorName();
71 m_Author = item.GetWorkshopItem().Author();
122 if (!isAuthorBlocked)
125 msg +=
"#AR-Workshop_ReportModReverse";
126 dlg.
GetMessageWidget().SetTextFormat(msg,
"#AR-Workshop_Filter_Reported",
"#AR-Workshop_CancelReport");
149 string author =
m_Item.GetAuthorName();
154 string msg =
"#AR-Workshop_ReportAuthorMsg";
159 msg +=
"\n\n#AR-Workshop_AffectedMods";
178 string author =
m_Item.GetAuthorName();
190 array<WorkshopItem> toReport = {};
216 array<SCR_DownloadManager_AddonDownloadLine> lines = dialog.
GetDonwloadLines();
221 item = line.GetItem();
277 item.DeleteLocally();
278 item.SetSubscribed(
false);
ArmaReforgerScripted GetGame()
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
Shows a list of addons and some text.
array< SCR_DownloadManager_AddonDownloadLine > GetDonwloadLines()
static SCR_AddonListDialog CreateItemsList(array< ref SCR_WorkshopItem > items, string preset, ResourceName dialogsConfig=string.Empty)
SCR_WorkshopItem Register(WorkshopItem item)
Returns a SCR_WorkshopItem. If it's not registered, creates a new one and registers it.
static SCR_AddonManager GetInstance()
static SCR_ConfigurableDialogUi CreateFromPreset(ResourceName presetsResourceName, string tag, SCR_ConfigurableDialogUi customDialogObj=null)
Creates a dialog from preset.
TextWidget GetMessageWidget()
ref ScriptInvoker m_OnClose
SCR_WorkshopItemActionDownload GetActionOfItem(SCR_WorkshopItem item)
Return item action for given workshop item.
static SCR_DownloadManager GetInstance()
static SCR_LoadingOverlayDialog Create(string text=string.Empty)
ref SCR_WorkshopItemActionRemoveAuthorBlock m_ActionRemoveAuthorBlock
void OnAuthorReportSuccess()
void OpenReportThis()
Dialog for selecting type, typing message and confirming this mod report.
void OnSelectReportConfirm(SCR_ConfigurableDialogUi dialog)
const string MSG_REPORT_SUCCESS
void OnConfirmReportAuthorModList()
void OpenRemoveAuthorBlockModList()
Dialog displaying all author mmods and explaing what will happen after report confirm.
void OnCancelAuthorReport()
SCR_LoadingOverlayDialog m_LoadingOverlayDlg
void OnCancelReportAuthorModList()
const string TAG_AUTHOR_UNBLOCK
ref SCR_ConfigurableDialogUi m_CurrentDialog
void OpenSelectReportAuthor(notnull SCR_WorkshopItem item)
ref SCR_WorkshopItemActionAddAuthorBlock m_ActionAddAuthorBlock
ref ScriptInvokerVoid m_OnItemReportSuccessDialogClose
void OnRemoveAuthorBlockSuccess()
ReportDialogUI m_ReportDialog
void OnAuthorReportFail()
string m_sTagReportAuthor
void OpenAuthorModsDialog(bool showReported=true)
const string MSG_UNBLOCK_AUTHOR_CONFIRM
ref SCR_ContentBrowser_GetAssetListParams m_Params
void OpenReportAuthorModList()
Dialog displaying all author mmods and explaing what will happen after report confirm.
void OnCancelThisReport()
string m_sTagSelectReport
ref array< ref SCR_ConfigurableDialogUi > m_aDialogs
ref array< ref SCR_WorkshopItem > m_aAuthorModsList
void OnItemReportSuccessDialogClose()
const string LINE_DOWNLOADED
ResourceName m_sDialogsConfig
ScriptInvokerVoid GetOnItemReportSuccessDialogClose()
void OpenSelectReport(notnull SCR_WorkshopItem item)
const int AUTHOR_MOD_LIMIT
void OnSelectReportAuthor()
void OnItemReportedSuccessfully(bool isAuthorBlocked)
void OnConfirmRemoveAuthorBlock()
void OnCancelRemoveAuthorReport()
ref SCR_WorkshopItem m_Item
Action for blocking author.
Action for removing author mod content blocking.
bool GetOffline()
True when we have the item on our local storage.
SCR_FieldOfViewSettings Attribute