Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

32 lines
1005 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ActorMode.h"
#define UE_API SCENEOUTLINER_API
class FActorPickingMode : public FActorMode
{
public:
UE_API FActorPickingMode(const FActorModeParams& Params, FOnSceneOutlinerItemPicked OnItemPickedDelegate);
virtual ~FActorPickingMode() {};
public:
UE_API virtual void OnItemSelectionChanged(FSceneOutlinerTreeItemPtr Item, ESelectInfo::Type SelectionType, const FSceneOutlinerItemSelection& Selection) override;
/** Allow the user to commit their selection by pressing enter if it is valid */
UE_API virtual void OnFilterTextCommited(FSceneOutlinerItemSelection& Selection, ETextCommit::Type CommitType) override;
UE_API virtual void CreateViewContent(FMenuBuilder& MenuBuilder) override;
// Don't synchronize world selection
virtual void SynchronizeSelection() override {};
public:
virtual bool ShowViewButton() const override { return true; }
private:
FOnSceneOutlinerItemPicked OnItemPicked;
};
#undef UE_API