Started UI rework

This commit is contained in:
2026-05-25 17:57:30 +03:00
parent 43ddad9217
commit 37d19b0817
45 changed files with 125 additions and 85 deletions
+4 -3
View File
@@ -1,7 +1,8 @@
;METADATA=(Diff=true, UseCommands=true) ; THESE ARE GENERATED FILES, DO NOT EDIT DIRECTLY!
; USE THE LOCALIZATION DASHBOARD IN THE UNREAL EDITOR TO EDIT THE CONFIGURATION
[CommonSettings] [CommonSettings]
ManifestDependencies=../../../../../Program Files/Epic Games/UE_5.6/Engine/Content/Localization/Engine/Engine.manifest ManifestDependencies=../../../../Shared/Epic Games/UE_5.7/Engine/Content/Localization/Engine/Engine.manifest
ManifestDependencies=../../../../../Program Files/Epic Games/UE_5.6/Engine/Content/Localization/Editor/Editor.manifest ManifestDependencies=../../../../Shared/Epic Games/UE_5.7/Engine/Content/Localization/Editor/Editor.manifest
SourcePath=Content/Localization/Game SourcePath=Content/Localization/Game
DestinationPath=Content/Localization/Game DestinationPath=Content/Localization/Game
ManifestName=Game.manifest ManifestName=Game.manifest
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 version https://git-lfs.github.com/spec/v1
3 size 866
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,11 @@
#include "NakedDesireHUD.h"
#include "Blueprint/UserWidget.h"
#include "NakedDesire/UI/GameLayoutWidget.h"
void ANakedDesireHUD::BeginPlay()
{
Super::BeginPlay();
GameLayoutWidget = CreateWidget<UGameLayoutWidget>(GetWorld(), GameLayoutWidgetClass);
GameLayoutWidget->AddToViewport();
}
@@ -0,0 +1,23 @@
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/HUD.h"
#include "NakedDesireHUD.generated.h"
class UGameLayoutWidget;
UCLASS()
class NAKEDDESIRE_API ANakedDesireHUD : public AHUD
{
GENERATED_BODY()
protected:
UPROPERTY(EditDefaultsOnly, Category = "UI")
TSubclassOf<UGameLayoutWidget> GameLayoutWidgetClass;
virtual void BeginPlay() override;
private:
UPROPERTY()
TObjectPtr<UGameLayoutWidget> GameLayoutWidget;
};
@@ -0,0 +1 @@
#include "GameLayoutWidget.h"
+20
View File
@@ -0,0 +1,20 @@
#pragma once
#include "CoreMinimal.h"
#include "CommonUserWidget.h"
#include "GameLayoutWidget.generated.h"
class UHUDWidget;
class UCommonActivatableWidgetStack;
UCLASS()
class NAKEDDESIRE_API UGameLayoutWidget : public UCommonUserWidget
{
GENERATED_BODY()
UPROPERTY(meta = (BindWidget))
TObjectPtr<UCommonActivatableWidgetStack> WidgetStack;
UPROPERTY(meta = (BindWidget))
TObjectPtr<UHUDWidget> HUD;
};
+4
View File
@@ -0,0 +1,4 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "HUDWidget.h"
+16
View File
@@ -0,0 +1,16 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "CommonUserWidget.h"
#include "HUDWidget.generated.h"
/**
*
*/
UCLASS()
class NAKEDDESIRE_API UHUDWidget : public UCommonUserWidget
{
GENERATED_BODY()
};