Photo mode init
This commit is contained in:
parent
aa85f56a4c
commit
388c2ef945
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenu.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenu.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenuCredits.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenuCredits.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenuOptions.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenuOptions.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenuOptionsAudio.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenuOptionsAudio.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenuOptionsControls.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenuOptionsControls.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenuOptionsGame.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenuOptionsGame.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenuOptionsVideo.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/MainMenu/UI_MainMenuOptionsVideo.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/UI_CameraMode.uasset
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/UI_CameraMode.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_OptionsButton.uasset
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_OptionsButton.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_OptionsCategory.uasset
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_OptionsCategory.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_OptionsComboBox.uasset
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_OptionsComboBox.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_OptionsKeySelector.uasset
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_OptionsKeySelector.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_OptionsSlider.uasset
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_OptionsSlider.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_OptionsSwitchButton.uasset
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_OptionsSwitchButton.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_PageButton.uasset
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_PageButton.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_Title.uasset
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Content/UI/Components/MainMenu/UIC_MainMenu_Title.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_OptionsButton.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_OptionsButton.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_OptionsCategory.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_OptionsCategory.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_OptionsComboBox.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_OptionsComboBox.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_OptionsKeySelector.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_OptionsKeySelector.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_OptionsSlider.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_OptionsSlider.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_OptionsSwitchButton.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_OptionsSwitchButton.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_PageButton.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_PageButton.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_Title.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Components/UIC_MainMenu_Title.uasset
(Stored with Git LFS)
Binary file not shown.
@ -24,10 +24,6 @@ void ACameraModeBase::BeginPlay()
|
|||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
|
|
||||||
auto world = GetWorld();
|
auto world = GetWorld();
|
||||||
|
|
||||||
//GetMovementComponent()->speed
|
|
||||||
// GetCharacterMovement()->MaxWalkSpeed = moveSpeed;
|
|
||||||
|
|
||||||
auto gameSettings = UCustomGameUserSettings::GetCustomGameUserSettings();
|
auto gameSettings = UCustomGameUserSettings::GetCustomGameUserSettings();
|
||||||
|
|
||||||
if(auto camera = FindComponentByClass<UCameraComponent>())
|
if(auto camera = FindComponentByClass<UCameraComponent>())
|
||||||
@ -39,13 +35,11 @@ void ACameraModeBase::BeginPlay()
|
|||||||
{
|
{
|
||||||
if(auto inputSubsystem = ULocalPlayer::GetSubsystem<UEnhancedInputLocalPlayerSubsystem>(PC->GetLocalPlayer()))
|
if(auto inputSubsystem = ULocalPlayer::GetSubsystem<UEnhancedInputLocalPlayerSubsystem>(PC->GetLocalPlayer()))
|
||||||
{
|
{
|
||||||
if(auto GI = Cast<UCustomGameInstanceBase>(GetWorld()->GetGameInstance()))
|
if(auto GI = UCustomGameInstanceBase::GetGameInstance())
|
||||||
{
|
{
|
||||||
inputSubsystem->ClearAllMappings();
|
inputSubsystem->ClearAllMappings();
|
||||||
for(auto& inputContext : GI->inputContexts)
|
for(auto& context : inputContexts)
|
||||||
{
|
inputSubsystem->AddMappingContext(context.LoadSynchronous(), 0);
|
||||||
inputSubsystem->AddMappingContext(inputContext.LoadSynchronous(), 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,4 +33,7 @@ protected:
|
|||||||
float moveSpeed = 200;
|
float moveSpeed = 200;
|
||||||
UPROPERTY(EditDefaultsOnly)
|
UPROPERTY(EditDefaultsOnly)
|
||||||
float runSpeedMultiplier = 4;
|
float runSpeedMultiplier = 4;
|
||||||
|
|
||||||
|
UPROPERTY(EditDefaultsOnly)
|
||||||
|
TArray<TSoftObjectPtr<class UInputMappingContext>> inputContexts;
|
||||||
};
|
};
|
||||||
|
@ -13,8 +13,8 @@ class UInteractableHintWidget : public UResolutionResponsiveUserWidget, public I
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta = (BindWidget))
|
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
||||||
class UTextBlock* keyText;
|
class UTextBlock* keyText;
|
||||||
UPROPERTY(meta = (BindWidget))
|
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
|
||||||
class UTextBlock* descriptionText;
|
class UTextBlock* descriptionText;
|
||||||
};
|
};
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
// Oleg Petruny proprietary.
|
||||||
|
|
||||||
|
|
||||||
|
#include "PhotoModeWidget.h"
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
// Oleg Petruny proprietary.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Blueprint/UserWidget.h"
|
||||||
|
|
||||||
|
#include "PhotoModeWidget.generated.h"
|
||||||
|
|
||||||
|
UCLASS(Blueprintable, Abstract)
|
||||||
|
class UPhotoModeWidget : public UUserWidget
|
||||||
|
{
|
||||||
|
GENERATED_BODY()
|
||||||
|
|
||||||
|
public:
|
||||||
|
// hints
|
||||||
|
UPROPERTY(meta = (BindWidget))
|
||||||
|
class UInteractableHintWidget* move;
|
||||||
|
UPROPERTY(meta = (BindWidget))
|
||||||
|
class UInteractableHintWidget* rotate;
|
||||||
|
UPROPERTY(meta = (BindWidget))
|
||||||
|
class UInteractableHintWidget* distace;
|
||||||
|
};
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
void UQuickTimeEventWidget::NativeConstruct()
|
void UQuickTimeEventWidget::NativeConstruct()
|
||||||
{
|
{
|
||||||
|
Super::NativeConstruct();
|
||||||
|
|
||||||
FWidgetAnimationDynamicEvent onTimerFinish;
|
FWidgetAnimationDynamicEvent onTimerFinish;
|
||||||
onTimerFinish.BindDynamic(this, &UQuickTimeEventWidget::RemoveEvent);
|
onTimerFinish.BindDynamic(this, &UQuickTimeEventWidget::RemoveEvent);
|
||||||
BindToAnimationFinished(eventAnimation, onTimerFinish);
|
BindToAnimationFinished(eventAnimation, onTimerFinish);
|
||||||
@ -17,8 +19,6 @@ void UQuickTimeEventWidget::NativeConstruct()
|
|||||||
FWidgetAnimationDynamicEvent onRemove;
|
FWidgetAnimationDynamicEvent onRemove;
|
||||||
onRemove.BindDynamic(this, &UQuickTimeEventWidget::RemoveFromManager);
|
onRemove.BindDynamic(this, &UQuickTimeEventWidget::RemoveFromManager);
|
||||||
BindToAnimationFinished(removeAnimation, onRemove);
|
BindToAnimationFinished(removeAnimation, onRemove);
|
||||||
|
|
||||||
return Super::NativeConstruct();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void UQuickTimeEventWidget::Show()
|
void UQuickTimeEventWidget::Show()
|
||||||
|
Loading…
Reference in New Issue
Block a user