You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904 #ROBOMERGE-BOT: (v613-10869866) [CL 10870586 by ryan durand in Main branch]
61 lines
2.2 KiB
C++
61 lines
2.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "IDetailCustomization.h"
|
|
#include "Types/SlateEnums.h" // for ETextCommit, ESelectInfo
|
|
#include "Misc/Attribute.h"
|
|
|
|
class IDetailCategoryBuilder;
|
|
class IDetailLayoutBuilder;
|
|
class IPropertyHandle;
|
|
class IDetailPropertyRow;
|
|
class ITableRow;
|
|
class STableViewBase;
|
|
class IPropertyHandle;
|
|
|
|
class FMotionControllerDetails : public IDetailCustomization
|
|
{
|
|
public:
|
|
/** Makes a new instance of this detail layout class for a specific detail view requesting it */
|
|
static TSharedRef<IDetailCustomization> MakeInstance();
|
|
|
|
/** IDetailCustomization interface */
|
|
virtual void CustomizeDetails(IDetailLayoutBuilder& DetailLayout) override;
|
|
|
|
private:
|
|
void RefreshXRSourceList();
|
|
void SetSourcePropertyValue(const FName NewSystemName);
|
|
void UpdateSourceSelection(TSharedPtr<FName> NewSelection);
|
|
|
|
void CustomizeModelSourceRow(TSharedRef<IPropertyHandle>& Property, IDetailPropertyRow& PropertyRow);
|
|
void OnResetSourceValue(TSharedPtr<IPropertyHandle> PropertyHandle);
|
|
bool IsSourceValueModified(TSharedPtr<IPropertyHandle> PropertyHandle);
|
|
FText OnGetSelectedSourceText() const;
|
|
void OnSourceMenuOpened();
|
|
void OnSourceNameCommited(const FText& NewText, ETextCommit::Type InTextCommit);
|
|
TSharedRef<ITableRow> MakeSourceSelectionWidget(TSharedPtr<FName> Item, const TSharedRef<STableViewBase>& OwnerTable);
|
|
void OnSourceSelectionChanged(TSharedPtr<FName> NewSelection, ESelectInfo::Type SelectInfo);
|
|
|
|
void CustomizeCustomMeshRow(IDetailPropertyRow& PropertyRow);
|
|
bool IsCustomMeshPropertyEnabled() const;
|
|
|
|
TArray< TWeakObjectPtr<UObject> > SelectedObjects;
|
|
TSharedPtr<IPropertyHandle> XRSourceProperty;
|
|
TArray< TSharedPtr<FName> > XRSourceNames;
|
|
TAttribute<bool> UseCustomMeshAttr;
|
|
TSharedPtr<IPropertyHandle> DisplayModelProperty;
|
|
TSharedPtr<IPropertyHandle> DisplayMaterialsProperty;
|
|
|
|
static TMap< FName, TSharedPtr<FName> > CustomSourceNames;
|
|
|
|
TSharedPtr<IPropertyHandle> MotionSourceProperty;
|
|
|
|
// Delegate handler for when UI changes motion source
|
|
void OnMotionSourceChanged(FName NewMotionSource);
|
|
|
|
// Return text for motion source combo box
|
|
FText GetMotionSourceValueText() const;
|
|
};
|