ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
SArticyGlobalVariablesDebugger.h
1//
2// Copyright (c) 2023 articy Software GmbH & Co. KG. All rights reserved.
3//
4
5#pragma once
6
7#include "CoreMinimal.h"
8#include "Widgets/SCompoundWidget.h"
9#include "Widgets/DeclarativeSyntaxSupport.h"
10#include "ArticyGlobalVariables.h"
11#include "Slate/GV/SArticyGlobalVariables.h"
12#include "Misc/TextFilterExpressionEvaluator.h"
13#include "Widgets/Layout/SExpandableArea.h"
14#include "Widgets/Layout/SWidgetSwitcher.h"
15
19class SArticyGlobalVariablesRuntimeDebugger : public SCompoundWidget
20{
22 _bInitiallyCollapsed(true)
23 {}
25 SLATE_ARGUMENT(bool, bInitiallyCollapsed)
26 SLATE_END_ARGS()
27
28
33 void Construct(const FArguments& Args);
34
42 virtual void Tick(const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime) override;
43
44private:
50 void UpdateGVInstance(TWeakObjectPtr<UArticyGlobalVariables> InGVs);
51
57 void BuildGVPickerContent(FMenuBuilder& Builder);
58
64 void OnSelectGVs(TWeakObjectPtr<UArticyGlobalVariables> InVars);
65
72 bool IsGVChecked(TWeakObjectPtr<UArticyGlobalVariables> InVars) const;
73
79 FText GetCurrentGVLabel() const;
80
81private:
83 TWeakObjectPtr<UArticyGlobalVariables> CurrentGlobalVariables;
84
86 TSharedPtr<SArticyGlobalVariables> GlobalVariablesWidget;
87
89 TSharedPtr<SWidget> WorldSelector;
90
92 TSharedPtr<SWidgetSwitcher> RuntimeSwitcher;
93
95 bool bIsActive = false;
96
98 TArray<FDelegateHandle> RuntimeSwitchHandles;
99};
100
101#undef LOCTEXT_NAMESPACE
Definition SArticyGlobalVariablesDebugger.h:20