Create parent InteractiveWidget for UserWidgets

This commit is contained in:
baz 2024-04-03 22:49:27 +01:00
parent a86c56fccb
commit 4c795a3a27
5 changed files with 28 additions and 3 deletions

View File

@ -6,13 +6,14 @@
#include "OptionsUIWidget.h" #include "OptionsUIWidget.h"
#include "Blueprint/UserWidget.h" #include "Blueprint/UserWidget.h"
#include "Components/Button.h" #include "Components/Button.h"
#include "UI/NakatomiInteractiveWidget.h"
#include "MainMenuUIWidget.generated.h" #include "MainMenuUIWidget.generated.h"
/** /**
* *
*/ */
UCLASS() UCLASS()
class NAKATOMI_API UMainMenuUIWidget : public UUserWidget class NAKATOMI_API UMainMenuUIWidget : public UNakatomiInteractiveWidget
{ {
GENERATED_BODY() GENERATED_BODY()
public: public:

View File

@ -7,13 +7,14 @@
#include "Components/CheckBox.h" #include "Components/CheckBox.h"
#include "Components/Button.h" #include "Components/Button.h"
#include "Components/TextBlock.h" #include "Components/TextBlock.h"
#include "UI/NakatomiInteractiveWidget.h"
#include "OptionsUIWidget.generated.h" #include "OptionsUIWidget.generated.h"
/** /**
* *
*/ */
UCLASS() UCLASS()
class NAKATOMI_API UOptionsUIWidget : public UUserWidget class NAKATOMI_API UOptionsUIWidget : public UNakatomiInteractiveWidget
{ {
GENERATED_BODY() GENERATED_BODY()

View File

@ -6,13 +6,14 @@
#include "OptionsUIWidget.h" #include "OptionsUIWidget.h"
#include "Blueprint/UserWidget.h" #include "Blueprint/UserWidget.h"
#include "Components/Button.h" #include "Components/Button.h"
#include "UI/NakatomiInteractiveWidget.h"
#include "PauseUIWidget.generated.h" #include "PauseUIWidget.generated.h"
/** /**
* *
*/ */
UCLASS() UCLASS()
class NAKATOMI_API UPauseUIWidget : public UUserWidget class NAKATOMI_API UPauseUIWidget : public UNakatomiInteractiveWidget
{ {
GENERATED_BODY() GENERATED_BODY()

View File

@ -0,0 +1,5 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "../UI/NakatomiInteractiveWidget.h"

View File

@ -0,0 +1,17 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "NakatomiInteractiveWidget.generated.h"
/**
*
*/
UCLASS()
class NAKATOMI_API UNakatomiInteractiveWidget : public UUserWidget
{
GENERATED_BODY()
};