38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
/******************************************************************************
|
|
* Copyright (C) Ultraleap, Inc. 2011-2021. *
|
|
* *
|
|
* Use subject to the terms of the Apache License 2.0 available at *
|
|
* http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
|
|
* between Ultraleap and you, your company or other organization. *
|
|
******************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "IDetailCustomization.h"
|
|
#include "Input/Reply.h"
|
|
/**
|
|
*
|
|
*/
|
|
class FUltraleapAnimCustomDetailsPanel : public IDetailCustomization
|
|
{
|
|
public:
|
|
FUltraleapAnimCustomDetailsPanel();
|
|
~FUltraleapAnimCustomDetailsPanel();
|
|
|
|
private:
|
|
/* Contains references to all selected objects inside in the viewport */
|
|
TArray<TWeakObjectPtr<UObject>> SelectedObjects;
|
|
bool HasValidAnimInstance();
|
|
|
|
public:
|
|
/* Makes a new instance of this detail layout class for a specific detail view requesting it */
|
|
static TSharedRef<IDetailCustomization> MakeInstance();
|
|
|
|
/* IDetalCustomization interface */
|
|
virtual void CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) override;
|
|
|
|
/* The code that fires when we click the "ChangeColor" button */
|
|
FReply ClickedOnButton();
|
|
};
|