33 _bInitiallyCollapsed(
true),
38 SLATE_ARGUMENT(
bool, bInitiallyCollapsed)
51 void Construct(
const FArguments& Args, TWeakObjectPtr<UArticyBaseVariableSet> VariableSet);
58 void SetExpanded(
bool bInExpanded)
const;
65 bool IsExpanded()
const;
73 void UpdateVisibility(
const UArticyVariable* Variable, EVisibility InVisibility);
80 TArray<UArticyVariable*> GetVariables();
84 void BuildVariableWidgets();
88 bool bVariableWidgetsBuilt =
false;
91 bool bSliderMoving =
false;
94 TWeakObjectPtr<UArticyBaseVariableSet> VariableSet;
97 TMap<UArticyVariable*, TWeakPtr<SWidget>> VariableWidgetMapping;
100 TSharedPtr<SVerticalBox> VariableContainer;
103 TSharedPtr<SExpandableArea> NamespaceExpansion;
116 template<
typename T,
typename T2>
117 void OnValueChanged(T Value, T2* Var);
140 _bInitiallyCollapsed(
true)
143 SLATE_ARGUMENT(
bool, bInitiallyCollapsed)
152 void Construct(
const FArguments& Args, TWeakObjectPtr<UArticyGlobalVariables> GV);
159 void UpdateDisplayedGlobalVariables(TWeakObjectPtr<UArticyGlobalVariables> InGV);
163 TWeakObjectPtr<UArticyGlobalVariables> GlobalVariables;
170 float ColumnWidth = 0.65f;
173 bool bInitiallyCollapsed =
true;
177 float OnGetLeftColumnWidth()
const {
return 1.0f - ColumnWidth; }
180 float OnGetRightColumnWidth()
const {
return ColumnWidth; }
183 void OnSetColumnWidth(
float InWidth) { ColumnWidth = InWidth; }
187 void OnSearchBoxChanged(
const FText& InSearchText);
190 void OnSearchBoxCommitted(
const FText& InSearchText, ETextCommit::Type CommitInfo);
193 void SetSearchBoxText(
const FText& InSearchText);
196 void OnFrontendFiltersChanged();
202 void CacheExpansionStates();
205 void RestoreExpansionStates();
209 TSharedPtr<SVerticalBox> SetContainer;
212 TArray<TSharedPtr<SArticyVariableSet>> VariableSetWidgets;
215 bool bShouldForceExpand =
false;
218 TMap<TSharedPtr<SArticyVariableSet>,
bool> ExpansionCache;
221 TSharedPtr<FFrontendFilter_ArticyVariable> VariableFilter;
224 TSharedPtr<FArticyVariableFilterCollectionType> FrontendFilters;