You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
960 B
37 lines
960 B
// 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<SWidget> RebuildWidget() override;
|
|
|
|
TSharedPtr<class SLogWidget> MyLogWidget;
|
|
TSharedPtr<class SLogWidgetSwitcher> MyLogWidgetSwitcher;
|
|
void OnViewportResized(FViewport* Viewport, uint32 ID);
|
|
bool IsVertical = false;
|
|
};
|
|
|