5 protected ref array<ref SCR_WorkshopItem>
m_aItems = {};
8 protected const ResourceName ADDON_LINE_LAYOUT =
"{BB5AEDDA3C4134FD}UI/layouts/Menus/ContentBrowser/DownloadManager/DownloadManager_AddonDownloadLineConfirmation.layout";
15 if (!preset.IsEmpty())
35 super.OnMenuOpen(preset);
41 if (dialogsConfig ==
string.Empty)
46 return addonListDialog;
70 if (!banned.IsEmpty())
117 if (item.GetOffline())
118 item.SetEnabled(
false);
155 if (
m_Item.GetSubscribed())
156 m_Item.SetSubscribed(
false);
162 if (item.GetEnabled())
163 item.SetEnabled(
false);
ArmaReforgerScripted GetGame()
SCR_AddonListDialog m_Dependency
Dialog which is used when an addon is disabled but some dependent addons depend on it.
void SCR_DisableDependentAddonsDialog(array< ref SCR_WorkshopItem > items, string preset, SCR_WorkshopItem dependency)
UI layouts Menus CleanSweep CleanSweepAreaSelection layout
Shows a list of addons and some text.
array< SCR_DownloadManager_AddonDownloadLine > GetDonwloadLines()
static SCR_AddonListDialog CreateRestrictedAddonsJoinServer(array< ref SCR_WorkshopItem > items)
Dialog when trying to connect to a server with restricted addons.
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.
ref array< ref SCR_WorkshopItem > m_aItems
void SCR_AddonListDialog(array< ref SCR_WorkshopItem > items, string preset)
ref array< SCR_DownloadManager_AddonDownloadLine > m_aDownloadLines
static SCR_AddonListDialog CreateFailedToStartWithMods(array< ref SCR_WorkshopItem > items)
Dialog when failed to load game with selected mods.
static SCR_AddonListDialog DisplayRestrictedAddonsList(array< ref SCR_WorkshopItem > items, string tagBlocked, string tagReported)
Display dialogs for reported and blocked (banned) mods.
const ResourceName ADDON_LINE_LAYOUT
override void OnMenuOpen(SCR_ConfigurableDialogUiPreset preset)
static array< ref SCR_WorkshopItem > SelectItemsOr(array< ref SCR_WorkshopItem > items, EWorkshopItemQuery query)
static SCR_ConfigurableDialogUi CreateFromPreset(ResourceName presetsResourceName, string tag, SCR_ConfigurableDialogUi customDialogObj=null)
Creates a dialog from preset.
Widget GetContentLayoutRoot()
Returns the root of the content layout.
Configuration for a dialog.
ref SCR_WorkshopItem m_Item
void SCR_DeleteAddonDependentAddonsDetected(array< ref SCR_WorkshopItem > items, string preset, SCR_WorkshopItem item)
static SCR_DeleteAddonDependentAddonsDetected Create(array< ref SCR_WorkshopItem > items, SCR_WorkshopItem item)
override void OnConfirm()
Delete the provided addon on confirmation. Disable dependent addons if they are enabled.
void InitForWorkshopItem(SCR_WorkshopItem item, Revision versionTo=null, bool showVersionAndSize=true)
Initializes the line in passive mode. It will just show basic information once.
Show list of reported mods and provide option to cancel reports.