// © 2025 Naked People Team. All Rights Reserved.

#pragma once

#include "CoreMinimal.h"
#include "CommonUserWidget.h"
#include "PhoneStatusBar.generated.h"

class UCommonTextBlock;

UCLASS()
class NAKEDDESIRE_API UPhoneStatusBar : public UCommonUserWidget
{
	GENERATED_BODY()
	
	UPROPERTY(meta = (BindWidget))
	TObjectPtr<UCommonTextBlock> TimeText;

protected:
	virtual void NativeTick(const FGeometry& MyGeometry, float InDeltaTime) override;

private:
	// Last HH:MM string pushed to TimeText; the tick re-reads the clock each frame but only
	// touches the widget when the displayed minute actually changes.
	FString CachedTimeString;
};
