7 [
Attribute(
desc:
"Sets the header of the content browser. Leaving this empty keeps the default header.", UIWidgets.LocaleEditBox)]
10 [
Attribute(
desc:
"List of Label groups that can be shown in the Content browser. If not empty then only these groups can be shown, If empty all groups can be shown.")]
11 protected ref array<ref SCR_EditorContentBrowserDisplayGroupLabel> m_aWhiteListLabelGroups;
13 [
Attribute(
desc:
"List of labels that are active when the content browser is opened and can never be removed (These labels will never be shown and cannot be disabled).")]
14 protected ref array<ref SCR_EditorContentBrowserActiveDisplayLabel> m_aAlwaysActiveLabels;
16 [
Attribute(
desc:
"List of Labels that can be shown in the Content browser. If not empty then only these lables can be shown, If empty all labels can be shown. (Unless always active label hides it)")]
17 protected ref array<ref SCR_EditorContentBrowserDisplayLabel> m_aWhiteListLabels;
19 [
Attribute(
desc:
"Should the browser opened with this config save it's state", defvalue:
"1")]
20 protected bool m_bSaveContentBrowserState;
28 return m_sContentBrowserHeader;
39 if (!m_aWhiteListLabelGroups.IsEmpty())
41 bool groupLabelFound =
false;
46 if (whiteGroupLabel.GetGroupLabel() == groupLabel)
49 if (whiteGroupLabel.GetEnabled())
50 groupLabelFound =
true;
72 if (!m_aWhiteListLabels.IsEmpty())
74 bool labelFound =
false;
79 if (whiteLabel.GetLabel() == label)
82 if (whiteLabel.IsEnabled())
94 if (!m_aAlwaysActiveLabels.IsEmpty())
98 if (alwaysActiveLabel.GetLabel() == label)
100 if (alwaysActiveLabel.IsEnabled() && !alwaysActiveLabel.m_bShowLabel)
115 void GetAlwaysActiveLabels(out notnull array<EEditableEntityLabel> alwaysActiveLabels)
118 alwaysActiveLabels.Insert(label.GetLabel());
125 void GetWhiteListeLabels(out notnull array<EEditableEntityLabel> whitelistLabels)
128 whitelistLabels.Insert(label.GetLabel());
135 void GetWhiteListeLabelGroups(out notnull array<EEditableEntityLabelGroup> whitelistLabelGroups)
138 whitelistLabelGroups.Insert(label.GetGroupLabel());
149 if (m_aAlwaysActiveLabels.IsEmpty())
155 if (alwaysActiveLabel.GetLabel() == label)
158 if (alwaysActiveLabel.IsEnabled())
181 if (alwaysActiveLabel.GetLabel() != label)
184 if (!alwaysActiveLabel.IsEnabled())
188 if (!alwaysActiveLabelClass)
191 return alwaysActiveLabelClass.m_bShowLabel;
201 bool GetSaveContentBrowserState()
203 return m_bSaveContentBrowserState;
214 void SCR_EditorContentBrowserDisplayConfig(array<EEditableEntityLabelGroup> whiteListGroupLabels =
null, array<EEditableEntityLabel> whiteListLabels =
null, array<EEditableEntityLabel> alwaysActiveLabels =
null,
bool saveContentBrowserState =
false,
LocalizedString browserHeader =
string.Empty)
217 if (browserHeader.IsEmpty())
220 m_sContentBrowserHeader = browserHeader;
222 m_aWhiteListLabelGroups = {};
224 if (whiteListGroupLabels)
232 m_aWhiteListLabels = {};
242 m_aAlwaysActiveLabels = {};
244 if (alwaysActiveLabels)
253 m_bSaveContentBrowserState = saveContentBrowserState;
263 [
Attribute(
"1",
desc:
"If false then this label group will be ignored in the list")]
264 protected bool m_bEnabled;
272 return m_iGroupLabel;
289 m_iGroupLabel = groupLabel;
300 [
Attribute(
"1",
desc:
"If false then this label will be ignored in the list")]
301 protected bool m_bEnabled;
334 [
Attribute(
"0",
desc:
"If false then this label will hidden in filters and will always be forced to be active (if enabled)")]