5 protected string m_sOpenContentBrowserButtonName;
11 protected void OpenAssetBrowserButton(Widget widget,
float value, EActionTrigger actionTrigger)
13 PlayerController playerController =
GetGame().GetPlayerController();
14 if (!playerController)
17 ChimeraCharacter
char = ChimeraCharacter.Cast(playerController.GetControlledEntity());
21 FactionAffiliationComponent factionComp = FactionAffiliationComponent.Cast(
char.FindComponent(FactionAffiliationComponent));
30 bool saveBrowserState;
31 array<EEditableEntityLabel> alwaysActiveLabels = {}, whitelistLabels = {};
32 m_ContentBrowserDisplayConfig.GetAlwaysActiveLabels(alwaysActiveLabels);
33 m_ContentBrowserDisplayConfig.GetWhiteListeLabels(whitelistLabels);
34 array<EEditableEntityLabelGroup> whitelistLabelGroups = {};
35 m_ContentBrowserDisplayConfig.GetWhiteListeLabelGroups(whitelistLabelGroups);
37 LocalizedString browserHeader = m_ContentBrowserDisplayConfig.GetHeader();
38 saveBrowserState = m_ContentBrowserDisplayConfig.GetSaveContentBrowserState();
42 alwaysActiveLabels.Insert(factionLabel);
47 if (contentBrowserManager)
48 contentBrowserManager.OpenBrowserLabelConfigInstance(displayConfig);
52 override void HandlerAttached(Widget w)
54 Widget buttonWidget = w.FindAnyWidget(m_sOpenContentBrowserButtonName);