Class FZagalaSpecScenarioDetailsCustomization#
Inheritance Relationships#
Base Type#
public IDetailCustomization
Class Documentation#
-
class FZagalaSpecScenarioDetailsCustomization : public IDetailCustomization#
Customizes the details view of a scenario:
the context extensions and expectations arrays are shown as lists where elements can only be added, removed or reordered (see ZagalaSpecDetailsArrayHelpers::AddAddRemoveArray);
a “Check” section has a “Check” checkbox that runs the scenario once, and the result of the last check. The checks are run by the scenario checkers of the open feature editor (FZagalaSpecScenarioCheckerRegistry). The array names come from IZagalaSpecScenarioPropertyNames.
IDetailCustomization interface
-
virtual void CustomizeDetails(IDetailLayoutBuilder &DetailBuilder) override#
Public Functions
- Parameters:
InScenarioCheckers – The checkers of the open feature editor; without them the check section is not shown.
Public Static Functions
Creates the customization; used as the delegate of IDetailsView::RegisterInstancedCustomPropertyLayout.
- Parameters:
ScenarioCheckers – The checkers of the open feature editor.
- Returns:
A new customization instance.
-
static FString ReadCheckResult(const FZagalaSpecScenarioCheckerRegistry *ScenarioCheckers, const UObject *Scenario)#
Reads the result text of the last check of a scenario.
Read every time the text is drawn, because the result arrives when the check finishes.
- Parameters:
ScenarioCheckers – The checkers of the open feature editor; may be null.
Scenario – The scenario.
- Returns:
The check result; empty if the scenario was never checked.
-
static bool IsChecking(const FZagalaSpecScenarioCheckerRegistry *ScenarioCheckers, const UObject *Scenario)#
Whether a check of the scenario is running.
- Parameters:
ScenarioCheckers – The checkers of the open feature editor; may be null.
Scenario – The scenario.
- Returns:
True while the scenario is checked.