Nakatomi/Source/Nakatomi/PauseUIWidget.h

115 lines
2.8 KiB
C
Raw Normal View History

2023-10-01 23:51:53 +01:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "OptionsUIWidget.h"
2023-10-01 23:51:53 +01:00
#include "Blueprint/UserWidget.h"
#include "Components/Button.h"
#include "UI/NakatomiInteractiveWidget.h"
2023-10-01 23:51:53 +01:00
#include "PauseUIWidget.generated.h"
/**
*
*/
UCLASS()
class NAKATOMI_API UPauseUIWidget : public UNakatomiInteractiveWidget
2023-10-01 23:51:53 +01:00
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UButton* ResumeButton;
2024-04-04 01:35:47 +01:00
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UTextBlock* ResumeTextBlock;
2023-10-01 23:51:53 +01:00
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UButton* OptionsButton;
2024-04-04 01:35:47 +01:00
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UTextBlock* OptionsTextBlock;
2023-10-01 23:51:53 +01:00
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UButton* SaveButton;
2024-04-04 01:35:47 +01:00
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UTextBlock* SaveTextBlock;
2023-10-01 23:51:53 +01:00
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UTextBlock* SaveConfirmedTextBlock;
UPROPERTY(Transient, meta = (BindWidgetAnim))
UWidgetAnimation* SaveConfirmedAnimation;
2023-10-01 23:51:53 +01:00
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UButton* QuitButton;
2024-04-04 01:35:47 +01:00
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UTextBlock* QuitTextBlock;
2023-10-01 23:51:53 +01:00
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
2023-10-03 22:52:28 +01:00
UButton* ExitGameButton;
2024-04-04 01:35:47 +01:00
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UTextBlock* ExitGameTextBlock;
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
TSubclassOf<class UUserWidget> OptionsMenuWidget;
2024-05-02 01:13:34 +01:00
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
TSoftObjectPtr<UWorld> MainMenuLevel;
private:
UOptionsUIWidget* currentOptionsMenuWidget;
2023-10-01 23:51:53 +01:00
public:
virtual void NativeConstruct() override;
private:
2023-10-03 22:52:28 +01:00
UFUNCTION()
2023-10-01 23:51:53 +01:00
void ResumeButtonOnClicked();
2023-10-03 22:52:28 +01:00
UFUNCTION()
2023-10-01 23:51:53 +01:00
void OptionsButtonOnClicked();
2023-10-03 22:52:28 +01:00
UFUNCTION()
2023-10-01 23:51:53 +01:00
void SaveButtonOnClicked();
2023-10-03 22:52:28 +01:00
UFUNCTION()
2023-10-01 23:51:53 +01:00
void QuitButtonOnClicked();
2023-10-03 22:52:28 +01:00
UFUNCTION()
void ExitGameButtonOnClicked();
2024-04-04 01:35:47 +01:00
UFUNCTION()
void ResumeTextBlockHoveredDelegate() { SetTextBlockHovered(ResumeTextBlock); }
UFUNCTION()
void ResumeTextBlockUnhoveredDelegate() { SetTextBlockUnhovered(ResumeTextBlock); }
UFUNCTION()
void OptionsTextBlockHoveredDelegate() { SetTextBlockHovered(OptionsTextBlock); }
UFUNCTION()
void OptionsTextBlockUnhoveredDelegate() { SetTextBlockUnhovered(OptionsTextBlock); }
UFUNCTION()
void SaveTextBlockHoveredDelegate() { SetTextBlockHovered(SaveTextBlock); }
UFUNCTION()
void SaveTextBlockUnhoveredDelegate() { SetTextBlockUnhovered(SaveTextBlock); }
UFUNCTION()
void QuitTextBlockHoveredDelegate() { SetTextBlockHovered(QuitTextBlock); }
UFUNCTION()
void QuitTextBlockUnhoveredDelegate() { SetTextBlockUnhovered(QuitTextBlock); }
UFUNCTION()
void ExitGameTextBlockHoveredDelegate() { SetTextBlockHovered(ExitGameTextBlock); }
UFUNCTION()
void ExitGameTextBlockUnhoveredDelegate() { SetTextBlockUnhovered(ExitGameTextBlock); }
2023-10-01 23:51:53 +01:00
};