feat: initial commit, only bugs remaining
This commit is contained in:
		| @@ -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; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user