2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2015-02-23 10:30:16 -05:00
|
|
|
#include "SGraphNodeAI.h"
|
2015-01-14 04:57:32 -05:00
|
|
|
|
2015-02-23 10:30:16 -05:00
|
|
|
class SGraphNode_EnvironmentQuery : public SGraphNodeAI
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
SLATE_BEGIN_ARGS(SGraphNode_EnvironmentQuery){}
|
|
|
|
|
SLATE_END_ARGS()
|
|
|
|
|
|
|
|
|
|
void Construct(const FArguments& InArgs, UEnvironmentQueryGraphNode* InNode);
|
|
|
|
|
|
|
|
|
|
// SGraphNode interface
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual void UpdateGraphNode() override;
|
|
|
|
|
virtual void CreatePinWidgets() override;
|
2014-03-14 14:13:41 -04:00
|
|
|
// End of SGraphNode interface
|
|
|
|
|
|
|
|
|
|
/** adds decorator widget inside current node */
|
2015-02-23 10:30:16 -05:00
|
|
|
virtual void AddSubNode(TSharedPtr<SGraphNode> SubNodeWidget) override;
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
EVisibility GetWeightMarkerVisibility() const;
|
|
|
|
|
TOptional<float> GetWeightProgressBarPercent() const;
|
|
|
|
|
FSlateColor GetWeightProgressBarColor() const;
|
|
|
|
|
|
|
|
|
|
EVisibility GetTestToggleVisibility() const;
|
2014-12-10 14:24:09 -05:00
|
|
|
ECheckBoxState IsTestToggleChecked() const;
|
|
|
|
|
void OnTestToggleChanged(ECheckBoxState NewState);
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
TSharedPtr<SVerticalBox> TestBox;
|
|
|
|
|
|
|
|
|
|
FSlateColor GetBorderBackgroundColor() const;
|
|
|
|
|
FSlateColor GetBackgroundColor() const;
|
|
|
|
|
};
|