godot-escoria / escoria-issues

Central Escoria issue tracker
3 stars 0 forks source link

Pause menu is not clickable while character is talking #352

Closed StraToN closed 1 year ago

StraToN commented 1 year ago

Describe the bug Pause menu buttons can't be clicked while Mark is talking. Clicks are enabled only when Mark is finished talking.

To Reproduce Steps to reproduce the behavior:

Start in room 1, go to room 2, go back to room 1 and walk to the middle of the room. The say command for the trigger area will be firing so Mark will be in the middle of saying something. Press ESC while he's talking, you can get back to the menu, but the buttons won't work until he finishes talking in the background.

Expected behavior Pause menu buttons are usable at any time.

Screenshots N/A

Versions

Additional context N/A

BHSDuncan commented 1 year ago

This will require some discussion since the say command sets escoria.current_state to GAME_STATE.DIALOG which prevents the action manager from responding to clicks, etc. (there's a check at the top of do that says: if escoria.current_state == escoria.GAME_STATE.DEFAULT:).

One thing to go over is the expected behaviour of Escoria while in the DIALOG game state.

StraToN commented 1 year ago

To be tackled after the dialog encapsulation to dialog plugin task is done.