83 lines
1.7 KiB
C++
83 lines
1.7 KiB
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Blueprint/UserWidget.h"
|
|
#include "Components/CheckBox.h"
|
|
#include "Components/Button.h"
|
|
#include "Components/TextBlock.h"
|
|
#include "OptionsUIWidget.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class NAKATOMI_API UOptionsUIWidget : public UUserWidget
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
|
UButton* ResolutionButton;
|
|
|
|
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
|
UTextBlock* ResolutionTextBlock;
|
|
|
|
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
|
UCheckBox* FullscreenCheckBox;
|
|
|
|
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
|
UCheckBox* VsyncCheckBox;
|
|
|
|
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
|
UButton* RefreshRateButton;
|
|
|
|
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
|
UTextBlock* RefreshRateTextBlock;
|
|
|
|
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
|
UCheckBox* DynamicResolutionCheckBox;
|
|
|
|
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
|
UButton* BackButton;
|
|
|
|
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
|
UButton* ResetToDefaultsButton;
|
|
|
|
private:
|
|
|
|
UUserWidget* PreviousScreen;
|
|
|
|
public:
|
|
virtual void NativeConstruct() override;
|
|
|
|
void SetReturnScreen(UUserWidget* userWidget);
|
|
|
|
private:
|
|
|
|
UFUNCTION()
|
|
void BackButtonOnClicked();
|
|
|
|
UFUNCTION()
|
|
void ResetToDefaultsButtonOnClicked();
|
|
|
|
UFUNCTION()
|
|
void OnResolutionSelectorChanged();
|
|
|
|
UFUNCTION()
|
|
void SetRefreshRateTextBlock(float RefreshRateText);
|
|
|
|
UFUNCTION()
|
|
void OnFullscreenCheckboxChanged(bool bIsChecked);
|
|
|
|
UFUNCTION()
|
|
void OnRefreshRateSelectorChanged();
|
|
|
|
UFUNCTION()
|
|
void OnVsyncCheckboxChanged(bool bIsChecked);
|
|
|
|
UFUNCTION()
|
|
void OnDynamicResolutionCheckboxChanged(bool bIsChecked);
|
|
};
|