feat: initial commit, only bugs remaining

This commit is contained in:
2025-10-11 03:33:42 +02:00
parent 9938181043
commit be8ea7a497
148 changed files with 1898 additions and 162 deletions

View File

@@ -22,6 +22,19 @@ class AUTAD_UIPlayerController : public APlayerController
public:
AUTAD_UIPlayerController();
// UI Management
UFUNCTION(BlueprintCallable, Category = "UI")
void ShowMainHUD();
UFUNCTION(BlueprintCallable, Category = "UI")
void ShowSkillTree();
UFUNCTION(BlueprintCallable, Category = "UI")
void HideSkillTree();
UFUNCTION(BlueprintCallable, Category = "UI")
void ToggleSkillTree();
/** Time Threshold to know if it was a short press */
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input)
float ShortPressThreshold;
@@ -45,6 +58,11 @@ public:
meta = (AllowPrivateAccess = "true"))
UInputAction* SetDestinationTouchAction;
/** Open Skill Tree Input Action */
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input,
meta = (AllowPrivateAccess = "true"))
UInputAction* OpenSkillTreeAction;
protected:
/** True if the controlled character should navigate to the mouse cursor. */
uint32 bMoveToMouseCursor : 1;
@@ -61,6 +79,23 @@ protected:
void OnTouchTriggered();
void OnTouchReleased();
/** Input handler for opening skill tree */
void OnOpenSkillTree();
// Widget Classes
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "UI")
TSubclassOf<class UUserWidget> MainHUDClass;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "UI")
TSubclassOf<class UUserWidget> SkillTreeWidgetClass;
// Widget Instances
UPROPERTY()
class UUserWidget* MainHUDWidget;
UPROPERTY()
class UUserWidget* SkillTreeWidget;
private:
FVector CachedDestination;