12 static const float SMALL_DOWNLOAD_THRESHOLD = 50 * 1024 * 1024;
17 static ContentBrowserUI Create()
20 ContentBrowserUI browser = ContentBrowserUI.Cast(menuBase);
26 static void _print(
string str, LogLevel logLevel = LogLevel.DEBUG)
28 Print(
string.Format(
"[Content Browser] %1", str), logLevel);
38 m_NavBack = m_DynamicFooter.FindButton(
"Back");
51 if (ServerHostingUI.GetTemporaryConfig())
62 super.OnMenuUpdate(tDelta);
83 array<ref SCR_WorkshopItem> allAddons = mgr.GetAllAddons();
86 bool anyIssue =
false;
90 bool dependenciesMissing = item.GetAnyDependencyMissing();
91 bool dependenciesOutdated = item.GetAnyDependencyUpdateAvailable();
92 bool dependenciesDisabled = item.GetEnabledAndAnyDependencyDisabled();
93 bool updateAvailable = item.GetUpdateAvailable();
95 if (dependenciesMissing || dependenciesOutdated || dependenciesDisabled || updateAvailable)
102 m_SuperMenuComponent.GetTabView().ShowIcon(
EWorkshopTabId.OFFLINE, anyIssue);
106 protected static string GetWorkshopStatus()
114 return wsStatus.Status();
119 protected static ServiceStatusItem FindStatusItemByName(
string name)
121 BackendApi backend =
GetGame().GetBackendApi();
122 int statusesCount = backend.GetStatusCount();
124 for (
int i = 0; i < statusesCount; i++)
126 if (backend.GetStatusItem(i).Name() == name)
127 return backend.GetStatusItem(i);
137 return m_SuperMenuComponent.GetOpenedSubMenu();
143 m_SuperMenuComponent.GetTabView().ShowTab(
EWorkshopTabId.MOD_MANAGER);