You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Adding Texture LOD settings to Device Profiles - this will improve how we currently edit and override lod settings on a per device type bases. - LOD Settings can now be set in the Device Profile Editor - Any device profiles with no values set for LOD Settings, will use the default objects. - These can be found in BaseDeviceProfiles.ini in the /Script/Engine.TextureLODSettings section - Appropriate defaults set for those groups not listed. -Other fixes - - Incorrect with_editor check in HTML5 target platform, changed to with_engine [CL 2481510 by Terence Burns in Main branch]
47 lines
1.6 KiB
C++
47 lines
1.6 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "IPropertyTableCustomColumn.h"
|
|
|
|
|
|
/** Delegate triggered when user opts to edit TextureLODSettings **/
|
|
DECLARE_DELEGATE_OneParam(FOnEditDeviceProfileTextureLODSettingsRequestDelegate, const TWeakObjectPtr<UDeviceProfile>&);
|
|
|
|
|
|
/**
|
|
* A property table custom column used to bring the user to an editor which
|
|
* will manage the Texture LOD Settings associated with the device profile
|
|
*/
|
|
class FDeviceProfileTextureLODSettingsColumn : public IPropertyTableCustomColumn
|
|
{
|
|
public:
|
|
FDeviceProfileTextureLODSettingsColumn();
|
|
|
|
public:
|
|
|
|
// IPropertyTableCustomColumn interface
|
|
|
|
virtual bool Supports( const TSharedRef< IPropertyTableColumn >& Column, const TSharedRef< IPropertyTableUtilities >& Utilities ) const override;
|
|
virtual TSharedPtr< SWidget > CreateColumnLabel( const TSharedRef< IPropertyTableColumn >& Column, const TSharedRef< IPropertyTableUtilities >& Utilities, const FName& Style ) const override;
|
|
virtual TSharedPtr< IPropertyTableCellPresenter > CreateCellPresenter( const TSharedRef< IPropertyTableCell >& Cell, const TSharedRef< IPropertyTableUtilities >& Utilities, const FName& Style ) const override;
|
|
|
|
public:
|
|
|
|
/**
|
|
* Delegate used to notify listeners that an edit request was triggered from the property table.
|
|
*
|
|
* @return The delegate.
|
|
*/
|
|
FOnEditDeviceProfileTextureLODSettingsRequestDelegate& OnEditTextureLODSettingsRequest()
|
|
{
|
|
return OnEditTextureLODSettingsRequestDelegate;
|
|
}
|
|
|
|
private:
|
|
|
|
/** Delegate triggered when user opts to edit TextureLODSettings. **/
|
|
FOnEditDeviceProfileTextureLODSettingsRequestDelegate OnEditTextureLODSettingsRequestDelegate;
|
|
};
|
|
|