Iterations on bazaar system

This commit is contained in:
2026-08-12 00:01:44 +02:00
parent 5393b4fc65
commit 277e0c5446
14 changed files with 36 additions and 22 deletions

View File

@@ -1150,6 +1150,11 @@ UEleriBaseWidget* AEleriPlayerController::OpenBazarWindow() {
return MainGameUI->GetBazarWidget();
}
void AEleriPlayerController::ToggleBazarInput(bool bActive)
{
}
void AEleriPlayerController::OnInteract(const FInputActionValue &Value)
{
if (!IsValid(PlayerCharacter))

View File

@@ -357,9 +357,12 @@ public:
UFUNCTION(BlueprintCallable)
UCalendarScreen* OpenCalendarWindow();
// Bazar
UFUNCTION(BlueprintCallable)
UEleriBaseWidget* OpenBazarWindow();
UFUNCTION(BlueprintCallable)
void ToggleBazarInput(bool bActive);
void OnInteract(const FInputActionValue& Value);
void OnInteractExit(const FInputActionValue& Value);
void OnHarvestSeed(const FInputActionValue& Value);

View File

@@ -41,6 +41,9 @@ class PROJECTELERI_API UMainGameWidget : public UEleriBaseWidget
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bVisible;
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void FadeScreenByTime(float FadeTime = 1.f, float BlankScreenTime = 1.f);
UFUNCTION(BlueprintCallable)
void TogglePlaceableUI(bool bEnabled);
@@ -48,7 +51,7 @@ public:
UFUNCTION()
void SwitchKeybindsDisplay(int32 Index);
UFUNCTION(BlueprintImplementableEvent)
UFUNCTION(BlueprintImplementableEvent, BlueprintCallable)
void ToggleGameMenu(bool bNewVisible);
UFUNCTION(BlueprintCallable, BlueprintPure)