// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once class FPolishBuildingsTool; /*----------------------------------------------------------------------------- SPolishBuildingsDialog -----------------------------------------------------------------------------*/ class SPolishBuildingsDialog : public SCompoundWidget { public: SLATE_BEGIN_ARGS(SPolishBuildingsDialog) { } SLATE_END_ARGS() public: /** **/ SPolishBuildingsDialog(); /** SWidget functions */ void Construct(const FArguments& InArgs, FPolishBuildingsTool* InTool); private: /** Called when the Merge button is clicked */ FReply OnMergeClicked(); /** */ ECheckBoxState GetGenerateLightmapUV() const; void SetGenerateLightmapUV(ECheckBoxState NewValue); /** Target lightmap channel */ bool IsLightmapChannelEnabled() const; void SetTargetLightMapChannel(TSharedPtr NewSelection, ESelectInfo::Type SelectInfo); void SetTargetLightMapResolution(TSharedPtr NewSelection, ESelectInfo::Type SelectInfo); /** */ ECheckBoxState GetExportSpecificLODEnabled() const; void SetExportSpecificLODEnabled(ECheckBoxState NewValue); bool IsExportSpecificLODEnabled() const; void SetExportSpecificLODIndex(TSharedPtr NewSelection, ESelectInfo::Type SelectInfo); /** */ ECheckBoxState GetImportVertexColors() const; void SetImportVertexColors(ECheckBoxState NewValue); /** */ ECheckBoxState GetPivotPointAtZero() const; void SetPivotPointAtZero(ECheckBoxState NewValue); ECheckBoxState GetReplaceSourceActors() const; void SetReplaceSourceActors(ECheckBoxState NewValue); ECheckBoxState GetMergePhyisicData() const; void SetMergePhyisicData(ECheckBoxState NewValue); /** Material merging */ bool IsMaterialMergingEnabled() const; ECheckBoxState GetMergeMaterials() const; void SetMergeMaterials(ECheckBoxState NewValue); ECheckBoxState GetExportNormalMap() const; void SetExportNormalMap(ECheckBoxState NewValue); ECheckBoxState GetExportMetallicMap() const; void SetExportMetallicMap(ECheckBoxState NewValue); ECheckBoxState GetExportRoughnessMap() const; void SetExportRoughnessMap(ECheckBoxState NewValue); ECheckBoxState GetExportSpecularMap() const; void SetExportSpecularMap(ECheckBoxState NewValue); void SetMergedMaterialAtlasResolution(TSharedPtr NewSelection, ESelectInfo::Type SelectInfo); private: FPolishBuildingsTool* Tool; TArray> ExportLODOptions; TArray> LightMapResolutionOptions; TArray> LightMapChannelOptions; TArray> MergedMaterialResolutionOptions; };