// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Components/Widget.h" #include "SLogWidget.h" #include "SLogWidgetSwitcher.h" #include "BLoggerStyleSet.h" #include "LogWidget.generated.h" /** * ULogWidget * Class to expose the SLogWidget to blueprints */ UCLASS() class BLOGGER_API ULogWidget : public UWidget { GENERATED_BODY() public: ULogWidget(const FObjectInitializer& ObjectInitializer); virtual void ReleaseSlateResources(bool bReleaseChildren) override; virtual void SynchronizeProperties() override; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "BLogger") UBLoggerStyles *GlobalBLoggerStyle; protected: virtual TSharedRef RebuildWidget() override; TSharedPtr MyLogWidget; TSharedPtr MyLogWidgetSwitcher; void OnViewportResized(FViewport* Viewport, uint32 ID); bool IsVertical = false; };