Fix standby lure chat input ownership
This commit is contained in:
parent
219dbb5abc
commit
a1ea341e8c
2 changed files with 16 additions and 2 deletions
|
|
@ -305,6 +305,17 @@ func _run() -> void:
|
|||
assert(on_screen_keyboard.is_open())
|
||||
on_screen_keyboard.call("_close_keyboard", true)
|
||||
assert(typed_chat_entry.has_focus())
|
||||
|
||||
# A deferred Standby bite has not started the fishing minigame yet. It must
|
||||
# release fishing's input ownership so chat remains available until the
|
||||
# player confirms the bite.
|
||||
chat_fishing_spot.call("_set_fishing_input_priority", true)
|
||||
chat_fishing_spot.call("_set_bite_confirmation_pending", true)
|
||||
for _frame: int in 4:
|
||||
await process_frame
|
||||
assert(not chat_fishing_spot.is_fishing_input_priority_active())
|
||||
assert(chat_ui.is_open())
|
||||
chat_fishing_spot.call("_set_bite_confirmation_pending", false)
|
||||
var left_bumper := InputEventJoypadButton.new()
|
||||
left_bumper.button_index = JOY_BUTTON_LEFT_SHOULDER
|
||||
left_bumper.pressed = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue