fix: open skill anction
This commit is contained in:
@@ -81,7 +81,7 @@ void AUTAD_UIPlayerController::SetupInputComponent()
|
||||
if (OpenSkillTreeAction)
|
||||
{
|
||||
EnhancedInputComponent->BindAction(
|
||||
OpenSkillTreeAction, ETriggerEvent::Triggered, this,
|
||||
OpenSkillTreeAction, ETriggerEvent::Started, this,
|
||||
&AUTAD_UIPlayerController::OnOpenSkillTree);
|
||||
}
|
||||
}
|
||||
@@ -210,8 +210,11 @@ void AUTAD_UIPlayerController::HideSkillTree()
|
||||
{
|
||||
SkillTreeWidget->RemoveFromParent();
|
||||
|
||||
// Set input mode back to game only
|
||||
FInputModeGameOnly InputMode;
|
||||
// Set input mode back to game and UI for top-down gameplay
|
||||
// This allows mouse clicks to work for character movement
|
||||
FInputModeGameAndUI InputMode;
|
||||
InputMode.SetLockMouseToViewportBehavior(EMouseLockMode::DoNotLock);
|
||||
InputMode.SetHideCursorDuringCapture(false);
|
||||
SetInputMode(InputMode);
|
||||
// Keep mouse cursor visible for top-down game
|
||||
bShowMouseCursor = true;
|
||||
|
||||
Reference in New Issue
Block a user