You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#preflight 6272a74d2f6d177be3c6fdda #rb Matt.Kuhlenschmidt #ROBOMERGE-OWNER: Lauren.Barnes #ROBOMERGE-AUTHOR: lauren.barnes #ROBOMERGE-SOURCE: CL 20057269 via CL 20070159 via CL 20072035 via CL 20072203 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690) #ROBOMERGE-CONFLICT from-shelf [CL 20105363 by Lauren Barnes in ue5-main branch]
55 lines
1.4 KiB
C++
55 lines
1.4 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Layout/Visibility.h"
|
|
#include "Widgets/DeclarativeSyntaxSupport.h"
|
|
#include "Widgets/SCompoundWidget.h"
|
|
#include "Framework/Text/SlateHyperlinkRun.h"
|
|
#include "EditorUndoClient.h"
|
|
#include "Widgets/Views/SListView.h"
|
|
#include "IDetailPropertyRow.h"
|
|
#include "EditorSubsystem.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "Framework/Commands/Commands.h"
|
|
#include "LightEditorSubsystem.generated.h"
|
|
|
|
struct FToolMenuContext;
|
|
/**
|
|
* Light manipulation actions
|
|
*/
|
|
class FLightEditingCommands : public TCommands<FLightEditingCommands>
|
|
{
|
|
|
|
public:
|
|
FLightEditingCommands() : TCommands<FLightEditingCommands>
|
|
(
|
|
"LightActor", // Context name for fast lookup
|
|
NSLOCTEXT("Contexts", "LightActor", "Light Actor"), // Localized context name for displaying
|
|
NAME_None, FAppStyle::GetAppStyleSetName()
|
|
)
|
|
{
|
|
}
|
|
|
|
TSharedPtr< FUICommandInfo > SwapLightType;
|
|
|
|
virtual void RegisterCommands() override;
|
|
};
|
|
|
|
UCLASS()
|
|
class ULightEditorSubsystem : public UEditorSubsystem
|
|
{
|
|
GENERATED_BODY()
|
|
public:
|
|
ULightEditorSubsystem() {};
|
|
virtual void Initialize(FSubsystemCollectionBase& Collection) override;
|
|
|
|
virtual void Deinitialize() override;
|
|
void ExtendQuickActionMenu();
|
|
void SwapLightType(const FToolMenuContext& InContext, UClass* InClass) const;
|
|
// The list of commands with bound delegates for the level editor.
|
|
TSharedPtr<FUICommandList> LightEditingCommands;
|
|
};
|
|
|